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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serpentine_shim-0.6.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

serpentine_shim-0.6.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file serpentine_shim-0.6.0.tar.gz.

File metadata

  • Download URL: serpentine_shim-0.6.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for serpentine_shim-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8f075fab5c05edf791cc8b063ffc5b059270f96a6e97a1de4bd5256ee52d7604
MD5 ad8864f25ae9f5e4cf1a5288acc60f40
BLAKE2b-256 e0ab5e7280c83f693f8e9a266e4e10bac3beb34c27b6501a3f6fa10feda45b04

See more details on using hashes here.

Provenance

The following attestation bundles were made for serpentine_shim-0.6.0.tar.gz:

Publisher: release.yml on avijitbhuin21/Serpentine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file serpentine_shim-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for serpentine_shim-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be79b60f8ec42b78b7410e07df7f6af67079eee4a595da8a668bfc0ef9984abd
MD5 86c68bb657aed2999e90d22e19842327
BLAKE2b-256 7f6757ec6f95512e55735e5ef6814e2c61e7f5cec6b9b4c5a02d302a1c6364dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for serpentine_shim-0.6.0-py3-none-any.whl:

Publisher: release.yml on avijitbhuin21/Serpentine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page