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

Uploaded Python 3

File details

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

File metadata

  • Download URL: supercargo-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 31c8c5f5a92b623e134a3c43f07cd6386bc3406364ee1ef99f128201cc1501ba
MD5 f37a3eb6ed6627d8be5340e689c06b77
BLAKE2b-256 b617d2c595bffa702e4111d653c5eafd9e7c4797947656d9d9c8db3b565cc7f4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: supercargo-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fe402c07829cdda68beaeebbc40cb541485939758021d1422a77be07c122aaf
MD5 deb0dc9901a82b019509e7471f01d3d9
BLAKE2b-256 355d95f6685795bfb46e0cc0c7a69cdf55c591ba18ba8a2dd02464797546b136

See more details on using hashes here.

Provenance

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