STRling Python adapter
STRling 4.0.3 public installation requires the separately authorized release. Check the release certificate for public availability and independent acceptance. Candidate tests use staged artifacts; certification alone does not prove publication. See the support matrix for exact supported scopes.
This package is the supported Python host adapter for the canonical STRling
compiler. It sends versioned JSON requests through strling.c-abi v1 using
ctypes; it does not contain an independent parser, validator, target emitter,
or standard-library implementation.
Installation and runtime
The Supported distribution scope is CPython 3.12 on Windows/Linux x86_64.
Platform wheels embed
the exact native interop library assembled from the governed Rust source. The
adapter never downloads a library, searches PATH, selects a semantic target,
or falls back to the historical Python compiler.
from STRling import Compiler, load_native, source_compile_request
client = load_native()
compiler = Compiler(client)
source = 'semantic strling 1.0; case sensitive; pattern text "hello";'
result = compiler.compile(source_compile_request(source))
if result["outcome"] != "succeeded":
raise RuntimeError(result["diagnostics"])
print(result["outcome"])
Source-tree and development use can select one exact library explicitly:
from STRling import load_native
def connect(authenticated_library_path):
return load_native(authenticated_library_path)
Canonical compile failures remain result values. Native loading, ABI, memory, and interop-envelope failures use distinct adapter exceptions and preserve stable interop codes and paths where the protocol supplies them.
Simply requests
The STRling.simply namespace retains ergonomic constructors while recording
only canonical Simply protocol operations:
from STRling import simply
pattern = simply.merge(simply.lit("A"), simply.digit(1, 3))
response = pattern.compile(client, compile_projection, exact_target_profile)
if response["status"] != "success" or response["compile_result"]["outcome"] != "succeeded":
raise RuntimeError(response)
Standard helpers delegate by canonical registry identity. Helpers declared
lexical_shape remain lexical-shape helpers and may accept semantically invalid
values. Pattern.exec and implicit string rendering are retired because this
adapter does not simulate target-engine execution.
The Simply fragment assumes the preceding client and application-owned
compile_projection and exact_target_profile JSON values. Request a target
artifact only with the exact profile and its reference; the adapter never
infers a target. The source factory defaults to strling.semantic@1.0.0;
regex-compatible source requires frontend_id="strling.regex-compat".
Architecture
The host package owns only deterministic request construction, native-library loading, bounded borrowed-input transfer, same-descriptor response release, strict UTF-8/JSON projection, exceptions, package mechanics, and ergonomic Simply recipes. Language semantics, diagnostics, portability, lowering, serialization, and helper meaning remain in the canonical Rust kernel.
Product compatibility
Fourth Edition packages require the exact 4.0.3 native product identity in addition to ABI 1 and protocol 1.0.0. Dynamic loaders check the bounded binary product marker before loading; installed CMake packages check their static archive during configuration. Unmarked older kernels and mismatched product versions fail closed. This package check does not authenticate arbitrary local files; release checksums and signed evidence authenticate distribution bytes. The compiler semantics and versioned ABI/protocol are unchanged.
Release wheels target CPython 3.12 on Windows x86_64 and the governed Linux
x86_64 scope. Linux wheels use manylinux_2_34_x86_64; their native ABI is audited
before and after platform tagging, with no native payload replacement or bundled
external libraries. This tag does not expand the supported operating-system scope.
Proposed public installation
After separately authorized publication, the exact proposed coordinate is:
python -m pip install STRling==4.0.3
Use only the runtime, OS, CPU and native/WASM loading scope declared above and in the support matrix.
Metadata
Release files for STRling 4.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| strling-4.0.3.tar.gz | 336.1 kB | With provenance | Details for strling-4.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strling-4.0.3-cp312-none-win_amd64.whl | CPython 3.12 | none | Windows x86-64 | Details for strling-4.0.3-cp312-none-win_amd64.whl |
| strling-4.0.3-cp312-none-manylinux_2_34_x86_64.whl | CPython 3.12 | none | Linux glibc 2.34+ x86-64 | Details for strling-4.0.3-cp312-none-manylinux_2_34_x86_64.whl |
Total release size: 4.8 MB
Release files / strling-4.0.3.tar.gz
| Download URL | strling-4.0.3.tar.gz |
|---|---|
| Size | 336.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c3b0fdab8a7b787abf1b15e0ff5e43cffc824663603fbd99a6f529041745290
|
|
BLAKE2b-256 checksum How to use checksums |
2baf1a2d57d99cc6a526dbb36eafcf174cf70027215d30a088111a73fe46a56d
|
| 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 Nov 19, 2026.
Transparency logRelease files / strling-4.0.3-cp312-none-win_amd64.whl
| Download URL | strling-4.0.3-cp312-none-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1cbf17a5a9d8d46b5841aa43166257e4c8bd7fb62a6ee5695e07caf56d5e7324
|
|
BLAKE2b-256 checksum How to use checksums |
5a115f36479fd5476f0fecb5c77d125d24d7c9c294346a7225c02db681147756
|
| 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 Nov 19, 2026.
Transparency logRelease files / strling-4.0.3-cp312-none-manylinux_2_34_x86_64.whl
| Download URL | strling-4.0.3-cp312-none-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
b28fbaaaf96a20be6efdb87e61030e0ae164f8dcd4cb886224548eb2bb0f465d
|
|
BLAKE2b-256 checksum How to use checksums |
91262e4a79b2a9b8b944f45c5270145dae1746247512342753d01149579beca4
|
| 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 Nov 19, 2026.
Transparency logSecurity for STRling 4.0.3
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 3 files in this release have been uploaded with provenance metadata.
Attestation for strling-4.0.3.tar.gz
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 19, 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.