Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

license_control-0.0.3-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

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

Hashes for license_control-0.0.3.tar.gz
Algorithm Hash digest
SHA256 174bf770f5f90aeb9a7f3e9c5a3a80c8ccf0ecedffaeefa42c598dadb4e7b194
MD5 f1edb30686fb1b135ba2b5c196dec3ea
BLAKE2b-256 5b4c66283496ff7b26912586f3c434f799ea170c18e8182132fe16bbd79467bb

See more details on using hashes here.

File details

Details for the file license_control-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for license_control-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9027dbfdd526cda469ac46e5341b2387722d949690d85119b4076b3a7a5e9f01
MD5 4305e230eff3f0ce3f59d946c5dac71b
BLAKE2b-256 ab3cd9f4f312d84548b6a435b517e23f301f5f484b0b35c1ed99af2c7411f33e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page