Skip to main content

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:

info@kostelezky.com

Metadata

Release files for python-licensing 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-licensing 0.1.1
File Size Uploaded
python_licensing-0.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-licensing 0.1.1
File Interpreter ABI Platform
python_licensing-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / python_licensing-0.1.1.tar.gz

Download URL python_licensing-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4e90aaac476a608ae071d8e12c9757a977ddb1d8c1c65b792e1416a3c0642b1
BLAKE2b-256 checksum
How to use checksums
25c16a5414f49bd38ee1df87213c920eb085bcf2f28032b290efd976a8b25cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / python_licensing-0.1.1-py3-none-any.whl

Download URL python_licensing-0.1.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fbd059f30dd93afe86c057f3b0d7d0dfa202f83fcfc41e242d7318a64132886
BLAKE2b-256 checksum
How to use checksums
823d362ab5ec84215a00974e26c110114767ec4236886c08482499d51423c83c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page