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.1.1

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.1.1
File Size Uploaded Provenance Actions
pyprotectx_protected-0.1.1.tar.gz 18.3 kB Without provenance Details for pyprotectx_protected-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / pyprotectx_protected-0.1.1.tar.gz

Download URL pyprotectx_protected-0.1.1.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
87bfe95f3465d8c90e4a336ab8fb177f2a649d44c79f58a46b426eca2d624590
BLAKE2b-256 checksum
How to use checksums
ef20816090b30fc4b3430b9ef9ca6c0114bc08d68a91085d6853b163849777ea
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.1.1-py3-none-any.whl

Download URL pyprotectx_protected-0.1.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcd80bd98e40818d913ecad85d73e5897304baf303c88aedee1025f6ddaeb9f4
BLAKE2b-256 checksum
How to use checksums
e67608b08adb462bdeb724c6d2d488b49628c0419159623f3a0a3b9916a004a2
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.1.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.1 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