Registry / auth-security / codejail-includes

codejail-includes

JSON →
library2.0.0pypypiunverified

A library providing safe includes for Python sandboxed execution via CodeJail. Version 2.0.0 supports Python >=3.11 and is maintained under the Open edX organization. It extracts and packages the includes previously embedded in edx-platform, allowing reuse in sandboxed code.

auth-security
Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from codejail_includes.eia import safe_import_or_exec

Demonstrates importing and executing a safe function using codejail-includes.

from codejail_includes import safe_import_or_exec # Example: safely import a module result = safe_import_or_exec('math', 'sqrt(16)') print(result) # Output: 4.0
Debug
Known footguns
breakingImport path changed: use 'codejail_includes' not 'codejail.includes'.
gotchaRequires Python >=3.11; does not support older Python versions.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
19 hits · last 30 days
gptbot
4
ahrefsbot
3
claudebot
3
bytedance
2
script
1
Resources