Skip to main content

Wraps starlark-rust into Python

Project description

Github Build Status Python Package Index Release Page

This package provides a sandboxed/restricted Python-like environment by exposing the starlark-rust interpreter for the Starlark Python-like language to Python via PyO3.

Starlark claims the following design principles:

  • Deterministic evaluation. Executing the same code twice will give the same results.

  • Hermetic execution. Execution cannot access the file system, network, system clock. It is safe to execute untrusted code.

  • Parallel evaluation. Modules can be loaded in parallel. To guarantee a thread-safe execution, shared data becomes immutable.

  • Simplicity. We try to limit the number of concepts needed to understand the code. Users should be able to quickly read and write code, even if they are not expert. The language should avoid pitfalls as much as possible.

  • Focus on tooling. We recognize that the source code will be read, analyzed, modified, by both humans and tools.

  • Python-like. Python is a widely used language. Keeping the language similar to Python can reduce the learning curve and make the semantics more obvious to users.

Status: This is reasonably complete and usable.

Alternatives: Other packages with similar goals but a different twist include xingque and the older starlark-go.

Installation

To install, say:

pip install starlark-pyo3

Binary wheels are available for all major platforms. The module is importable as starlark.

Installation for Development

To use this, make sure you have nightly rust available:

curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs \| sh rustup
default nightly

Then, to install into the current Python virtual environment:

pip install maturin
maturin develop

Project details


Download files

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

Source Distribution

starlark_pyo3-2026.1.tar.gz (42.0 kB view details)

Uploaded Source

Built Distributions

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

starlark_pyo3-2026.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp314-cp314-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.14Windows x86-64

starlark_pyo3-2026.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp314-cp314-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

starlark_pyo3-2026.1-cp313-cp313-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.13Windows x86-64

starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARMv7l

starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

starlark_pyo3-2026.1-cp313-cp313-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

starlark_pyo3-2026.1-cp312-cp312-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.12Windows x86-64

starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARMv7l

starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

starlark_pyo3-2026.1-cp312-cp312-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

starlark_pyo3-2026.1-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARMv7l

starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

starlark_pyo3-2026.1-cp311-cp311-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

starlark_pyo3-2026.1-cp310-cp310-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.10Windows x86-64

starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARMv7l

starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARMv7l

starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

File details

Details for the file starlark_pyo3-2026.1.tar.gz.

File metadata

  • Download URL: starlark_pyo3-2026.1.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for starlark_pyo3-2026.1.tar.gz
