Registry / auth-security / pysealer

pysealer

JSON →
library1.0.4pypypi✓ verified 84d ago

PySealer (v1.0.4) cryptographically signs Python functions and classes to provide defense-in-depth security against code injection and tampering. It allows developers to seal callables with HMAC signatures verified at runtime. Active development on GitHub, monthly releases.

pip install pysealer
INSTALL
IMPORT
SIG · PYSEALER
P
pysealer
auth-securitypythonv1.0.4
Install
5.9s avg
Import
—
Disk
62MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.0.4 · 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.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 62.7MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 5.9s · import 0.000s · 63MB
62MB installed
● package 62MB
Code
Verified usage

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

seal
✓ from pysealer import dummy_decorators
✗ from pysealer import seal
generate_keypair
✓ from pysealer import generate_keypair
verify_signature
✓ from pysealer import verify_signature

Seal a function with HMAC key and verify before execution.

from pysealer import seal, verify import os key = os.environ.get('SEAL_KEY', 'default-secret') @seal(key=key) def safe_add(a, b): return a + b # Verify and call result = verify(safe_add, key=key)(2, 3) print(result) # 5
pysealer --version
Debug
Known issues
gotchaThe `seal` decorator only works on plain functions and classes, not lambdas, partials, or built-in functions.
fix
Use a named function or class defined via def or class statement.
affects: >=1.0.0
gotchaIf the key is lost, sealed objects become permanently unusable — there is no recovery or backdoor.
fix
Store the key safely (e.g., environment variable, secrets manager) and never hardcode in source.
affects: >=1.0.0
deprecatedThe function `seal_with_env_var()` is deprecated and will be removed in v2.0. Use `seal(key=os.getenv('KEY'))` instead.
fix
Replace `seal_with_env_var('MY_KEY')` with `seal(key=os.getenv('MY_KEY'))`.
affects: >=1.0.0 <2.0.0
Upgrade
Version history
1.0.4latest on PyPI · released Mar 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources