Skip to main content
ClassyConfig Logo

ClassyConfig

ClassyConfig is a Python3 package aiming to remove the need for a config.py or settings.py file.

Checks Pipeline Badge Create Documentation Badge Build and Publish Badge
PyPI MIT License Downloads

Documentation

Installation

ClassyConfig is avliable via Pypi, so it can be installed using pip

$ pip install classy_config

Usage

View on the docs

from classy_config import ConfigValue, register_config
from pydantic import BaseModel

# Register your config file to be used
register_config(filepath="config.toml")

# Resolve default values based on your config
def print_current_version(version: str = ConfigValue("package", str)) -> None:
    print(version)

# Use Pydantic Models for your config
class Author(BaseModel):
    username: str
    email: str
    lucky_number: int

# Resolve default values based on your config
def print_author(author: Author = ConfigValue("author", Author)) -> None:
    print(author)

# Allows for nested values
def print_value(value: int = ConfigValue("nested.value", int)) -> None:
    print(value)

Metadata

Release files for classy-config 0.8.2

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

Source distribution (sdist)

Source distribution for classy-config 0.8.2
File Size Uploaded Provenance Actions
classy_config-0.8.2.tar.gz 4.6 kB Without provenance Details for classy_config-0.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for classy-config 0.8.2
File Interpreter ABI Platform Actions
classy_config-0.8.2-py3-none-any.whl Python 3 none any Details for classy_config-0.8.2-py3-none-any.whl

Total release size: 11.8 kB

Release files / classy_config-0.8.2.tar.gz

Download URL classy_config-0.8.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bb3ac145e11292e4290dbc2a6c39b0cc78e543de46ebb5eda24cba79d6d9f94b
BLAKE2b-256 checksum
How to use checksums
99496ef08a30c872489ab20864dc317b178c4417d5448f2789c19e11b7d51eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / classy_config-0.8.2-py3-none-any.whl

Download URL classy_config-0.8.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d5e2fef5ef972b3e3ebd525d0f1895236dc9592931f303b7522b5536c9d3c17
BLAKE2b-256 checksum
How to use checksums
5fa4b8504f09083e8ea69c181bb6fe002ac22edb1e06f31a3b0f0a4d1ffcb1b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for classy-config 0.8.2

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.

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 release files No provenance

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