Configurable Execution Sandboxing for Python.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_sandboxed-0.1.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_sandboxed-0.1.1.tar.gz.
File metadata
- Download URL: py_sandboxed-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a12ad7742004d390ee3fdba37efbf0909dd2fac8de934008da253c694a765ec6
|
|
| MD5 |
7962b50e508531096f9527603fa09609
|
|
| BLAKE2b-256 |
d219cfda407e2399e722f998b4cfd1267cc4d94da33171b8e74259a0a543ce2f
|
File details
Details for the file py_sandboxed-0.1.1-py3-none-any.whl.
File metadata
- Download URL: py_sandboxed-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba03eccf3871c0706c16239a753e9a8d85bbe2fb3785a54fa741c11118acb49f
|
|
| MD5 |
3ca07acdf1555543323e35fec2c2b3bf
|
|
| BLAKE2b-256 |
ae3c590b842e006e9799976a91cee9e7743ca8d016ce06f9ef54401460224425
|