License your python script and provide licenses via a licensing server.
Project description
python-licensing
python-licensing
is a Python package that provides functionality for licensing a Python script and providing licenses via a licensing server. It allows you to license individual functions via decorators or your entire script.
Installation
You can install python-licensing
using pip:
pip install python-licensing
Usage
Here's an example of how to use python-licensing
to license a function:
from python_licensing import licensed
@licensed('https://my-licensing-server.example.com')
def my_licensed_function():
pass
In this example, my_licensed_function is a licensed function. The @licensed decorator takes the URL of your licensing server as an argument.
Licensing Server
The licensing server implementation is located in ./server. You can run it using Docker or Docker Compose. For more information, see the server README.
Obfuscating Your Script
You can combine python-licensing
with pyarmor to obfuscate your script and hide the licensing logic. For more information, see the pyarmor documentation.
Contact
If you have any questions or issues, please contact:
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
Built Distribution
Hashes for python_licensing-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fbd059f30dd93afe86c057f3b0d7d0dfa202f83fcfc41e242d7318a64132886 |
|
MD5 | 2bd7b753989bd4541aefe5ea2fb9e64f |
|
BLAKE2b-256 | 823d362ab5ec84215a00974e26c110114767ec4236886c08482499d51423c83c |