Skip to main content

config-joker

A package to ease usage of different configuration conditions in your projects.

How to use in

Obs.: There are some examples in the examples folder

Import the sources you'll use and the Config class:

from config_joker Config, EnvironmentSource

Initialize the config class implementing the sources you want to use:

config = Config(
        sources=[
            EnvironmentSource()
        ]
    )

Find the configurations you want to use:

import os
os.environ['env_variable'] = '1'
number_one_from_env_source_as_int = config.required(key='env_variable', value_type=int)

The value stored in number_one_from_env_source_as_int will be the number one as an integer.

Metadata

Release files for config-joker 0.7.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 config-joker 0.7.0
File Size Uploaded Provenance Actions
config_joker-0.7.0.tar.gz 4.0 kB Without provenance Details for config_joker-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for config-joker 0.7.0
File Interpreter ABI Platform Actions
config_joker-0.7.0-py3-none-any.whl Python 3 none any Details for config_joker-0.7.0-py3-none-any.whl

Total release size: 10.4 kB

Release files / config_joker-0.7.0.tar.gz

Download URL config_joker-0.7.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
41bb715630703da6333486fa77eab5019f0a1f2400b5c5b44514d164b9149148
BLAKE2b-256 checksum
How to use checksums
ccbb8ca4218e01b400c2b43c6833d09bc773775b3c1c433f618f571499852e69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-1039-azure

Release files / config_joker-0.7.0-py3-none-any.whl

Download URL config_joker-0.7.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3691c255520107992b5c4563a3889364033c5509616f63a0e5a072f37d039cd3
BLAKE2b-256 checksum
How to use checksums
5acfa61b563b26b2f7b3ba8b69d8cec42940a9fb71b14e6124e4a2b7c2cbb48e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-1039-azure

Security for config-joker 0.7.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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