Metadata-Version: 2.1
Name: pyalic
Version: 1.0.1
Summary: Licensing system module which allows you to manage access to your products with ease
Home-page: https://github.com/Yarosvet/Pyalic
Author: Yarosvet
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx

# Pyalic: Advanced Licensing python module


Install package using `pip` from this GitHub repository

```shell
pip install pyalic
```



## Python example

```python
from pyalic import LicenseManager
import time

lm = LicenseManager("https://LICENSE_SERVER_URL.ORG", ssl_public_key='./trusted_cert.pem')


def my_program():
    print("Access granted!")
    time.sleep(30)


key = input("Enter your license key: ")
check_response = lm.check_key(key)
if check_response.success:
    my_program()
    lm.end_session()
else:
    print("Access denied:", check_response.error)
```
