Skip to main content

STRling Python adapter

STRling 4.0.1 is not publicly published. Public installation commands describe the proposed separately authorized release. Candidate tests use staged artifacts. 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.1 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.1

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for STRling 4.0.1
File Size Uploaded Provenance Actions
strling-4.0.1.tar.gz 336.0 kB With provenance Details for strling-4.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for STRling 4.0.1
File Interpreter ABI Platform Actions
strling-4.0.1-cp312-none-win_amd64.whl CPython 3.12 none Windows x86-64 Details for strling-4.0.1-cp312-none-win_amd64.whl
strling-4.0.1-cp312-none-manylinux_2_34_x86_64.whl CPython 3.12 none Linux glibc 2.34+ x86-64 Details for strling-4.0.1-cp312-none-manylinux_2_34_x86_64.whl

Total release size: 4.8 MB

Release files / strling-4.0.1.tar.gz

Download URL strling-4.0.1.tar.gz
Size 336.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3d229c83b50927e21bf525c24b1e58877a91306c52b12cb72dc31b5c15036026
BLAKE2b-256 checksum
How to use checksums
72bc9b6ff0a0a652665cdea1eb24d8b37c8c83e5b484ba26c0e7870c7757ae69
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 17, 2026.

Transparency log

Release files / strling-4.0.1-cp312-none-win_amd64.whl

Download URL strling-4.0.1-cp312-none-win_amd64.whl
Size 1.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
14e3b1358d4cd19825c7fc6c18a19be98308dface7bc016f8b6d5a9fe92898ff
BLAKE2b-256 checksum
How to use checksums
f13849c0253c7901f22e2b99c3b9a714fbc0d712b99552398186ef10c5bc54be
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 17, 2026.

Transparency log

Release files / strling-4.0.1-cp312-none-manylinux_2_34_x86_64.whl

Download URL strling-4.0.1-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
b4dcc7eb06067f9d3cfa74d17b5f76cdabd33def922c4f9dc82884c77ec98764
BLAKE2b-256 checksum
How to use checksums
da25a691f2131fcea2f368f27ffe0e61cafe1a97ac8c2896e96b7fccf4de3405
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 17, 2026.

Transparency log

Security for STRling 4.0.1

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.

Select from 3 files

Attestation for strling-4.0.1.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 17, 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