A comprehensive license management module
Project description
License Manager
功能特点
- 生成加密许可证
- 验证许可证有效性
- 支持多设备许可
- 基于时间的许可证到期
- 可自定义许可证特性
安装
pip install license-control
基本使用
from license_control.license_control import LicenseControl
# 初始化许可证管理器
key = "mxey3_GNnYDQXsIxK4NABQ0eqmr47coXJLKLkqcdpjU="
lm = LicenseControl(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.3.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.3.tar.gz.
File metadata
- Download URL: license_control-0.0.3.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 |
174bf770f5f90aeb9a7f3e9c5a3a80c8ccf0ecedffaeefa42c598dadb4e7b194
|
|
| MD5 |
f1edb30686fb1b135ba2b5c196dec3ea
|
|
| BLAKE2b-256 |
5b4c66283496ff7b26912586f3c434f799ea170c18e8182132fe16bbd79467bb
|
File details
Details for the file license_control-0.0.3-py3-none-any.whl.
File metadata
- Download URL: license_control-0.0.3-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 |
9027dbfdd526cda469ac46e5341b2387722d949690d85119b4076b3a7a5e9f01
|
|
| MD5 |
4305e230eff3f0ce3f59d946c5dac71b
|
|
| BLAKE2b-256 |
ab3cd9f4f312d84548b6a435b517e23f301f5f484b0b35c1ed99af2c7411f33e
|