Skip to main content

serpentine-shim

The runtime companion of the Serpentine compiler. It provides the ownership vocabulary — Owned, Ref, Mut, Shared, Weak, move, @native — as runtime no-ops, so a Serpentine program is also a valid, runnable CPython program:

from serpentine import Owned, Ref, move

def total(prices: Ref[list[float]]) -> float:
    return sum(prices)

def main() -> None:
    prices: Owned[list[float]] = [9.99, 4.50]
    print(total(prices))
    archive = move(prices)   # lambda x: x at runtime; a semantic move to `serp check`

Under CPython this package does nothing except make the imports resolve: the wrappers are typing.Annotated aliases (so Owned[list[float]] is list[float] to any type checker) and move returns its argument. All semantics live in the static checker, serp check.

This package is intentionally frozen and tiny: its public API is part of the Serpentine language spec (docs/spec.md).

Metadata

Release files for serpentine-shim 0.9.0

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

Source distribution (sdist)

Source distribution for serpentine-shim 0.9.0
File Size Uploaded
serpentine_shim-0.9.0.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serpentine-shim 0.9.0
File Interpreter ABI Platform
serpentine_shim-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / serpentine_shim-0.9.0.tar.gz

Download URL serpentine_shim-0.9.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
517c3d3792b2476e074c931e0e92fd8bfd25e8c1f6281499a75cbc193915c8f4
BLAKE2b-256 checksum
How to use checksums
be5912e90478fd5fa39f292f645393794b5da4342a7a8c9a254d0a5bfaeed29b
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 28, 2026.

Transparency log

Release files / serpentine_shim-0.9.0-py3-none-any.whl

Download URL serpentine_shim-0.9.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
167aff849b811c8a966fd3c2ff26da3c6c887f04ee6a22ed6351aa065b0cc19e
BLAKE2b-256 checksum
How to use checksums
b52ca53f0184635bcd73dfe4cf1e93ec998e0eb02bd4ef4b6ef754ef0cbd208c
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 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.6.0

2 release files

0.3.0

2 release files

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