Handle project/application config from pyproject.toml
Project description
Summary
Avoid boilerplate python code.
Importing petri automagically equips your script/pacakage with:
settings using pydantic.
dotenv file handling using python-dotenv.
logging config using logzero&autologging.
project metadata from a pyproject.toml file.
environment (prod/dev/test) handling via ENV environment variable.
Screenshots
Code Example
see tests/data folder
Requirements
Usage requirements
python>=3.6
Development requirements
tox
poetry (recommended)
Installation
pip install petri
Testing
run tox -e venv to create an appropiate virtualenv
tox to run the full test suite
Contribute
Development
Make sure to pass tox tests (including those with –runslow).
For tests design, you can use use ´@pytest.mark.incremental´ and ´@pytest.mark.slow´. See “catalogo_db/tests/conftest.py”
If the requirements change, make sure to re-build all images
Versioning
Use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/pwoolvett/petri/tags).
Support
If you are having issues, please file an issue in github.
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 petri-0.22.1.tar.gz.
File metadata
- Download URL: petri-0.22.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.7 Linux/4.15.0-1028-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1a963e09e7d6e9fa1711fd23657a721485275ebfc24bb187f6e758b1c1112d
|
|
| MD5 |
0a982f688ec7f7d68a53451a498a2a04
|
|
| BLAKE2b-256 |
028f053570286812a9b130ae46cbd3e08df48e86207f06d6fdb62599fdafc6a5
|
File details
Details for the file petri-0.22.1-py3-none-any.whl.
File metadata
- Download URL: petri-0.22.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.7 Linux/4.15.0-1028-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c38140495789c69651ba839c55e426a515a21917157ee865cf4d5c3af66155
|
|
| MD5 |
b106ceb1455f72fcaa474c713fafdd8e
|
|
| BLAKE2b-256 |
dc6ca01769ea86726a6c6722093fe5994404e6530f16c9a55f10fc61ec15d0b0
|