Skip to main content

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


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)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for license_control-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6d4f1cb2ecc3da8f9b80503fa099d814efa6b94a3c0e54a6e9c196a9f5cabfa8
MD5 cdd949b53ea54e782dc209cf9ac8b6d5
BLAKE2b-256 38080044e89370475ed241ed23305fb52dc79467544035d8910894a7eb78ed53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for license_control-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 137d659dd59d9a803951f7b3a9bc9dcf3c551ce0d23c3aff32667db1e43f7051
MD5 bb4a50699119d40275316d25eeebd27e
BLAKE2b-256 852aee3008c4f6604071b0aed4245e2b7f4842c46172e8df073d24c317ca8106

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