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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for prettyconf-3.0.0.tar.gz
Algorithm Hash digest
SHA256 209bbb94c7d74e21b051790df812f31664860948ff0fd90a7e4b9245cf15cf70
MD5 98fc4bdd1757e1847bd9a69f57983d34
BLAKE2b-256 1e8b476923a65da47622871ed7995a6eb8e55771aeb084eae3e289dc318d0837

See more details on using hashes here.

Provenance

The following attestation bundles were made for prettyconf-3.0.0.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.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for prettyconf-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d79e3fb770b7e8a06bfb1e416a5a4df69840f573f51db12dcc5495a4185605e5
MD5 00e895ac885742975493c91bea9086fa
BLAKE2b-256 b6f12c17cd6fa4f1ae872dc4e31b8046445586bfc9be1877d921b35350f57862

See more details on using hashes here.

Provenance

The following attestation bundles were made for prettyconf-3.0.0-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

3.0.1

2 files

This release

3.0.0 This release

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