SofaBuffers
Structured Objects For Anyone
... so optimized, feels amazing.
SofaBuffers Code Generator — sofabgen
sofabgen — the SofaBuffers code generator. It compiles a message
definition (YAML/JSON) into typed encode/decode wrappers for your target
language. Installing this package puts the sofabgen command on your PATH —
no Go toolchain, no compiler, nothing to build.
Install
As a throwaway tool run, without installing anything permanently:
uvx sofabgen --version
As a standalone CLI:
uv tool install sofabgen # or: pipx install sofabgen
Or pinned into a project's development environment:
pip install sofabgen
Usage
Generate code from a message definition:
sofabgen --lang python --in messages/example.yaml --out src/generated/
Key flags:
--lang <target>— one ofc,cpp,csharp,dart,docs,go,java,kotlin,python,rust,typescript,zig.--in <path>— a message-definition file, or a directory of them.--out <dir>— where the generated code is written.--config <file>— the YAML/JSON config carrying all options.--versionprints the version;--helplists every flag.
Runtime dependency: the corelib
sofabgen is a build-time tool — it emits typed code but never touches wire
bytes itself. The generated code calls into a small per-language runtime
library ("corelib") that owns the wire format. So alongside the generator, your
project needs the corelib for your target language at runtime.
For the Python target that is
sofa-buffers-corelib
(source) — installed under that name,
imported as sofab:
pip install sofa-buffers-corelib
from sofab import Encoder, Decoder
It ships a compiled accelerator in prebuilt wheels, so a normal install gets the
native engine without a C toolchain (sofab.IMPL reports which engine is active).
For any other target language, install that language's corelib in its own ecosystem
(npm, Cargo, Go modules, NuGet, Maven, …).
How the binary is delivered
sofabgen is a single static Go binary. This project publishes one wheel per
platform, each containing nothing but that binary; pip picks the one matching
your host and unpacks it straight onto your PATH. There is no Python code in
the package, no import package, and no build step — pip install sofabgen
downloads exactly one binary and is done.
Supported hosts: Linux (x86-64, x86-32, ARM64, ARMv7 — glibc and musl alike), macOS (Intel and Apple Silicon), Windows (x86-64, x86-32, ARM64). The binaries are the very ones attached to the matching GitHub release, published from that release by a Trusted Publisher with attestations — so the file you install is verifiably the one CI built from the tagged source.
Only wheels are published, deliberately: with a source distribution present, pip on an unsupported platform would try to build from source and fail obscurely instead of telling you there is no matching distribution.
Links
- Source & documentation: https://github.com/sofa-buffers/generator
- Runtime library (Python): https://pypi.org/project/sofa-buffers-corelib/
MIT licensed.
Release files for sofabgen 0.24.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 39.1 MB
Release files / sofabgen-0.24.1-py3-none-win_arm64.whl
| Download URL | sofabgen-0.24.1-py3-none-win_arm64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
0777248f32517681ae843097e829c31fbafa24cb112de48cc9b970b0b8348146
|
|
BLAKE2b-256 checksum How to use checksums |
a4b82c4ee5d94f2475d5fb8bc0f7cb339d5dbb04a99faf32eae14b04a442f702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-win_amd64.whl
| Download URL | sofabgen-0.24.1-py3-none-win_amd64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a773b4ecbd9bba29be3ceb13bb11d3b92ad8eff3f914394f5766d7df32178ce7
|
|
BLAKE2b-256 checksum How to use checksums |
7eb954d33f318848702c1345051db921f206864d42ac6732fb0b6fa1f4726442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-win32.whl
| Download URL | sofabgen-0.24.1-py3-none-win32.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
3361b42c8ab8950e4adabf1d63d90fd719c469cecc5bf83c8dce334fa411f140
|
|
BLAKE2b-256 checksum How to use checksums |
f709d1be7301b2befc84fb600fd909cec6c073b6e7e76fe9be9c7fe7ed35af95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-musllinux_1_2_x86_64.whl
| Download URL | sofabgen-0.24.1-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
cda1cf714b521116f321b4bf9cbac0051e85b09411b9a0aef447ebb8fb3b8f43
|
|
BLAKE2b-256 checksum How to use checksums |
3cae62ae8ea8b6eab8051968cabc7a035414c6ba19288172f16d49c65ced98ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-musllinux_1_2_i686.whl
| Download URL | sofabgen-0.24.1-py3-none-musllinux_1_2_i686.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux musl 1.2+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
0d35ca3ef770b070bd8ab5a72436e62879e9f02555321ca79171b7349499f964
|
|
BLAKE2b-256 checksum How to use checksums |
6d7d725e89538899b1d117733b007f802027a80cdac3204a47c96c558c448790
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-musllinux_1_2_armv7l.whl
| Download URL | sofabgen-0.24.1-py3-none-musllinux_1_2_armv7l.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux musl 1.2+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
57762fee5f88cd6638d17550ed15b293366cfdabebbc993d3911019e1dfcc43c
|
|
BLAKE2b-256 checksum How to use checksums |
e42207209f76b09b2b3a8c9ec03603b4ad2d7cb1093fba038c99c241dc4e3b22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-musllinux_1_2_aarch64.whl
| Download URL | sofabgen-0.24.1-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
2e26dd0d7a2d2b0de28830c79b8659baeb67a645a4247a78d870269e8f4edee6
|
|
BLAKE2b-256 checksum How to use checksums |
22b17eee755268b83e6a49156875f2fd42873b59eb943ba825c60b58764b3a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-manylinux_2_17_x86_64.whl
| Download URL | sofabgen-0.24.1-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
9374037071703b34cd6a002f0f4a6cd1170e833cc2d7f198142f5936d3645042
|
|
BLAKE2b-256 checksum How to use checksums |
4dc50aff443efe165a0f528acf8e48535bf768c93a3d669021e029554931a1e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-manylinux_2_17_i686.whl
| Download URL | sofabgen-0.24.1-py3-none-manylinux_2_17_i686.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux glibc 2.17+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
1d6a32771caeb57fafb1a4feeae4de025a3d9a54add7bf1f4db4801a7ccfb412
|
|
BLAKE2b-256 checksum How to use checksums |
644d56649c3a95e2976d18f008614cbaf7025ae7815afdb986569ec0f38aa4cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-manylinux_2_17_armv7l.whl
| Download URL | sofabgen-0.24.1-py3-none-manylinux_2_17_armv7l.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux glibc 2.17+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
9b74462378857acc924546d736a957524e593724371bbbf7d31a21411e9566db
|
|
BLAKE2b-256 checksum How to use checksums |
6c4e1cccc49690b1be26303f2e41f8f27a6a3a2d6d36762225873b6a92ac13c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-manylinux_2_17_aarch64.whl
| Download URL | sofabgen-0.24.1-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
8edfa0b17d884b2bdf3b0350e2c3277a478ded6b5eb88d19276ccb465e41cde0
|
|
BLAKE2b-256 checksum How to use checksums |
7f9a475b25d90a26180a2a7af352fda57ad05fc1022323d6e70d210b3eaac680
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-macosx_11_0_arm64.whl
| Download URL | sofabgen-0.24.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1de73fd027d6ecc40949216b7f4ffbc9422c067a2b2f36edfc4362c3fd8d789f
|
|
BLAKE2b-256 checksum How to use checksums |
e1ebb30439da23ed97a330714ec72e900f429ac4a4c4fdba23046162691006fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / sofabgen-0.24.1-py3-none-macosx_10_9_x86_64.whl
| Download URL | sofabgen-0.24.1-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
5f833a2d062cc54cb525f7d84a335573aa56020034d64f4929543329b8b211b8
|
|
BLAKE2b-256 checksum How to use checksums |
cea8fadeb16600fbaa594550de9a1393ff8c5c0246a2dd7f8799902488aed6dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log