Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

confdoggo 🐶

Define your builtin settings:

class MySettings(confdoggo.Settings):
    class _(confdoggo.Settings):
        host: str = "localhost"
        port: int = 8080
    server = _()

    class _(confdoggo.Settings):
        x: int = 42
    client = _()

    reload_on_changes = True
    scheduled_shutdown: datetime = None

Let confdoggo catch the configuration files, and run extensible type checking:

settings = confdoggo.go_catch(
    MySettings,
    [
        'file://./simple.json',  # a local file
        Path('.') / 'another_one.yaml',  # another local file
        'ftp://192.168.1.1/folder/file.json',  # a remote file
        'https://192.168.1.2/folder/file.ini',  # another remote file
    ],
)

Note: order matters! Configurations that have a higher index have higher importance.

Access configuration easily:

assert settings.server.port == 8080 

See a full example here.

Install

$ pip install confdoggo

Under development

This project is under development: expect breaking changes!

Metadata

Release files for confdoggo 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for confdoggo 0.1.0a1
File Size Uploaded Provenance Actions
confdoggo-0.1.0a1.tar.gz 18.5 kB Without provenance Details for confdoggo-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for confdoggo 0.1.0a1
File Interpreter ABI Platform Actions
confdoggo-0.1.0a1-py3-none-any.whl Python 3 none any Details for confdoggo-0.1.0a1-py3-none-any.whl

Total release size: 43.0 kB

Release files / confdoggo-0.1.0a1.tar.gz

Download URL confdoggo-0.1.0a1.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c448d9f1bc4d6878f9035f5652f05b565a074a813b1263be9c7285a1df8c028e
BLAKE2b-256 checksum
How to use checksums
ab680e5078549b1d05094d7f9ebe66b732e682d11e590090e4c423441ee3629e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-58-generic

Release files / confdoggo-0.1.0a1-py3-none-any.whl

Download URL confdoggo-0.1.0a1-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a65a1d455413481cc96f13dccd04d0641e040d3e5f5b264137e559f3e4e2a5ae
BLAKE2b-256 checksum
How to use checksums
6d58811d05c2c7003f18da38c98d46f8d6ea9164c9024dae8934ddc6db9712b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-58-generic

Security for confdoggo 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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