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.6.tar.gz (2.8 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.6-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspari_config-0.1.6.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for inspari_config-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7ba06531acdf6b8d991bef40d66e526e8609c374341c7fa78af0bf8cdbfb3e6c
MD5 5c8c294e1fe9015ccacefa9977026629
BLAKE2b-256 632bf5622d05374bb406c6bd2306ae9941cf1a7feb3c7b1865bebfe1e5badbfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inspari_config-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for inspari_config-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 68a33afbaa1a6d59bd490b2b671c5cbcdea79e6e306cc115c2070565d430b875
MD5 5e0c18fc4a3ae17dc37eb430d8c233b2
BLAKE2b-256 961ccc993544e4d7e085890d1263886cc8765db7737dd6f14cce9b029859224e

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