Skip to main content

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

rspyts-0.1.0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

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

rspyts-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for rspyts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3753162a7e66e506a133034a8cbb5ec2db9b0c21d1ef47e34f20a11af31d4de9
MD5 d3a39127564c2974010e21aec4a79710
BLAKE2b-256 62b8636f270478e14a948f7f2ae9cbbe955aeb65c12d330657555228adedabb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rspyts-0.1.0.tar.gz:

Publisher: deploy.yml on 2xf-org/rspyts

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

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

Hashes for rspyts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66b0e1e213cf479c10913badfd6c7e9996a7d40757b75c56ef3326aac9b9fdc2
MD5 c35b7da8593fc45eb2b7aa8a52c34cd1
BLAKE2b-256 932d4aee66119da940796a77fe9bf6d5190ad5742900ff228f116819af669aee

See more details on using hashes here.

Provenance

The following attestation bundles were made for rspyts-0.1.0-py3-none-any.whl:

Publisher: deploy.yml on 2xf-org/rspyts

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