Skip to main content

py-sandboxed

A lightweight sandboxing utility for evaluating and executing Python expressions under a simple ruleset.

Usage

from py-sandboxed import sandbox_eval

# use built-in presets
result = sandbox_eval("math.sqrt(16)", config="math_only")
print(result)  # 4

Metadata

Release files for py-sandboxed 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 py-sandboxed 0.1.1
File Size Uploaded
py_sandboxed-0.1.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-sandboxed 0.1.1
File Interpreter ABI Platform
py_sandboxed-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / py_sandboxed-0.1.1.tar.gz

Download URL py_sandboxed-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a12ad7742004d390ee3fdba37efbf0909dd2fac8de934008da253c694a765ec6
BLAKE2b-256 checksum
How to use checksums
d219cfda407e2399e722f998b4cfd1267cc4d94da33171b8e74259a0a543ce2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.8

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

Download URL py_sandboxed-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba03eccf3871c0706c16239a753e9a8d85bbe2fb3785a54fa741c11118acb49f
BLAKE2b-256 checksum
How to use checksums
ae3c590b842e006e9799976a91cee9e7743ca8d016ce06f9ef54401460224425
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

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