Skip to main content

Evaluation

The goal is to provide a safer way to eval/exec code and provide some utilities.

DISCLAIMER: This is still not sandboxed nor fool-proof and will never be. The user should not trust unverified inputs and is the only one responsible for the extra variables he provides. Even though the modules allow to change the globals variables used for eval/exac, I am not responsible for any addons to the globals either.

Usage

Basique eval_code/exec_code


Work in the same way as eval/exec, but with limited set of action
possibles. Especially:

-  IO is removed (no open/file/print/… available)
-  No complex declaration (classes, functions, …)
-  we are limited to a single statement

Metadata

Release files for code-evaluation 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for code-evaluation 0.1
File Interpreter ABI Platform Actions
code_evaluation-0.1-py3-none-any.whl Python 3 none any Details for code_evaluation-0.1-py3-none-any.whl

Release files / code_evaluation-0.1-py3-none-any.whl

Download URL code_evaluation-0.1-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
938932cb0df814c5264bad55b25a9ca46dd66ea69a4549499c98e8d8e3d43299
BLAKE2b-256 checksum
How to use checksums
9f755b8f4000c0389a7ddf3512452b1c58c0725d3dc368d8de530f5ce8e9a51d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.10.0 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for code-evaluation 0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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