Skip to main content

Standard

A small Python utility library with predictable behavior and agent-first guidance.

The project and PyPI distribution are named standard; the Python import package and command are named std. Standard is an alpha Python library published on PyPI. Read the documentation site for the full user guide and API reference.

Documentation map

Install from PyPI

python -m pip install standard
python -m pip install 'standard[fastapi]'
python -m pip install 'standard[aws]'
python -m pip install 'standard[http]'
python -m pip install 'standard[cache]'
python -m pip install 'standard[rdbms]'
python -m pip install 'standard[fastapi,aws,http,cache,rdbms]'

The core provides YAML/TOML configuration, Pydantic Settings sources, immutable snapshots, recursive mapping helpers, atomic text writes, environment-aware logging, async service lifecycle management, and the std CLI. FastAPI, AWS, HTTP, cache, and RDBMS are separate integration distributions. The published standard 0.1.1 still bundles FastAPI and AWS; the unreleased source splits all integrations and will publish them together at one version from a shared vX.Y.Z tag. The extras shown above become installable from PyPI after that coordinated release.

Install from this checkout

Run these commands from the repository root. The integration source projects are installed alongside core in editable mode.

Need Command Import path
Core only python -m pip install -e . std
FastAPI python -m pip install -e . -e packages/standard-fastapi std.fastapi
AWS python -m pip install -e . -e packages/standard-aws std.aws
HTTP python -m pip install -e . -e packages/standard-http std.http
Redis cache python -m pip install -e . -e packages/standard-cache std.cache
Relational databases python -m pip install -e . -e packages/standard-rdbms std.rdbms
All providers python -m pip install -e . -e packages/standard-fastapi -e packages/standard-aws -e packages/standard-http -e packages/standard-cache -e packages/standard-rdbms All provider modules

The source tree's standard[fastapi], standard[aws], standard[http], standard[cache], and standard[rdbms] extras select those standalone distributions. They become installable from PyPI after the matching projects are published; see the publishing guide.

First use

Create config/settings.yaml:

database:
  host: localhost

Then load a value from it:

from std.config import ConfigManager

config = ConfigManager.from_file("config/settings.yaml")
host = config.snapshot.get_path("database.host", "localhost")

For Pydantic Settings, create config/app.yaml:

host: localhost
port: 8080

Define a Pydantic Settings model in core/settings.py:

from std.config import YamlSettings


class Settings(YamlSettings):
    std_config_file = "config/app.yaml"
    host: str
    port: int = 8080

In main.py, construct the model once and use it to build the application:

from app.core.settings import Settings


def main() -> None:
    settings = Settings()
    # Build the application and inject its validated settings here.


if __name__ == "__main__":
    main()

Call Settings() only from the application entry point. By default, Pydantic Settings resolves values in this order: constructor values, Standard config files, process environment, dotenv, and file secrets. Callers can change the order through Pydantic's settings_customise_sources hook.

Agent guidance

std guide
std guide --format json
std skill show
std skill install

std guide summarizes the supported library surface for coding agents. std guide --format json emits schema-versioned install, module, command, and documentation data. std skill show prints the packaged idiomatic-Python skill. std skill install writes it to .agents/skills/standard-idiomatic-python/SKILL.md and refuses to overwrite an existing file unless you pass --force.

The source repository contains the development checks, end-to-end tests, and full documentation site. The published distribution is intended to contain only the working library, its CLI, and the required package metadata, README, and license.

Metadata

Release files for standard 0.2.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 standard 0.2.1
File Size Uploaded
standard-0.2.1.tar.gz 24.5 kB Details

Built distribution (wheel)

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

Total release size: 53.3 kB

Release files / standard-0.2.1.tar.gz

Download URL standard-0.2.1.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7fde4732a5dd31535a1f16ffc9ec3efee2cd55baca906ddf8f68cb8a3ae9106
BLAKE2b-256 checksum
How to use checksums
c690e3aad5a5cd17f953dfd4f17373966c3772e42e7b89c537fb3ba02ab87769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / standard-0.2.1-py3-none-any.whl

Download URL standard-0.2.1-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fda5672b60aa0b923fdc72911353d9cee3616d1d373bc7a3e78f12864db49459
BLAKE2b-256 checksum
How to use checksums
628a4bc9af1ece58ed2281db79893517295b4f825c3142a83c7ef0f9af72526f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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