Skip to main content

pyprotectx-protected

Runtime support package for pyprotectx — encrypted module loader (.enc import hook) + Ed25519 license verification.

This is the client-side dependency: lightweight, only requires pynacl.

⚠️ Vendor patch required

The wheel on PyPI ships with placeholder keys — out of the box it cannot decrypt .enc files or verify real licenses. Vendors must inject their own keys with pyprotect runtime-patch (see the pyprotectx documentation) and distribute the patched build to their customers via a private channel.

pyprotect runtime-patch --pub-key keys/license_ed25519.pub --nacl-key <hex> --out patched/
import pyprotect_protected              # registers the .enc import hook
from pyprotect_protected import verify_license

if not verify_license():
    sys.exit(1)

Environment variables:

Variable Description
LICENSE_FILE Path to the .lic license file (required in production)
LICENSE_MACHINE_ID Machine identifier for license binding
PYPROTECT_ALLOW_DEV Set to 1 to allow running without a license (development only)

Verification is fail-closed by default: a missing, invalid, expired, or wrong-machine license blocks execution.

See the pyprotectx documentation for the full workflow (build tool, key management, license generation).

License

MIT

Metadata

Release files for pyprotectx-protected 0.2.0

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

Source distribution (sdist)

Source distribution for pyprotectx-protected 0.2.0
File Size Uploaded Provenance Actions
pyprotectx_protected-0.2.0.tar.gz 18.9 kB Without provenance Details for pyprotectx_protected-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyprotectx-protected 0.2.0
File Interpreter ABI Platform Actions
pyprotectx_protected-0.2.0-py3-none-any.whl Python 3 none any Details for pyprotectx_protected-0.2.0-py3-none-any.whl

Total release size: 25.5 kB

Release files / pyprotectx_protected-0.2.0.tar.gz

Download URL pyprotectx_protected-0.2.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a6cd3b0a5aaf9c787ed73cbf3400b62801557c6da6d7408220d053de56280f29
BLAKE2b-256 checksum
How to use checksums
852a806cca22879aa0a53581076448f04bc8a5ab9996c1a0fdcaeacefce13837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / pyprotectx_protected-0.2.0-py3-none-any.whl

Download URL pyprotectx_protected-0.2.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e271cbf2a2b811f77d3ac4a268951567c53e02406859f1c2a29fe5ed29701636
BLAKE2b-256 checksum
How to use checksums
3d33398d37bdbaf16ca25e5b7d8b4d10fc9fd1871f1bab30d99f350c04108ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for pyprotectx-protected 0.2.0

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.2.0 This release

2 release files 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