Skip to main content

License System for Dai Chao Online

Project description

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

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

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

dc_license_system-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

dc_license_system-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file dc_license_system-0.0.1.tar.gz.

File metadata

  • Download URL: dc_license_system-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for dc_license_system-0.0.1.tar.gz
Algorithm Hash digest
SHA256 413a6a46185d86d8fb98d62d88be52aa8e33fd14126183c066eb821c05f28150
MD5 b5b9ab2904e159779422bf8a14807819
BLAKE2b-256 391bbdd216ce8910fd32bf4a6a67564cda33bff97f0c49d9038e04f987ec275e

See more details on using hashes here.

File details

Details for the file dc_license_system-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dc_license_system-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4daf899f5f126fc9cf499313d707241d73b2e15418d357a5463cf014e293f23
MD5 fdbd08134e8489500c19c21ddc15fd7c
BLAKE2b-256 3bbe77508b1ccfa39647d9431dc3a1ae072220cdac0483144573426760f4a4d6

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