Skip to main content

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

inspari_config-0.1.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

inspari_config-0.1.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file inspari_config-0.1.5.tar.gz.

File metadata

  • Download URL: inspari_config-0.1.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

File hashes

Hashes for inspari_config-0.1.5.tar.gz
Algorithm Hash digest
SHA256 023346e14ccc95a7c554cd85c82dc25320f4fc972e12742367d4e0924ae2f46b
MD5 43e632836d7afcfe9a14dfc1831e28c4
BLAKE2b-256 4a503642fe6dc7c030b155494ac237b489ebf07bc651f4844e848f6f81e8c03b

See more details on using hashes here.

File details

Details for the file inspari_config-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: inspari_config-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

File hashes

Hashes for inspari_config-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c3b605cbb50496ffb9ca1bc1b9615299fec98b74b73dab77ac304feeba9c1b75
MD5 a9589140d68d502afb5d06ed100ade9a
BLAKE2b-256 7ceb2385860835b5b5930689b6e71de80271a282be61d093492d0767bb95f8f1

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