Skip to main content

Code style: black codecov

PyConfig

Configuration management using pydantic and a bit of sugar.

This library provides a load and save functions to load and save serialized pydantic settings. Settings can be saved in .json, .yaml and .toml format.

Installation

pip install pydantic_loader for loading and saving json files.

pip install pydantic_loader[yaml] for loading and saving yaml and json files.

pip install pydantic_loader[toml] for loading and saving toml and json.

"""Simple example."""
from pathlib import Path

from pydantic_loader import load_json, save_json
from pydantic import BaseSettings


class DummyConfig(BaseSettings):
    """An app configuration class"""

    a: int = 1
    b: str = "ABC"


config = DummyConfig()

save_json(config, Path("config.json"))

config = load_json(DummyConfig, Path("config.json"))

Metadata

Release files for pydantic_loader 0.9.1

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

Source distribution (sdist)

Source distribution for pydantic_loader 0.9.1
File Size Uploaded Provenance Actions
pydantic_loader-0.9.1.tar.gz 9.4 kB Without provenance Details for pydantic_loader-0.9.1.tar.gz

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / pydantic_loader-0.9.1.tar.gz

Download URL pydantic_loader-0.9.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9964615727c1b035df4417d79c40bf9683540d720115309735ddf0e937cd25f0
BLAKE2b-256 checksum
How to use checksums
db1212c8be756fe77303074379ddc1ba72b2c5925d5b22c7e336398f325a3b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.23.0

Release files / pydantic_loader-0.9.1-py3-none-any.whl

Download URL pydantic_loader-0.9.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c3ffe6aca4b52429386c56a224c6ef6fabbfef7ac53d7ba9334c3961b77f1cf
BLAKE2b-256 checksum
How to use checksums
7ecd6728b3e5ba0cb60d52f47ee4b0387c87e43735d91f78b4dfe4b8b44a0fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.23.0

Security for pydantic_loader 0.9.1

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