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.
  • --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 corelib-py; generated modules import from it:

from sofab import Encoder, Decoder

It is not published on PyPI yet — install it from the repository until it is. 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.

Release files for sofabgen 0.23.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.23.0
File
sofabgen-0.23.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
sofabgen-0.23.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
sofabgen-0.23.0-py3-none-win32.whl Python 3 none Windows x86-32 Details
sofabgen-0.23.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
sofabgen-0.23.0-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details
sofabgen-0.23.0-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details
sofabgen-0.23.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
sofabgen-0.23.0-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
sofabgen-0.23.0-py3-none-manylinux_2_17_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
sofabgen-0.23.0-py3-none-manylinux_2_17_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details
sofabgen-0.23.0-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
sofabgen-0.23.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
sofabgen-0.23.0-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details

Total release size: 34.4 MB

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

Download URL sofabgen-0.23.0-py3-none-win_arm64.whl
Size 2.5 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
7ad160a1b4d633c79844914b1b4a5907054764c3d6ece043707227972ee33658
BLAKE2b-256 checksum
How to use checksums
ea9efc8d79eb13725b2c96fda253ea755ce85e48103667d8289c5410961c12d6
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-win_amd64.whl
Size 2.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
73149de0ed258bb66a86df5cd14b1188332c616b942a9d53f880e132e6115021
BLAKE2b-256 checksum
How to use checksums
7f5d130aebcd6c16146fcedf5b237c9cf16d8ff1befda3c2b60d941d634d840c
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-win32.whl
Size 2.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
fcd75d39eb07f2235ebc51923da855859775f4634adfabb10030d23c9b4f20c8
BLAKE2b-256 checksum
How to use checksums
bd61d70a3f256381b8b9e72d922a6164f531ee1227b31d71fb388815020e9d28
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-musllinux_1_2_x86_64.whl
Size 2.8 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5dabd865277bc8c7018e7c1495b2624444c0aa33a047e66e953b847673bcb279
BLAKE2b-256 checksum
How to use checksums
acf70c02d5b4f76f2ea14b933073eca386be7979289211938d8e53a2d4dc4e1e
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-musllinux_1_2_i686.whl
Size 2.6 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
adeacc42a1f634469faacd6e4e7ef1c465ae536dd0f160485d7b323a15fc5225
BLAKE2b-256 checksum
How to use checksums
199bc1fa25261f46a6cbf5f91d87b1e6d358dc5772fcc27b954cebff52beef85
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-musllinux_1_2_armv7l.whl
Size 2.6 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
f551ab3879b243bfede3e8752158d7e564674b1627611ba55c913f869c5a0038
BLAKE2b-256 checksum
How to use checksums
3f9630c62163bd9db634f82186a3e95c22954f395e46d353c0761b4182c07ecc
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-musllinux_1_2_aarch64.whl
Size 2.5 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6e28c15ca15188808ee7599b6de512f446ecd125d2121ee217768003cd451677
BLAKE2b-256 checksum
How to use checksums
d6155a2ec08c2dea4a5473fe2c9f3245f88706714cbd800c8b88bcee55340701
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-manylinux_2_17_x86_64.whl
Size 2.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1b519cd333b3c305e9acb51e75c41dea5f6b36c2f48915e249b3f434a5cf486b
BLAKE2b-256 checksum
How to use checksums
e144385c0d5d128cf1d5da6fc87590b7d85e50147899c9699b21262b7b9e5552
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-manylinux_2_17_i686.whl
Size 2.6 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
799e162c7f8d9538e0219363ad9d9da75f7287b7e69637e4d9e2c536d1da36f4
BLAKE2b-256 checksum
How to use checksums
9c447124572a143096aac89d6532b8ccbfbfbc6935593bca4287dbf1779af15d
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-manylinux_2_17_armv7l.whl
Size 2.6 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
b81b150c3ad4d3cda6501e55631d6cdc9123c4a14761b511efa10ebd27798a36
BLAKE2b-256 checksum
How to use checksums
ca093ee69a038c133609586278ed2d081fd1ddb5cff3973c981c070ad8a935ae
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-manylinux_2_17_aarch64.whl
Size 2.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
cb079845842cae2632806c408c7b674c33aab7625309b2e0581754171a2dc236
BLAKE2b-256 checksum
How to use checksums
42d5e0442f7fb9ec628f2403b0b4fa8da732316cf1083a94327ed452769086bb
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-macosx_11_0_arm64.whl
Size 2.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d4fbc6b9bb031ee79085a87e7a2c434758b2d16b511a99d24459629b81b563bb
BLAKE2b-256 checksum
How to use checksums
ae5a21158dc6cb1fb434971146c04e76607c04a8bbe91452851eb78d432b982a
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 Aug 21, 2026.

Transparency log

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

Download URL sofabgen-0.23.0-py3-none-macosx_10_9_x86_64.whl
Size 2.8 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
386d8b2c86ed64d3b7a022e4606237d8278a843782f657a257cb14902440a3a6
BLAKE2b-256 checksum
How to use checksums
1617bf8527817516ac8501dbbb10a301ea210f65e1d6ad6c30c606fffb5879d6
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 Aug 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.23.0 This release

13 release files

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