A comprehensive license management module
Project description
License Manager
功能特点
- 生成加密许可证
- 验证许可证有效性
- 支持多设备许可
- 基于时间的许可证到期
- 可自定义许可证特性
安装
pip install license-manager-py
基本使用
from license_manager.license_control import LicenseManager
# 初始化许可证管理器
key = "mxey3_GNnYDQXsIxK4NABQ0eqmr47coXJLKLkqcdpjU="
lm = LicenseManager(key)
# 生成许可证
license = lm.generate_license()
# 解密许可证
is_valid = lm.decrypt_license("./LICENCE")
# 使用注解的形式,
@lm.validate_license(key, './LICENCE')
def some_function():
print("License is valid. Function executed.")
some_function()
许可证管理
- 生成许可证
- 解密许可证
- 验证许可证
贡献
欢迎提交PR和Issues!
许可证
MIT许可证
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
license_control-0.0.2.tar.gz
(13.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file license_control-0.0.2.tar.gz.
File metadata
- Download URL: license_control-0.0.2.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d4f1cb2ecc3da8f9b80503fa099d814efa6b94a3c0e54a6e9c196a9f5cabfa8
|
|
| MD5 |
cdd949b53ea54e782dc209cf9ac8b6d5
|
|
| BLAKE2b-256 |
38080044e89370475ed241ed23305fb52dc79467544035d8910894a7eb78ed53
|
File details
Details for the file license_control-0.0.2-py3-none-any.whl.
File metadata
- Download URL: license_control-0.0.2-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137d659dd59d9a803951f7b3a9bc9dcf3c551ce0d23c3aff32667db1e43f7051
|
|
| MD5 |
bb4a50699119d40275316d25eeebd27e
|
|
| BLAKE2b-256 |
852aee3008c4f6604071b0aed4245e2b7f4842c46172e8df073d24c317ca8106
|