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

Build the project via Poetry,

poetry build

and push it to pypi,

poetry publish -u __token__ -p REDACTED

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.0.tar.gz (2.4 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspari_config-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for inspari_config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9b863a52f70c98f41e6ae5463ab4ce18ab9048d291925aa8b71e7095876a7cd
MD5 4a5c226e843d20aeff2d1d9781c3e2ba
BLAKE2b-256 7c693dc324201c1985aec3c85810efb848ecd02dac0bd82a79ba52a9a5d3107a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inspari_config-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for inspari_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3114a304ddd749348a54054b32b14dc9f2a8239c5ca1aa01d8129b6c0e122cc
MD5 05d944683d04e1f7c75deacb981fc960
BLAKE2b-256 15785fe18519fe0d308fa6499852a17d2618f1f3e384ab81c7b8530ec0937ce1

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