Skip to main content

simplesuit — small helpers for the terminal

Four small modules in one package: 24-bit colors, Nerd Font icons, a JSON file used as a dict, and system info. Python 3.9+. Each module is only loaded when you import it.

pip install simplesuit
from simplesuit import colors as sc   # 24-bit colors, gradients, styles
from simplesuit import icons as si    # Nerd Font icons
from simplesuit import json as sj     # a JSON file that behaves like a small persistent dict
from simplesuit import sys as ss      # battery, CPU, RAM, disk, network, sound

Error messages and comments are in French. Full documentation with examples: libs.zazac.link/simplesuit.

colors

print(sc.color("Hello", "tomato", styles="bold"))   # by name, "#FF6347", "rgb(255,99,71)" or (255, 99, 71)
print(sc.red("error"))                              # every color name is also a function
print(sc.gradient("orsh", "cyan", "magenta"))       # letter-by-letter gradient, any number of colors
sc.show_palette()                                   # the 246 available colors

Typos get suggestions: unknown color: tomatto (did you mean: tomato ?).

icons

Needs a Nerd Font in your terminal.

print(si.icon("python", "yellow"), si.apple)
print(si.battery(64, plugged=True), si.file_icon("main.py"))
print(si.spinner(3))       # frame n°3 of a loading animation

json

Relative paths start from the folder of the script being run; the default file is data.json.

sj.put("theme", "dark")
sj.get("theme")                 # "dark"
sj.get("lang", default="fr")    # "fr"
sj.set("scores.json")           # switch file for the next calls

sys

Made for macOS (sound, Wi-Fi name); the rest also works on Linux and Windows. Uses psutil.

ss.battery(), ss.cpu(), ss.ram_used(), ss.disk_free(), ss.local_ip()
ss.summary()    # everything in one dict

License

MIT

Metadata

Release files for simplesuit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplesuit 0.1.0
File Size Uploaded Provenance
simplesuit-0.1.0.tar.gz 16.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for simplesuit 0.1.0
File Interpreter ABI Platform
simplesuit-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / simplesuit-0.1.0.tar.gz

Download URL simplesuit-0.1.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
57692a128711b81bcf538a686fc3451195f17ac60cf9059bc856c00a7d453e42
BLAKE2b-256 checksum
How to use checksums
aaef19f9fea844ddbbb52064cc4dcfe214410dab21bc0f7f29d7cf21362cd077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / simplesuit-0.1.0-py3-none-any.whl

Download URL simplesuit-0.1.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75e88026309a179af3a1336f007b358673035127435d5ac54d7bedc9e7505e12
BLAKE2b-256 checksum
How to use checksums
b417093d2f683ca6df3306fa2a313b71cc0caa891941849306bc6c07635f3d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for simplesuit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page