A simple way to create and check licenses.
Project description
A python library that help you to handle software licenses
Installation
pip install python_licenses==0.0.1
Usage
from licenses import Licenses
licenses = Licenses(path_folder="licenses")
licenses.create_license(license_key="1234567890", expiration_date="2024-12-31")
license = licenses.check_license("1234567890")
print(license)
How to use
Python Licenses is a library that helps you to handle software licenses. It’s possible to create, update and delete licenses.
Example Create License
from licenses import Licenses
licenses = Licenses(path_folder="licenses")
licenses.create_license(license_key="4312412341", expiration_date="2024-12-31")
Example Verify License
from licenses import Licenses
licenses = Licenses(path_folder="licenses")
license = licenses.check_license(license_key="4312412341")
print(license) # True
Example Delete License
from licenses import Licenses
licenses = Licenses(path_folder="licenses")
licenses.delete_license(license_key="4312412341")
license = licenses.check_license(license_key="4312412341")
print(license) # False
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
python_licenses-0.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file python_licenses-0.0.1.tar.gz
.
File metadata
- Download URL: python_licenses-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39eb12c7a2335544d0e5ae51396901c1e199f5a10138226fecf2ffe87602baa |
|
MD5 | f94c44a10b5a78e9c624a876dc970608 |
|
BLAKE2b-256 | bcee310961c8ec4bac28e054c3067455c22e1b9132853ab9d1e743b1c09436de |
File details
Details for the file python_licenses-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_licenses-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ac2af3fb5a4f201f56875be99cf51bda15ca3319cd657b2e5234b1bb68b5b0 |
|
MD5 | 22d6522dcbb124c0b256b0db7f7c74c6 |
|
BLAKE2b-256 | 14c27501bc2e66decb846fb720ae5cff4541dfbaec1f8556861b5aa8bed09be2 |