Skip to main content

TrueLicense compatible license manager for Python

This package supports managing licenses one the format used by the Java package TrueLicense. Only the version 1 format is supported.

Please see the TrueLicense home page for an exhaustive reference of the license format, or Quick license format description below.

Quick license format description

A license has a validity window in time, an issuer, a holder and various meta data.

It is signed by the holder, and the signature can be verified using the issuer certificate.

The license file is also encrypted with a key derived from a password.

Quick library reference

The main class exported by truepy is truepy.License.

  • To generate a new license, use the class method truepy.License.issue.

  • To load a license from a file or stream, use the class method truepy.License.load.

  • To save a license to a file or stream, use the method truepy.License.store.

  • To verify the siganture of a license, use the method truepy.License.verify.

  • To read license information, use the truepy.License.license_data attribute; this is of the type truepy.LicenseData.

Loading and storing licenses requires only the license password; these operations do not perform signing and signature verification.

Issuing a new license requires the private key of the issuer certificate.

Verifying a license signature requires the issuer certificate.

Quick application reference

Please run the application with python -m truepy -h for more information.

Release Notes

1.0.1 - License Data Bugfix

  • Changed truepy.LicenseData.information to info to be compatible with TrueLicense.

1.0 - Initial Release

  • Support for basic license operations for TrueLicense version 1 licenses

Release files for truepy 1.0.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 truepy 1.0.1
File Size Uploaded
truepy-1.0.1.tar.gz 11.5 kB Details

Release files / truepy-1.0.1.tar.gz

Download URL truepy-1.0.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ac6c3abadc3e8e11c01336a781e8f84ec50ce54244e34ba0e6f8e7ea5b7d5956
BLAKE2b-256 checksum
How to use checksums
d15058806ae9175e2ebb563774413f654444acc2c92b352a8b362430953c43e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0.4

3 release files

2.0.3

1 release file

2.0.2

3 release files

2.0.1

2 release files

2.0

1 release file

This release

1.0.1 This release

1 release file

1.0

1 release file

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