zalfmas-capnp-schemas
Containerized Cap'n Proto schema compiler with C++, C#, Go, Python, and capnp-offset support.
Build image
docker build -t capnp-gen .
Optional build arguments:
- CAPNP_VERSION (default 1.2.0)
- JOBS (parallel make jobs, default 6)
- CAPNPC_GO_PKG (Go plugin module path)
- CAPNPC_GO_VERSION (default v3.1.0-alpha.2)
Example:
docker build --build-arg CAPNP_VERSION=1.2.0 --build-arg JOBS=12 -t capnp-gen .
Basic usage
The image ENTRYPOINT is: python3 capnp_compile.py
Default CMD: --lang c++ go csharp python capnp_offsets
docker run --rm -u $(id -u):$(id -g) \
-v "$(pwd)":/workspace -w /workspace capnp-gen
Explicit (C++ + Go):
docker run --rm -u $(id -u):$(id -g) \
-v "$(pwd)":/workspace -w /workspace capnp-gen --lang c++ go
Notes
- Schemas must be available inside the mounted workspace (default: current directory).
- Generated code is written relative to /workspace (your mounted directory).
- capnpc-go is on PATH (installed in /usr/local/bin).
- Go generation maintains a single module rooted at
gen/go. gen/go/go.modis preserved by the generator, andgo mod tidyruns automatically after Go regeneration to refreshgo.sum.- Adjust UID/GID mapping with -u to avoid root-owned outputs.
Updating Go plugin only
Rebuild with a different CAPNPC_GO_VERSION:
docker build --build-arg CAPNPC_GO_VERSION=v3.0.0 -t capnp-gen .
Metadata
Release files for zalfmas-capnp-schemas 0.1.69
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zalfmas_capnp_schemas-0.1.69.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zalfmas_capnp_schemas-0.1.69-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.5 MB
Release files / zalfmas_capnp_schemas-0.1.69.tar.gz
| Download URL | zalfmas_capnp_schemas-0.1.69.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02995409740420194f7842ad50a6cd754af54cffbcc7ebbb52f2a094964feea7
|
|
BLAKE2b-256 checksum How to use checksums |
52e6c99c4d6861ab0938b7cc4dc2c4592717bb40f9cd308738f33baa448d3294
|
| 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 / zalfmas_capnp_schemas-0.1.69-py3-none-any.whl
| Download URL | zalfmas_capnp_schemas-0.1.69-py3-none-any.whl |
|---|---|
| Size | 785.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb78900d077d18055d8ba582eea1f550e2d61eb69d2f17958b16ef19defd1c1f
|
|
BLAKE2b-256 checksum How to use checksums |
7812780f219b94fb41568bb622c59749e3bae70613c9f42f9e4873442e3976b8
|
| 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