Skip to main content

Base Pydantic models and settings

Project description

csrd-models

Shared Pydantic models, settings, and parsing utilities for FastAPI microservices.

Package: csrd.models · Import: from csrd.models import BaseModel, BaseSettings

What's included

  • BaseModel / BaseSettings with camelCase alias config and populate_by_name=True
  • ModelParserMixin — response parsing mixin for delegates and repositories
  • PayloadExtractor / DefaultExtractor — pluggable payload extraction
  • UserClaims — JWT user claims dataclass
  • APIErrorResponse, ErrorMeta, Error, APIVersion — structured error response models

Installation

uv pip install "csrd-models @ git+ssh://git@github.com/csrd-api/fastapi-common.git#subdirectory=packages/models"

Dependencies

None (Tier 1 — standalone)

Project details


Release history Release notifications | RSS feed

This version

0.4.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csrd_models-0.4.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csrd_models-0.4.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file csrd_models-0.4.0.tar.gz.

File metadata

  • Download URL: csrd_models-0.4.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for csrd_models-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b94d83b4620122712f502227a53e078f301462f31df69299adf338227566d2ba
MD5 34084a76a698b88bd837b319a132a826
BLAKE2b-256 ab08f5ae72ae36c6041732eb017dfd2536fa2d55935518ebf36c73b92b883658

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_models-0.4.0.tar.gz:

Publisher: release.yml on csrd-api/fastapi-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file csrd_models-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: csrd_models-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for csrd_models-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e6e2a61791c6f697845c8003af502af5307981449507cadb0963fa49f844877
MD5 8c07a34f70c6410806c4301c6b589e6c
BLAKE2b-256 b8d065b10a952cd0517ca18dd4ceaa789f716bff25be9670480ad8b4ef624117

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_models-0.4.0-py3-none-any.whl:

Publisher: release.yml on csrd-api/fastapi-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page