Skip to main content
yace

Welcome to yace

PyPI Build Status https://coveralls.io/repos/github/safl/yace/badge.svg?branch=main pre-commit REUSE status

yace generates the bindings of a C API for other languages. You describe the FFI boundary of the API as a C header, in a subset of C99 that can be described equivalently in C, C++, Python, Rust and Zig, and yace generates, for each, code that is idiomatic for that language: for C, a C API with pretty-printers for every struct, union and enum. A field of bits, an integer whose parts are named by masks, is printed part by part, and read and written by part in every language. Headers outside the subset are parsed too, with every place they step outside it reported.

Bindings are generated for C, C++, Python (ctypes, with a .pxd for Cython), Rust, Zig and Go. Each target builds and runs a check of what it generated against the layout the C compiler gives every record, and the C API and Zig check every function’s signature against the header too.

A header can also be written by a generator, from something other than C, and taken as one written by hand: yace --generate file.py:Class, or a generator installed by name. A generator proposed to xNVMe writes its NVMe specification headers so, from the data model senfd makes of the specification documents.

Contributions are welcome; the documentation says how the code is laid out.

Metadata

Release files for yace 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yace 0.9.3
File Size Uploaded Provenance Actions
yace-0.9.3.tar.gz 209.9 kB Without provenance Details for yace-0.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yace 0.9.3
File Interpreter ABI Platform Actions
yace-0.9.3-py3-none-any.whl Python 3 none any Details for yace-0.9.3-py3-none-any.whl

Total release size: 380.3 kB

Release files / yace-0.9.3.tar.gz

Download URL yace-0.9.3.tar.gz
Size 209.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7b1995a8910acae4ae8b1128ade63543017f7e913ab4849bddae7ba554ecfc51
BLAKE2b-256 checksum
How to use checksums
700dc5a8a84c38c1922db0e9f5159dcea4bc3ef5fabac019db1ae3b0212cf94b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / yace-0.9.3-py3-none-any.whl

Download URL yace-0.9.3-py3-none-any.whl
Size 170.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07c860eb03e5c7b86d968f0d65b1944adfbd400830a64cd51a73a5c2cd025747
BLAKE2b-256 checksum
How to use checksums
56f388446865bf23ddb78a9a70bf366a18222e6977dc5d1262738cd008acb7f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for yace 0.9.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page