Skip to main content

Handle project/application config from pyproject.toml

Project description

Build Status Documentation Status Test Coverage Maintainability Python Version Code Style

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

static/screenshots/api.png

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

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

petri-0.22.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

petri-0.22.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

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

Hashes for petri-0.22.1.tar.gz
Algorithm Hash digest
SHA256 ba1a963e09e7d6e9fa1711fd23657a721485275ebfc24bb187f6e758b1c1112d
MD5 0a982f688ec7f7d68a53451a498a2a04
BLAKE2b-256 028f053570286812a9b130ae46cbd3e08df48e86207f06d6fdb62599fdafc6a5

See more details on using hashes here.

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

Hashes for petri-0.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35c38140495789c69651ba839c55e426a515a21917157ee865cf4d5c3af66155
MD5 b106ceb1455f72fcaa474c713fafdd8e
BLAKE2b-256 dc6ca01769ea86726a6c6722093fe5994404e6530f16c9a55f10fc61ec15d0b0

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