Python runtime for rspyts: pydantic contracts and a ctypes loader for Rust cdylibs bridged with the rspyts ABI.
Project description
rspyts (Python runtime)
The Python runtime for rspyts: define types, functions, and classes once in Rust, and rspyts generate emits a typed Python package — pydantic v2 models, exception hierarchies, handle classes — that calls the compiled Rust cdylib through a small C ABI.
This package is what that generated code imports: the Contract pydantic base, the BridgeError exception family, and the Library loader/caller. It contains no generated code, and is useful on its own only as a dependency of generated packages.
Installing
pip install rspyts
Note that numpy and pydantic v2 are the only dependencies, and that the package is pure Python — there is no compiled extension module.
Documentation
Documentation can be found in the repository: the Python guide, and the normative specs under docs/design.
License
This project is licensed under the MIT license.
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
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 rspyts-0.1.0.tar.gz.
File metadata
- Download URL: rspyts-0.1.0.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3753162a7e66e506a133034a8cbb5ec2db9b0c21d1ef47e34f20a11af31d4de9
|
|
| MD5 |
d3a39127564c2974010e21aec4a79710
|
|
| BLAKE2b-256 |
62b8636f270478e14a948f7f2ae9cbbe955aeb65c12d330657555228adedabb6
|
Provenance
The following attestation bundles were made for rspyts-0.1.0.tar.gz:
Publisher:
deploy.yml on 2xf-org/rspyts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rspyts-0.1.0.tar.gz -
Subject digest:
3753162a7e66e506a133034a8cbb5ec2db9b0c21d1ef47e34f20a11af31d4de9 - Sigstore transparency entry: 2165576846
- Sigstore integration time:
-
Permalink:
2xf-org/rspyts@29a20c5c1b40ea62dbeb6480c130f973026fc33b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/2xf-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@29a20c5c1b40ea62dbeb6480c130f973026fc33b -
Trigger Event:
push
-
Statement type:
File details
Details for the file rspyts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rspyts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
66b0e1e213cf479c10913badfd6c7e9996a7d40757b75c56ef3326aac9b9fdc2
|
|
| MD5 |
c35b7da8593fc45eb2b7aa8a52c34cd1
|
|
| BLAKE2b-256 |
932d4aee66119da940796a77fe9bf6d5190ad5742900ff228f116819af669aee
|
Provenance
The following attestation bundles were made for rspyts-0.1.0-py3-none-any.whl:
Publisher:
deploy.yml on 2xf-org/rspyts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rspyts-0.1.0-py3-none-any.whl -
Subject digest:
66b0e1e213cf479c10913badfd6c7e9996a7d40757b75c56ef3326aac9b9fdc2 - Sigstore transparency entry: 2165576889
- Sigstore integration time:
-
Permalink:
2xf-org/rspyts@29a20c5c1b40ea62dbeb6480c130f973026fc33b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/2xf-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@29a20c5c1b40ea62dbeb6480c130f973026fc33b -
Trigger Event:
push
-
Statement type: