Skip to main content

SofaBuffers

SofaBuffers

Structured Objects For Anyone
... so optimized, feels amazing.

Would you like to know more?


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 of c, cpp, csharp, dart, docs, go, java, kotlin, python, rust, typescript, zig.
  • --in <path> — a message-definition file, or a directory of them (generated together as one schema).
  • --out <dir> — where the generated code is written.
  • --config <file> — the YAML/JSON config carrying all options.
  • --version prints the version; --help lists 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.

MIT licensed.

Metadata

Release files for sofabgen 0.25.0

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

Built distributions (wheels)

Table of built distributions (wheels) for sofabgen 0.25.0
File Actions
sofabgen-0.25.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for sofabgen-0.25.0-py3-none-win_arm64.whl
sofabgen-0.25.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for sofabgen-0.25.0-py3-none-win_amd64.whl
sofabgen-0.25.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for sofabgen-0.25.0-py3-none-win32.whl
sofabgen-0.25.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for sofabgen-0.25.0-py3-none-musllinux_1_2_x86_64.whl
sofabgen-0.25.0-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details for sofabgen-0.25.0-py3-none-musllinux_1_2_i686.whl
sofabgen-0.25.0-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details for sofabgen-0.25.0-py3-none-musllinux_1_2_armv7l.whl
sofabgen-0.25.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for sofabgen-0.25.0-py3-none-musllinux_1_2_aarch64.whl
sofabgen-0.25.0-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for sofabgen-0.25.0-py3-none-manylinux_2_17_x86_64.whl
sofabgen-0.25.0-py3-none-manylinux_2_17_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details for sofabgen-0.25.0-py3-none-manylinux_2_17_i686.whl
sofabgen-0.25.0-py3-none-manylinux_2_17_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details for sofabgen-0.25.0-py3-none-manylinux_2_17_armv7l.whl
sofabgen-0.25.0-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for sofabgen-0.25.0-py3-none-manylinux_2_17_aarch64.whl
sofabgen-0.25.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for sofabgen-0.25.0-py3-none-macosx_11_0_arm64.whl
sofabgen-0.25.0-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for sofabgen-0.25.0-py3-none-macosx_10_9_x86_64.whl

Total release size: 43.2 MB

Release files / sofabgen-0.25.0-py3-none-win_arm64.whl

Download URL sofabgen-0.25.0-py3-none-win_arm64.whl
Size 3.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
da4c11947ae7c3a38cbdb481c0ad77684256725fcda3789011b2d2e04cdeb0cb
BLAKE2b-256 checksum
How to use checksums
e845198c7e15b70e9662ef425a5130af4cfa9db355b7da0720d6fe817af559db
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-win_amd64.whl

Download URL sofabgen-0.25.0-py3-none-win_amd64.whl
Size 3.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a6cb59ce75e05271594afb0b69bc18d8c297e6814b7d5f51e173f7ca950cc24f
BLAKE2b-256 checksum
How to use checksums
0a48aa6e3661ffff1cb12846c35ae028dc4f1c05b077fc4970ae1b5072db6a6e
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-win32.whl

Download URL sofabgen-0.25.0-py3-none-win32.whl
Size 3.4 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
c2ee81fdfced442cdbc02e55659435e2340b3203137fc691e4e34ddce9f89f8c
BLAKE2b-256 checksum
How to use checksums
e5083513ffc1ca44f93bd1d3655665c771aece64e8381077df2c45a403f805d0
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-musllinux_1_2_x86_64.whl

Download URL sofabgen-0.25.0-py3-none-musllinux_1_2_x86_64.whl
Size 3.5 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a8fc3ef5ebd34d919d405c57cdc351271dcfbece186c37b154b49f3f08f3c693
BLAKE2b-256 checksum
How to use checksums
ba62a1f017e8efb5a7d81c14e242d6e1c18a70adc4550608f5dd710f6ff60e90
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-musllinux_1_2_i686.whl

