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.4.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.4.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supercargo-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 b543708d5d72f0a61279ae23d87930b2172f070b54f49e091578311b4cb90dd4
MD5 d9b5bc456970de1f655b42c4bde1cfb9
BLAKE2b-256 00139911b51009a7f8c5df013629d4bbb618ce7930ae26c75108db92206c3d1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercargo-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: supercargo-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b40e2d3616b15b0a5031581634da644a0b31641a62fcef504a83c998c8d5aaa
MD5 625e161d10b616ae126d8a17bcd0cadc
BLAKE2b-256 b3a86b09c7414d9af391c5731b42698a530106c8e815fa4732860c17cc5e4d32

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercargo-0.4.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