Metadata-Version: 2.1
Name: license_control
Version: 0.0.3
Summary: A comprehensive license management module
Home-page: https://github.com/Shunlly/license_control
Author: chenshuhang
Author-email: a330289953@gmail.com
Keywords: license control,licensing
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=3.4.7

# License Manager

## 功能特点

- 生成加密许可证
- 验证许可证有效性
- 支持多设备许可
- 基于时间的许可证到期
- 可自定义许可证特性

## 安装

```bash
pip install license-control
```

## 基本使用

```python
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许可证
