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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31c8c5f5a92b623e134a3c43f07cd6386bc3406364ee1ef99f128201cc1501ba
|
|
| MD5 |
f37a3eb6ed6627d8be5340e689c06b77
|
|
| BLAKE2b-256 |
b617d2c595bffa702e4111d653c5eafd9e7c4797947656d9d9c8db3b565cc7f4
|
Provenance
The following attestation bundles were made for supercargo-0.1.0.tar.gz:
Publisher:
publish-python.yml on supercargo-dev/core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
supercargo-0.1.0.tar.gz -
Subject digest:
31c8c5f5a92b623e134a3c43f07cd6386bc3406364ee1ef99f128201cc1501ba - Sigstore transparency entry: 2138331165
- Sigstore integration time:
-
Permalink:
supercargo-dev/core@a6470587a7b2085956642b37b24b572069325951 -
Branch / Tag:
refs/tags/sdks/python-v0.1.0 - Owner: https://github.com/supercargo-dev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@a6470587a7b2085956642b37b24b572069325951 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fe402c07829cdda68beaeebbc40cb541485939758021d1422a77be07c122aaf
|
|
| MD5 |
deb0dc9901a82b019509e7471f01d3d9
|
|
| BLAKE2b-256 |
355d95f6685795bfb46e0cc0c7a69cdf55c591ba18ba8a2dd02464797546b136
|
Provenance
The following attestation bundles were made for supercargo-0.1.0-py3-none-any.whl:
Publisher:
publish-python.yml on supercargo-dev/core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
supercargo-0.1.0-py3-none-any.whl -
Subject digest:
4fe402c07829cdda68beaeebbc40cb541485939758021d1422a77be07c122aaf - Sigstore transparency entry: 2138331196
- Sigstore integration time:
-
Permalink:
supercargo-dev/core@a6470587a7b2085956642b37b24b572069325951 -
Branch / Tag:
refs/tags/sdks/python-v0.1.0 - Owner: https://github.com/supercargo-dev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@a6470587a7b2085956642b37b24b572069325951 -
Trigger Event:
push
-
Statement type: