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.2.tar.gz (3.3 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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dc_license_system-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 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.2.tar.gz
Algorithm Hash digest
SHA256 48a6ae8bab9f48e89473a84347a0bc86310ba085914c363eb80f489af48cac7f
MD5 1b6bd7ac357cd7f76e2862b980c1fb5b
BLAKE2b-256 340b244c17c106f8cfb0223c987e12ce4a976a8704e1300560fc31581da6bba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dc_license_system-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efb97deed7176ee7b23980ae89e3b43cd2ac308813e2907d47f0451562249207
MD5 50c553ddd1980642796c9417fd00385e
BLAKE2b-256 6f821a87a1cb2daec85a127a24ba0a46c7da068939d14135931c29fe76a3cae6

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