Algorithm Hash digest
SHA256 c2aab1df537901be9244faca4b859739e18d4567db302d472e46e1f35cb13847
MD5 e94cbb4bc094feb0c7cbc6880aa98b84
BLAKE2b-256 2dee8fad5836bf22ee73f7b02e5b2b80808f20c28b1906c59c014a04d7a97996

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02d3b3eeaa145aad9f3b0642c9dc85dc8a6c2ad1b078c5a3d38fe06659c60097
MD5 dd07d72e238d3804d6d67eb27211585c
BLAKE2b-256 fdb55d0af128024d9e09816be219eecb1e2c49edb32aea0b605cf5b84afc54f5

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 849b4a755242f97eae96ccc9140b61c6c37bc01388f5dc69838d8057b867616d
MD5 4029aba799e490555724113f3f3557fb
BLAKE2b-256 7eae128ffbc18390553bc78728b302d49f4c0b02c6f61435df21fab5b8770260

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba22714843d4ed89c403704a7ffe3104eee30acc5e648676a2516580dbf1e727
MD5 863867bda27360d6afcd4644c57d5257
BLAKE2b-256 7a38e47dca5bd1f76bd31f0b05a6f90b53e09aad2f011e0158aefbac43c82784

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f015bcf243dd946ec45ad2742311450ba8608b0c0a76fe83f629fe4ca63f3ec
MD5 fff54345c7694c5a08784f5d5ce746d6
BLAKE2b-256 c4ef319857e7d953ff067c1a5cc862013c5f7b78ad0f7045c62fb5558a535ab0

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a2265f4f9468710571a523cdbb25e1c5039c0daac9585eca9bf8f9ce66fd0756
MD5 09f158865f61cfabe184dafa064611e6
BLAKE2b-256 292552b5ed8b8062f398ed4ede50bf33972e9c33747749302da726aed6e2d03e

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ca09bb18a14cf9745d2c22680da87f76e336a27603283132cb00b4cd9f1f26a
MD5 60950e2562e1c80e9cbc6183704c6881
BLAKE2b-256 7df4667e251050806da06e35c5759b0e483cca10d7b521a9b5394b7db7af1ad9

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 75558cd34cdf4099633dfa147a55436210be24eacfadb08ae00474e1965e6c55
MD5 7bfaf84c85c89ebcfeaf0b669b87db3a
BLAKE2b-256 dee7f84d3c4d22c502cddef00142c5883ec2bac6005b7c2f3d73b2432f64496a

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0c781c2a623835ceb47abaa1c6096b52f96ca26f20432ca87f4b72a963d4e9e7
MD5 e8a03added4600eb175d0016ffc1ffaf
BLAKE2b-256 668d4f4459c83c03d4551e33704af0f3dad0377e6ac934e5020f81a1bc30c91c

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 446ae406d8e14f34fc736524de56572b138a4f80b1a995d1e2f1e8491fc65f1d
MD5 28fe56d4e3d2970dcc3f396757634e98
BLAKE2b-256 9df29302070c00b1daca369173763d2d1613a92ba2776b78d020d7b45300c898

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34e63685186ac77d9d192ae1aa927ce2585529f29e624e9dda3f374943dc37dc
MD5 d4014a9269eb25e8afbf67686aa2b4b3
BLAKE2b-256 1cb1abf6960722743d17c6bf5290a44bd824759b692d6a39e15f5b9c5747ee65

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 301479c46063b9289f17479e927843f3d652e25b2a6593fdfb40c74ccd94a99a
MD5 eb8815bbc137ce815310c05ba64a7137
BLAKE2b-256 44bbf6e5e7528b26f48885ac9191d4674bc85f5c8d657faf55107b4fa7d057b9

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 f8bad3ef79246b07abc555e2021cbc947c0c0a38f384dca9a943d2e5df466e4b
MD5 2b8fb94d0d3e97ec15fbff8ba761f28d
BLAKE2b-256 684c7ef4d18bfba685b4acc03198146971d3fa68e0a9338cc9e78535cefb929f

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8192b394b637cb2e6056b915bc23ce5641abecf5197f51567ccd673a8f520335
MD5 c1e8e5a3ff82364baaa199642b70a717
BLAKE2b-256 10a10da624093605bedf3a15b29f1f2ed1e02305588f27bc1609297e3190a274

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c98773d957ac5236b393786fb000ce83a9b7f77f19cfc4149efb0199c9997b73
MD5 9ea5e1d93152bbd9967a533927cea23f
BLAKE2b-256 e7c9a74f38f41b4915b39210261d6d2287006f4fb73a9c3571eb01fe1b86bf74

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02c1cc71c5e5bb078cf5fd46a7e315c8e9ac9ba849df9f71ebccf016eb06c2b1
MD5 76169fad3c9cf09fe1b2292f59c03181
BLAKE2b-256 5242b9b361a86358e3885d4d45e6d314e839c3f53bc596c34dceb3e287796b67

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 04cb2d0a1dcd74f6e772cfb0f07c7e9c0f7c2f87cfe74fa0fe3e518559646378
MD5 f00959831079cdb1f650fa3f722d29bd
BLAKE2b-256 b9235fdf896b1fc7d1e3069e0fcb039e753b17f0a9cc66147b180f1e68b16037

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 4671e1cd62e64ac6c8e61e5ceb62073b3690c836bf96a4cd093f8678cadbfe4e
MD5 fa41a8b186983cdeb632dff1a0f41cf9
BLAKE2b-256 d77fa91141911d5c6008f790873ca5aa1b81e20fb003b141415cc7e6f1390e3a

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 84c8723536b631b5faf901904edca54a556b5b01a69f981218ee8eeeae539a03
MD5 b1e1febe11f38dc2d52238fd9f7879c3
BLAKE2b-256 c24bc6a0faa062a63d6b6f29b2034ca1f021335d81b58192b951c91bc768f5a3

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30e6cc0e3ae20e8576183109d80e2b1e0291d417f3d35fcaafbddb9dc7513789
MD5 27e590634f82c60d047a7a193eda5a36
BLAKE2b-256 de72ebc0b850ef35b2141aa57413d974c4af70f5ad8a6b822f7e1e77013bdb28

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2e9d5ef0b17a7bfdfdd15a9d5335e84a7f205333fa2e0110aae26d834d2b5ac3
MD5 a320cdd2b259f777e30c0a8d2e98b18a
BLAKE2b-256 de8328d66d3e963d286fb15aae7e9892ca21cd9a2fe96ef5bea1fbe97ab655f8

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb5575a2e6d60d1447571e62ec4da33c8ff4b35f92d559f6790c79bf23e4acf2
MD5 3f4f61c927e2a356bf19d0a18b81337e
BLAKE2b-256 ea9900284c0f7a9b7a140743a14fac658085be08b833180cb4420d297bcf92b1

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ba2801b41cc408e5708502fe4d8af1806f18ad22b195cf5d5dd9a0394558c117
MD5 8b79efe1856911efde201d91498aa6db
BLAKE2b-256 e0ec11c7fd49422c5a0811381b8d6a7a8b87cf63776162fc70df6689aee7b3fd

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 52247f51713b843f8573836b1607de7e2192c4a213be587e6d65fa460322390b
MD5 4a5f48c15d1c0436dd4ba2170e14179e
BLAKE2b-256 ab8a6b432383d514a98ad0a1fa83ebddbf5716fee6a134567107f2106bfa434a

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf58cd958097a3a33842f46fac3a578c35ad32168071ba215feec51bfe19c540
MD5 278628de1b60ea73c09d0b33bb9ef904
BLAKE2b-256 c362f9ec706711cfea11b9eb1d101828dd3eb5cef51425a588e6c61bbb69716d

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 cefd626ba59c8b46b1398664662a19de504ff59e0ba4441a91285626274ad322
MD5 82cd307a261ec1e753149dcc4dbb2b33
BLAKE2b-256 d2c804a2d690cfe1f1b57482173c3e2df04d8c9fe22de1d4a0664f73d9c23247

See more details on using hashes here.

File details

Details for the file starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for starlark_pyo3-2026.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 03183c87a9355222de1be413dd7b7ec184a4f12f980e2270398d0f1402595495
MD5 e4eb15b77b8c142b2dd30e8f426afcc2
BLAKE2b-256 71031536925d1532142fa4b8e65cd896f9ce7a1f14c14dddeec9c060b0264554

See more details on using hashes here.

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