Skip to main content

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.

Public struct.init(api_url=...) composes authenticated Observation configuration with native function-boundary hooks, boundary-plan lowering and the ordinary-function lifecycle. The SDK emits outputs through OpenTelemetry and owns export and health. Capability depends on the interpreter, platform and verified adapter:

from struct_sdk_native import capability_report

capability_report().available  # True only on a supported, verified native build

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() owns this composition; call it explicitly in each forked worker and call struct.shutdown() during application teardown. This native package installs no signal or exit handler.

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.13

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 struct-sdk-native 0.1.13
File Actions
struct_sdk_native-0.1.13-py3-none-any.whl Python 3 none any Details for struct_sdk_native-0.1.13-py3-none-any.whl
struct_sdk_native-0.1.13-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.13-cp312-cp312-manylinux_2_28_x86_64.whl
struct_sdk_native-0.1.13-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.13-cp312-cp312-manylinux_2_28_aarch64.whl
struct_sdk_native-0.1.13-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for struct_sdk_native-0.1.13-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 2.6 MB

Release files / struct_sdk_native-0.1.13-py3-none-any.whl

Download URL struct_sdk_native-0.1.13-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b92e9eabb46493e99ef2bdcbf46efd3544bc6cec64f03fe1111b79641a18076d
BLAKE2b-256 checksum
How to use checksums
818c26b1d4eca5bfcbfe873c6ae1570b09f93da3f21b3fe42533eb43770978e3
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 11, 2026.

Transparency log

Release files / struct_sdk_native-0.1.13-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL struct_sdk_native-0.1.13-cp312-cp312-manylinux_2_28_x86_64.whl
Size 873.9 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ed9957b3206aa3e6bd5240221fc107a4151f52ede061b30ed834fe9d801dbbd8
BLAKE2b-256 checksum
How to use checksums
abbcd1dd1713e2966d9c6075c8c5b4ada5c28a61628f7d5994ab554b5bb162b8
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 11, 2026.

Transparency log

Release files / struct_sdk_native-0.1.13-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL struct_sdk_native-0.1.13-cp312-cp312-manylinux_2_28_aarch64.whl
Size 863.1 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d672d231ac6f7ff23bdc38ad9f2d4ef5b414b8ac43dedb08e5de75a4f3fe9d41
BLAKE2b-256 checksum
How to use checksums
09801022652b58eb3fd6e82f4d74228fe0d7480e1fe4f590fbc189153b7caf52
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 11, 2026.

Transparency log

Release files / struct_sdk_native-0.1.13-cp312-cp312-macosx_11_0_arm64.whl

Download URL struct_sdk_native-0.1.13-cp312-cp312-macosx_11_0_arm64.whl
Size 790.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d4767ce3d828d8be2d9c92291ddb2aebf9ef2df999d07c1f6c15c54cc4385885
BLAKE2b-256 checksum
How to use checksums
3a5daf55c19020cb725fd26e9009a85362cd56733c4896b27881840f2b80df93
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 11, 2026.

Transparency log

Security for struct-sdk-native 0.1.13

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.

Select from 4 files

Attestation for struct_sdk_native-0.1.13-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 11, 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