Skip to main content

No project description provided

Reason this release was yanked:

not working with python3.10 as intended

Project description

buttons_and_dials

Customizable configs for your packages.

Use case

You have your potato software that somewhere within it's contents contains a file default-potato.toml describing some settings.

Let say you want to enable your users to customize those settings:

  • by providing a file potato-settings.toml in the CWD.
  • by providing a toml file pointed by environment variable POTATO_FILE=some/path
  • by passing command line arguments to some script

Then you should use buttons_and_dials.

Snippet

In your code, simply define

from buttons_and_dials import ConfigSet

configs = ConfigSet(
    set_name='potato-settings',
    initial_settings_path='internal/path/default-potato.toml'
    check_cwd=True,
    argv_prefix='--cfg'
)

And from now on, you can access attributes of configs object and enjoy.

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

buttons_and_dials-0.1.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

buttons_and_dials-0.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file buttons_and_dials-0.1.4.tar.gz.

File metadata

  • Download URL: buttons_and_dials-0.1.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Darwin/21.6.0

File hashes

Hashes for buttons_and_dials-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8550baca3a1dddef2e114cf56c09007789d5c816a69d8706b675ecfd5fc320f9
MD5 71b6004e639bcdb19d4d604d397bb5f8
BLAKE2b-256 b79e8f1f0cf1182f1cf803b3ff0b71f13089b90bbc30b5748562765edbf9e02a

See more details on using hashes here.

File details

Details for the file buttons_and_dials-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: buttons_and_dials-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Darwin/21.6.0

File hashes

Hashes for buttons_and_dials-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b34b01c0561ace6c3fd28a57edb0a82289154e9d2b9c67b0fc13351e8c7b927f
MD5 cb941bc1cae4fc84b61edc257a2036e7
BLAKE2b-256 9c9471386dff1d471dca1061dfa61b6cbef17f5dfebd342284d30f2585cc528d

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