FigCon
A simple way to configure applications using pure python files.
Quickstart
# contents of default config (base_config.py)
bob = 1
harry = {0: 1, 1: 3}
# contents of secondary config (~/config.py)
bob = 2
harry = {1: 2, 3: 4}
# contents of primary config (config.py)
bill = 4
harry = {1: 6}
# now use the configuration:
from figcon import Figcon
# give figcon a path to the default config file
config = Figcon(default_path='base_config', primary_path='config.py',
secondary_path='~')
# objects are updated based on lowest priority (default) to highest (primary)
assert config.bob == 2
assert config.harry == {0:1, 1: 6, 3:4}
Features
- 3 step hierarchical configuration using a default, primary, and secondary config file.
- Config files are pure python which allow lots flexibility.
- Dont use this if you don't trust your users.
Metadata
Release files for figcon 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| figcon-0.0.0.tar.gz | 3.9 kB | Without provenance | Details for figcon-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| figcon-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for figcon-0.0.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / figcon-0.0.0.tar.gz
| Download URL | figcon-0.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9104f14d076aa4c71eda04812ee8c7040407de852a9f3e7887f8c5a4105da26d
|
|
BLAKE2b-256 checksum How to use checksums |
de2cc702dc6167985f10af275b5954e9335979a6ed56bbf9171ee872ec8ffa41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / figcon-0.0.0-py3-none-any.whl
| Download URL | figcon-0.0.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efdf0b04c498b928d06e18e2a6346ac022be24c8d1f9a66d03ed86b87ff18533
|
|
BLAKE2b-256 checksum How to use checksums |
f6f032fc4be23c8d14bed14e3369f5c6337d9b7da4e98842dbf2de71680c9d58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for figcon 0.0.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.