Download URL sofabgen-0.25.0-py3-none-musllinux_1_2_i686.whl
Size 3.3 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
af38cf70fc8ccb0a040aeb4c8994445e64a1aa1775fb8962529769524b86857e
BLAKE2b-256 checksum
How to use checksums
337e1daec46b7f26dc7f913ae513165a048cf7b7549d6c2a6b003281f625d3d4
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-musllinux_1_2_armv7l.whl

Download URL sofabgen-0.25.0-py3-none-musllinux_1_2_armv7l.whl
Size 3.3 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
4e1608caa598dadea6506fabbed80a53f85c11c85d8e6d8659d8193262f383a2
BLAKE2b-256 checksum
How to use checksums
ccc1926d53c7bd162facd0a9d8dba318115a2d7b0f172b846b0d9e6e97d481f8
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-musllinux_1_2_aarch64.whl

Download URL sofabgen-0.25.0-py3-none-musllinux_1_2_aarch64.whl
Size 3.1 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6344215c9fcee9feab9611ac7ec8398884e7f9d06852b20e65fc7252525d97f6
BLAKE2b-256 checksum
How to use checksums
4396e9033f9e7fd71fa39f31750aa5279b7a2f05255d71f28b847e206c05ed8e
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-manylinux_2_17_x86_64.whl

Download URL sofabgen-0.25.0-py3-none-manylinux_2_17_x86_64.whl
Size 3.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c4ba9549488bbe153859ce9c1fdfee4a52f1154ecacd1cf11b7dbd04ea476f6c
BLAKE2b-256 checksum
How to use checksums
4aa95e28d76a887a184590d7366a4e5a01a6a8c59254b8a54dd914738f73a5cd
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-manylinux_2_17_i686.whl

Download URL sofabgen-0.25.0-py3-none-manylinux_2_17_i686.whl
Size 3.3 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
e015dcd86c6a24e494ff14619c8c5cf1e4cced64873f47070e523516ee904851
BLAKE2b-256 checksum
How to use checksums
3d50df457f875cfa91368b833d849168955f21719b1483cef5c9adb7f5a7b9aa
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-manylinux_2_17_armv7l.whl

Download URL sofabgen-0.25.0-py3-none-manylinux_2_17_armv7l.whl
Size 3.3 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
c9ebd4615142129e041112fda700cebedcad85b2b9129f05273cb6da3e11b990
BLAKE2b-256 checksum
How to use checksums
cc66d0594e77d879bea09a845db91e61280b02f000cf213374c03b88b4b25e04
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-manylinux_2_17_aarch64.whl

Download URL sofabgen-0.25.0-py3-none-manylinux_2_17_aarch64.whl
Size 3.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
435bb22ccb8969a80ee8e4441cba8920f1d4588b154ef25c215d6ad4b855c85c
BLAKE2b-256 checksum
How to use checksums
1281759037e1899cde77f35d38c8c68591bf488471b32178dcb7ea11c5818af7
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-macosx_11_0_arm64.whl

Download URL sofabgen-0.25.0-py3-none-macosx_11_0_arm64.whl
Size 3.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a9b3319d82b48b9565c76560c14a122f81e2da90c38c02e32bef0176a63cba9
BLAKE2b-256 checksum
How to use checksums
8ea36e7e999b74f4b2ff5b4fc563857145ec6d820b98dedf1bb8e1520e841c7d
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 Oct 20, 2026.

Transparency log

Release files / sofabgen-0.25.0-py3-none-macosx_10_9_x86_64.whl

Download URL sofabgen-0.25.0-py3-none-macosx_10_9_x86_64.whl
Size 3.5 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
31fa7d6dc50c83655bcdb314a4d7b9f398b77da321ddfd25d70d735306ad2593
BLAKE2b-256 checksum
How to use checksums
a935e7e1cc8e85e96d93c92531d90c2dd0676e435bf7cbf6aeae07cd95482926
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 Oct 20, 2026.

Transparency log

Security for sofabgen 0.25.0

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.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for sofabgen-0.25.0-py3-none-win_arm64.whl

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 Oct 20, 2026.

Transparency log

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.

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