QuantumMeta License Server
A universal, secure licensing system for the entire QuantumMeta ecosystem of PyPI packages in AI, quantum computing, and AGI.
🚀 Features
- 🔐 Secure License Management: AES-256 encrypted
.qkeyfiles with hardware locking - 🖥️ Machine Locking: License tied to unique hardware fingerprint (UUID + MAC + disk serial)
- ⏳ Grace Period: 1-day free trial on first import, then license required
- 🧪 CLI Tool: Easy license generation, activation, and validation
- 🛡️ Feature Gating: Control access to specific package features
- 🔧 Developer Friendly: Development bypass with
QUANTUMMETA_DEV=1
📦 Installation
pip install quantummeta-license
🚀 Quick Start
For End Users
- Activate a license (if you have one):
quantum-license activate /path/to/your/license.qkey
- Check license status:
quantum-license validate quantum-metalearn
- Use in your Python code:
from quantummeta_license import validate_or_grace
# This will either validate the license or start the 1-day grace period
validate_or_grace("quantum-metalearn")
For Package Developers
Integrate licensing into your QuantumMeta package:
from quantummeta_license import validate_or_grace, LicenseError
def my_premium_function():
try:
# Validate license with specific features
validate_or_grace("my-quantum-package", required_features=["pro"])
# Your premium functionality here
return "Premium feature activated!"
except LicenseError:
return "This feature requires a Pro license."
🧪 CLI Commands
The quantum-license CLI provides these commands:
generate: Create a new license (admin use)activate: Install a license filevalidate: Check license status and featuresinfo: Display system information
Examples
# Generate a license (admin only)
quantum-license generate --package quantum-metalearn --user user@example.com --features core,pro
# Activate a license
quantum-license activate license.qkey
# Validate specific package
quantum-license validate quantum-metalearn
# Show system info
quantum-license info
🔧 Development Mode
For development and testing, set the environment variable:
export QUANTUMMETA_DEV=1 # Unix/Linux/macOS
set QUANTUMMETA_DEV=1 # Windows
This bypasses license checks entirely.
📁 License Storage
Licenses are stored in:
- Windows:
%USERPROFILE%\.quantummeta\licenses\ - macOS:
~/.quantummeta/licenses/ - Linux:
~/.quantummeta/licenses/
Usage tracking is stored in:
~/.quantummeta/usage_log.json
🧠 Package Integration
To integrate QuantumMeta License into your package:
from quantummeta_license import validate_or_grace, LicenseError
def __init_license():
"""Call this in your package's __init__.py"""
try:
validate_or_grace("your-package-name")
except LicenseError as e:
print(f"License Error: {e}")
# Handle license error appropriately
# Call on package import
__init_license()
📚 Documentation
Full documentation is available at: https://quantummeta.github.io/quantummeta-license
🛡️ Security
- All license files are encrypted with AES-256
- Hardware fingerprinting prevents license sharing
- Secure key derivation using PBKDF2
- Optional Ed25519 digital signatures
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
Made with ❤️ by the QuantumMeta Team
Metadata
Release files for quantummeta-license 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantummeta_license-1.1.1.tar.gz | 40.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantummeta_license-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.9 kB
Release files / quantummeta_license-1.1.1.tar.gz
| Download URL | quantummeta_license-1.1.1.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27172de12c58cd1c94b82b25ff71e2d8240df44c73eef2ca1ce32db7d01cf5fe
|
|
BLAKE2b-256 checksum How to use checksums |
d75a89037eb1072d08774c3f58945f36840fa467d04bad7aaeda1c6813621e3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / quantummeta_license-1.1.1-py3-none-any.whl
| Download URL | quantummeta_license-1.1.1-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3863a4d1b19d0ddc552d9255ce44ea3c9d2c4ce7915ffc6fea562cd5a779f2e
|
|
BLAKE2b-256 checksum How to use checksums |
901d7ec627f943630a6646772a55a384bd0fd2c162b4b6f5cdc6a4cc31722bc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|