struct-sdk-native
Native capture runtime for the Struct observability SDK. struct-sdk
installs it automatically; you do not need to install or import it yourself.
Customer dynamic capture is not integrated yet. The package contains an internal function-boundary
hook primitive, native boundary-plan lowering, an ordinary-function dispatch/lifecycle engine,
and the compiler Struct's server uses to check
instrumentation definitions. struct-sdk does not load these during initialization:
from struct_sdk_native import capability_report
capability_report().available # False in this release
The internal lifecycle disarms inherited hooks after fork and requires explicit
initialize(fresh_consumer) in each worker. It supplies synchronous suppress_capture() scopes
and shutdown(deadline) using an absolute time.monotonic() deadline. The native outcome counts
describe consumer handoff, not export acknowledgement. Initialization establishes the process-owned
cleanup worker; shutdown and cleanup retries never start threads on the deadline-bound caller.
Retain the lifecycle and output adapter while cleanup is pending: active spans keep terminal hooks
until their original function returns and restores context, even after the delivery deadline.
Public struct.init() integration and
output/export lifecycle orchestration remain separate; no signal or exit handler is installed.
CPython 3.12 on Linux glibc (x86_64, ARM64, glibc 2.28 or newer) and macOS arm64 installs a compiled wheel. Every other platform, including Python 3.13 and musl, installs a pure Python wheel that reports the capability as unavailable. Neither case needs a Rust compiler, and no source distribution is published.
The server's publication path uses struct_sdk_native.sil.prepare_definition(bytes) to revalidate
immutable stored artifacts outside database locks, then a fresh configuration_index() to check
every enabled observation's prepared versions together. Preparation preserves existing identities;
the index retains only target/metric signatures. Both call the shared Rust compiler with the GIL
released and report typed refusals. The customer SDK never imports this compiler surface.
Metadata
Release files for struct-sdk-native 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| struct_sdk_native-0.1.12-py3-none-any.whl | Python 3 | none | any | Details for struct_sdk_native-0.1.12-py3-none-any.whl |
| struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64 | Details for struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_x86_64.whl |
| struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ ARM64 | Details for struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_aarch64.whl |
| struct_sdk_native-0.1.12-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details for struct_sdk_native-0.1.12-cp312-cp312-macosx_11_0_arm64.whl |
Total release size: 2.5 MB
Release files / struct_sdk_native-0.1.12-py3-none-any.whl
| Download URL | struct_sdk_native-0.1.12-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d0516fd8398aa4dd06d46fb21f04d9338ccbeaa9043831c360c1e5628629e80
|
|
BLAKE2b-256 checksum How to use checksums |
f17fb799ddef3e6cf88b1e4371bab4ca686d80d88de4e3d42bd9ffa57a992ae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logRelease files / struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 863.3 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
170f1f78dd23920893b35cf882aab81acbf28f3e3c36858ca23893601a1b62f6
|
|
BLAKE2b-256 checksum How to use checksums |
a14525027caa70bee033034c9887de120f840487106f345839fe36565cbae133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logRelease files / struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | struct_sdk_native-0.1.12-cp312-cp312-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 853.2 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
d1d45793d16e550cf7a71f05f66809e598b2aeec7e4f2a8626c5b22be39a22f1
|
|
BLAKE2b-256 checksum How to use checksums |
fc33406dfdc5cdf5ccbcc83ad2281bd1c9f33410d176681c00179a9d186790fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logRelease files / struct_sdk_native-0.1.12-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | struct_sdk_native-0.1.12-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 785.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
304558846770f1aa493722b059870cc868ab0fcaeb31b32291e4405572d13164
|
|
BLAKE2b-256 checksum How to use checksums |
e5635540d3f27a842e1d7e3e1800910c12befdc8a25aa634d1ad1f2ee9098207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logSecurity for struct-sdk-native 0.1.12
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 4 files in this release have been uploaded with provenance metadata.
Attestation for struct_sdk_native-0.1.12-py3-none-any.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 Nov 10, 2026.
Transparency logA 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.