This release is a pre-release and may not be stable for production use.
PyExtraSafe
PyExtraSafe is a library that makes it easy to improve your program’s security by selectively allowing the syscalls it can perform via the Linux kernel’s seccomp facilities.
The python library is a shallow wrapper around extrasafe.
Quick Example
from threading import Thread
import pyextrasafe
try:
thread = Thread(target=print, args=["Hello, world!"])
thread.start()
thread.join()
except Exception:
print("Could not run Thread (should have been able!)")
pyextrasafe.SafetyContext().enable(
pyextrasafe.BasicCapabilities(),
pyextrasafe.SystemIO().allow_stdout().allow_stderr(),
).apply_to_all_threads()
try:
thread = Thread(target=print, args=["Hello, world!"])
thread.start()
thread.join()
except Exception:
print("Could not run Thread (that's good!)")
else:
raise Exception("Should not have been able to run thread")
Metadata
Release files for pyextrasafe 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyextrasafe-0.1.0a1.tar.gz | 26.6 kB | Without provenance | Details for pyextrasafe-0.1.0a1.tar.gz |
Built distributions (wheels)
Total release size: 1.6 MB
Release files / pyextrasafe-0.1.0a1.tar.gz
| Download URL | pyextrasafe-0.1.0a1.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0f6a4705fb09c51736467b83f4531412b7e283ea9bbb33bd5fc652957bae58e
|
|
BLAKE2b-256 checksum How to use checksums |
70e35366180aea4c383fbe6879bf4f2bb96c625989aa7eb3a2c79db2fc6d9049
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyextrasafe-0.1.0a1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyextrasafe-0.1.0a1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 307.5 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
9ebfa727dbc32c4b84be0ea05331c3316cb089a18a4fd49031b47bc2d797aaf5
|
|
BLAKE2b-256 checksum How to use checksums |
7cfc05ff8ef617828d9456346487e0b013807c8817afd4e42695a8fcac65b3e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyextrasafe-0.1.0a1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyextrasafe-0.1.0a1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 307.8 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
22ee514f7f2c1ba4215eb9c98feadf3fe5489e98e286119b868f0d3401ad99d1
|
|
BLAKE2b-256 checksum How to use checksums |
fc2a3a095e9dd38771cd998bca9315619d47378c1a2253ef29065f3dd4693bdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyextrasafe-0.1.0a1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyextrasafe-0.1.0a1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 309.2 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
6f3bdc6a0d6ba05dbd4a9aae1728efe7bc081799b7eed00c62dd0b0c771b8031
|
|
BLAKE2b-256 checksum How to use checksums |
0ebc4a45dd8cfd990d2d9241472c5ad036fdb1c5b4746fd58596310a83360ebf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyextrasafe-0.1.0a1-cp37-abi3-musllinux_1_1_x86_64.whl
| Download URL | pyextrasafe-0.1.0a1-cp37-abi3-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 338.7 kB |
| Tags | CPython 3.7 Linux musl 1.1+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4b957e850786c373b8eef3e474658ec511737acb6f31c0bd6be543d09e093edb
|
|
BLAKE2b-256 checksum How to use checksums |
70b81a5a9d34256c6de6e2b3241166f3488737f3d0b928bfac6e5c825563a973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyextrasafe-0.1.0a1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyextrasafe-0.1.0a1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 307.5 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
86dfa18269bc1eae6d74efb3acf9344c44456dfc3f61d653af22087778d3c38f
|
|
BLAKE2b-256 checksum How to use checksums |
22edccec05a2df782d69bb187b7ca5f4f1cc5fdc1e41e6ad5b6be58e11bda52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for pyextrasafe 0.1.0a1
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.