Skip to main content

spork-runtime

spork-runtime is the runtime distribution for Spork programs. It contains:

  • the runtime types and helpers emitted Python code depends on;
  • persistent collection integration backed by spork-pds;
  • namespace and protocol support;
  • JSON support and declared-test descriptors; and
  • the Spork standard library implemented as ordinary Python modules.

It intentionally contains no reader, compiler, import hook, or .spork source files. A compiled Spork application can therefore depend on spork-runtime without installing spork-lang or compiling the standard library during installation.

Install

pip install spork-runtime

Python API

from spork.runtime import Keyword, assoc, get, hash_map, vec
from spork.std import map as maps
from spork.std import string

users = hash_map(Keyword("count"), 1)
users = maps.update(users, Keyword("count"), lambda value: value + 1)
assert get(users, Keyword("count")) == 2
assert string.join(", ", vec("Spork", "Python")) == "Spork, Python"

Python standard-library modules mirror the Spork namespaces:

Spork namespace Python module
std.string spork.std.string
std.map spork.std.map
std.json spork.std.json

spork.std.prelude.MACROS exposes the built-in macro implementations as Python callables for the compiler to install into its macro environment.

Development

python -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
.venv/bin/python -m pytest
.venv/bin/python -m build

The spork directory is an implicit namespace package. This allows spork-runtime, spork-pds, and spork-lang to provide separate portions of the same Python namespace.

Metadata

Release files for spork-runtime 0.1.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 spork-runtime 0.1.1
File Size Uploaded
spork_runtime-0.1.1.tar.gz 38.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spork-runtime 0.1.1
File Interpreter ABI Platform
spork_runtime-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 77.0 kB

Release files / spork_runtime-0.1.1.tar.gz

Download URL spork_runtime-0.1.1.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f91f81a0b67162bb03193db50967d73b0fdecc4296c96406e9393715705409a7
BLAKE2b-256 checksum
How to use checksums
b207908fecbbb6ea8d814030a059acd02a50712b5852809984d0d0c8fe6118d1
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 Aug 30, 2026.

Transparency log

Release files / spork_runtime-0.1.1-py3-none-any.whl

Download URL spork_runtime-0.1.1-py3-none-any.whl
Size 38.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4c9ced8039e82510592f1bbe833c8b91543ffd882a86c1b818e2365ba15c6d4
BLAKE2b-256 checksum
How to use checksums
843910936b043552269ab2b857bca7a3b280c0e5d5f0b6069f99aa0125bfcbb5
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 Aug 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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