Skip to main content

Preferences & secrets manager with layered scopes and tuple-key internals

Project description

pysigil

Preference management for small apps.

Quick start

Install pysigil in a virtual environment to make the sigil command available:

python -m venv .venv && source .venv/bin/activate  # Windows: .venv\Scripts\Activate
pip install -e .  # or `pip install .` for a normal install
from pysigil import get_preferences
get_pref, set_pref, launch_gui = get_preferences()

Once installed, try a few commands:

sigil set ui.color blue --app demo
sigil get ui.color --app demo
sigil export --app demo

The CLI stores data under your user config directory (e.g. ~/.config/demo), so you can run these commands right from the source tree without creating a separate project. See tests/manual_tests/README.md for more examples.

Typed helper methods are available for convenient access: Sigil.get_int(), get_float(), get_bool(). For package integration details see docs/integration.md.

Using the GUI

pysigil ships with a simple graphical editor for viewing and editing preferences. After installation launch it with:

sigil-gui

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysigil-0.2.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysigil-0.2.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file pysigil-0.2.0.tar.gz.

File metadata

  • Download URL: pysigil-0.2.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for pysigil-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6dd528966979a15354b51aa41e5e9894e0bb15f6234ee776b9965fd5cfab4388
MD5 9ce0f2132c06dc6a354d2aef446806bb
BLAKE2b-256 840e041434a7a31f35b1ca3860d58de1d7f8b6b0fa553082fc8ab0a9677001b8

See more details on using hashes here.

File details

Details for the file pysigil-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pysigil-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for pysigil-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62b1998cdcd299ec6895c29b281c7af6b473b5372b662a8b612b988d83ceb690
MD5 fd6a621a5a82dc98fde257cc0ca10ae9
BLAKE2b-256 1cc32b0322751b53e6e850b6598bdd359e4a4529c1741309bbbe16c3d63b65c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page