License System
Project Description
License System is a lightweight Python package for managing desktop software licenses on Windows.
It generates license keys tied to a unique hardware ID (HWID), stores the license securely in the Windows Registry, and validates it online using Google Sheets.
This package is designed for developers who want a simple but effective way to:
- Control application access
- Bind licenses to specific machines
- Set expiry dates
- Approve or reject users remotely
- Receive Telegram notifications for new registrations
Fixed Issues
- Fixed the issue where the license key was not being generated correctly.
Usage
from license_system.license_manager import LicenseKeys
from license_system.telegram_notifier import TelegramNotifier
# Optional: enable Telegram notification
telegram = TelegramNotifier(
token="YOUR_BOT_TOKEN",
chat_id="YOUR_CHAT_ID"
)
# Create license manager
license_manager = LicenseKeys(
telegram=telegram,
sheetID="YOUR_GOOGLE_SHEET_ID"
)
# Step 1: Generate license if not exists
license_manager.check_or_generate_license()
# Step 2: Validate license
if license_manager.validate_local_license():
print("License is valid")
else:
print("License is invalid or expired")
# Step 3: Get expiry date
expiry = license_manager.get_online_expiry_date()
print("License expires on:", expiry)
Installation
pip install dc-license-system
Metadata
Release files for dc-license-system 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dc_license_system-0.0.5.tar.gz | 3.6 kB | Without provenance | Details for dc_license_system-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dc_license_system-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for dc_license_system-0.0.5-py3-none-any.whl |
Total release size: 8.1 kB
Release files / dc_license_system-0.0.5.tar.gz
| Download URL | dc_license_system-0.0.5.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfc5991f819bdf18b4716b0eba652a43d54fa3ac8c3bda680033a5dac4355702
|
|
BLAKE2b-256 checksum How to use checksums |
dce19e6956a33a1c249b6e0b1ad2de2b840eca2db96e3836f3727f4a0e6da329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / dc_license_system-0.0.5-py3-none-any.whl
| Download URL | dc_license_system-0.0.5-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
359060c4f2b0c0c421b8c9b4e2f221ccdaf3b7edc0fd5837de6abc7f87340548
|
|
BLAKE2b-256 checksum How to use checksums |
c35af86df48f8d4f7219de2b2293f7204233ec443ec0c5989176f1209a9e18d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for dc-license-system 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.