Skip to main content

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


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)

Uploaded Source

Built Distribution

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

py_sandboxed-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for py_sandboxed-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a12ad7742004d390ee3fdba37efbf0909dd2fac8de934008da253c694a765ec6
MD5 7962b50e508531096f9527603fa09609
BLAKE2b-256 d219cfda407e2399e722f998b4cfd1267cc4d94da33171b8e74259a0a543ce2f

See more details on using hashes here.

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

Hashes for py_sandboxed-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba03eccf3871c0706c16239a753e9a8d85bbe2fb3785a54fa741c11118acb49f
MD5 3ca07acdf1555543323e35fec2c2b3bf
BLAKE2b-256 ae3c590b842e006e9799976a91cee9e7743ca8d016ce06f9ef54401460224425

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