Skip to main content

Native Python annotations for Supercargo type-safe metadata

Project description

Supercargo Python SDK

Native Python annotations for Supercargo type-safe metadata.

Installation

pip install supercargo

Usage

Use the Supercargo class within Python's typing.Annotated (or Pydantic models) to attach metadata to your data models. This metadata is statically extracted by the sc CLI.

from typing import Annotated
from datetime import datetime
from pydantic import BaseModel
from supercargo import Supercargo

class PlaybackSession(BaseModel):
    # Attach entity mapping
    user_id: Annotated[str, Supercargo(entity="user")]

    # Provide a type hint for the schema generator
    started_at: Annotated[datetime, Supercargo(as_type="TIMESTAMP")]

Project details


Download files

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

Source Distribution

supercargo-0.3.0.tar.gz (1.2 kB view details)

Uploaded Source

Built Distribution

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

supercargo-0.3.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file supercargo-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for supercargo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7ecd00951015b15b1defac5e638a28fe5328c54ccd5fc54a29c7a2e29fbf64b2
MD5 575b271f42bb3318ffeb111dfb4d8e8c
BLAKE2b-256 2ce66f3184cedf77384fae2ca3282537dfe669f1126295482326dfd0329c1f71

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercargo-0.3.0.tar.gz:

Publisher: publish-python.yml on supercargo-dev/core

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

File details

Details for the file supercargo-0.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for supercargo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2db6bec8bf5e7db04502b8a29782bce0e7362c4a2206612ba9b16089bddc0c1d
MD5 49782c5441c5ae0b07c0ec8901b4b800
BLAKE2b-256 418d500144b1a2d7686d676d368d14cd7435c4b2af9cbe570c160f20369eb1d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercargo-0.3.0-py3-none-any.whl:

Publisher: publish-python.yml on supercargo-dev/core

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