Skip to content

Latest commit

 

History

History

python-colors

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Python colors demo

A small Pixi project that prints a colorful report about the device it runs on, using Python and rich. It is locked for linux-64, linux-aarch64, linux-riscv64, osx-arm64 and win-64, so the same project runs on a Linux device with an x86-64, ARM64 or RISC-V processor (like a Raspberry Pi or an NVIDIA Jetson), a Mac with Apple silicon, and a Windows PC.

pixi.toml tells celeste what to run and which project files to ship:

[tool.celeste]
environment = "default"
entrypoint = ["python", "colors.py"]

[tool.celeste.files]
include = ["colors.py"]

Run it

From this directory:

celeste run --node <device>

On a macOS or Windows device, add --isolation best-effort. The device downloads the packages for its own platform from pixi.lock; a second run sends nothing new. Output is forced to color even though celeste run forwards it through a pipe; set NO_COLOR=1 in the environment to turn that off.

After changing dependencies, run pixi lock to update pixi.lock for every platform.

pixi run start prints the report for this computer, without a device.