Skip to main content

Coverage Status Docs Codacy

Pretty Conf is a Python library created to make easy the separation of configuration and code following the recommendations of 12 Factor’s topic about configs.

It is strongly inspired in python-decouple and both provides a similar API. It is framework agnostic and works the same way under Django, Flask, FastAPI or a plain command line script.

Installation

pip install prettyconf

The AwsParameterStore loader depends on boto3. Install the optional aws feature if you need it:

pip install prettyconf[aws]

prettyconf requires Python 3.10 or newer.

Documentation

You can find prettyconf documentation at Read the Docs website.

Development

The project uses uv and a Makefile as its entry point. make setup bootstraps everything, installing uv first if it is missing:

make setup

The remaining targets are listed by make help:

make test

run the test suite (ARGS="-k name" to filter)

make test-all

run the test suite on every supported python

make coverage

run the test suite with a coverage report

make lint

check the code with ruff

make format

reformat and auto-fix the code with ruff

make typecheck

check the types with ty

make docs

build the HTML documentation

make build

build the sdist and the wheel

make update-deps

upgrade every dependency and refresh uv.lock

Any target accepts a PYTHON variable to run against another supported interpreter, each one in its own virtualenv:

make test PYTHON=3.10

Pull requests should keep make lint, make typecheck and make test passing, and should describe the change well enough that a reviewer does not need to open the linked issue. Releases are published to PyPI by GitHub Actions when a GitHub release is created, which is what make release does.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prettyconf-3.0.1.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

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

prettyconf-3.0.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file prettyconf-3.0.1.tar.gz.

File metadata

  • Download URL: prettyconf-3.0.1.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prettyconf-3.0.1.tar.gz
Algorithm Hash digest
SHA256 0604e2046346ffa4c69fd56e428e45b980c6ad6d618540ab5dfc73dbc31b8f46
MD5 6a107a4b93361d7e83d4aa0e8ec97ee3
BLAKE2b-256 f27859fa76870a0ee304f696e530807a4833eaed0aa8fbca93b09c7a70efc6b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for prettyconf-3.0.1.tar.gz:

Publisher: release.yml on osantana/prettyconf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prettyconf-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: prettyconf-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prettyconf-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e7a2e0c50076c94b918749d0109b6cc51667202c0511553b628cbe4290edee8
MD5 9eef2435ecfd19766af097f959fb118f
BLAKE2b-256 72b25b60479a992c74db87501a1f7a9dfa4fd621415a0390b013bbd53387a451

See more details on using hashes here.

Provenance

The following attestation bundles were made for prettyconf-3.0.1-py3-none-any.whl:

Publisher: release.yml on osantana/prettyconf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 files

3.0.0

2 files

2.3.0

2 files

2.2.1

1 file

2.2.0

1 file

2.1.0

1 file

2.0.1

1 file

2.0.0

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.2

1 file

1.1.1

1 file

1.0.1

1 file

1.0.0

1 file

0.4.1

1 file

0.4.0

1 file

0.3.3

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page