Inspari configuration utilities
Project description
This repository provides Python configuration utilities.
Usage
The most common usage pattern is to create a config.py file that defines the configuration. The configuration itself
is parsed from environment variables. They are typically read from a .env file during local development.
A minimal example is bundled, with the configuration defined in example_config.py, a few variables in example.env,
and the typical access pattern (i.e. how settings are access in application code) illustrated in example_usage.py.
Development
Create a new Python environment with all dependencies installed,
poetry install
That's it! You can validate that the environment is setup correctly by running the tests,
poetry run coverage run -m pytest
Deployment
Update the version in pyproject.toml, run poetry lock, and add a new entry in CHANGELOG.md.
Automatic (preferred)
Merge the changes into master (using PRs). Create a new tag. If the new version is 1.1.1, the new tag would be v1.1.1.
The tag creation will trigger automated deployment of the package to PyPi, as well as synchronization of the code with the public GitHub mirror repository.
Manual (not recommended)
Build the project via Poetry,
poetry build
and push it to pypi,
poetry publish -u __token__ -p $INSPARI_PYPI_TOKEN
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inspari_config-0.1.4.tar.gz.
File metadata
- Download URL: inspari_config-0.1.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
165ec29a8898c4b2197923ef4cc892560eefc3cb986da2777c063c59406fc230
|
|
| MD5 |
500faeed7389b7d5c22772dd1891482b
|
|
| BLAKE2b-256 |
c498e8702ea70dd4169bc28003e5c0048d7b2400b6d6acb631b7e73d49775ddf
|
File details
Details for the file inspari_config-0.1.4-py3-none-any.whl.
File metadata
- Download URL: inspari_config-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3825a2125bdee078ee3c417416a41995e994e9101b9f998c8cea4867db72016c
|
|
| MD5 |
25229db8443c4eace912c6032450921b
|
|
| BLAKE2b-256 |
787c7443b07061a1323902d448e9eadcbdaa7a8e34f51c6c6a392b678ec77cef
|