LicenseSpring Python Library
Project description
LicenseSpring Python Library
The LicenseSpring Python Library provides convenient access to the LicenseSpring API from applications written in the Python language.
Initialization
Poetry
This project uses Poetry for packaging and dependency management. For installation and usage see https://python-poetry.org/docs/.
Configure Poetry to create virtualenv inside the project’s root directory:
poetry config virtualenvs.in-project true
Install dependencies:
poetry install
Testing
This project uses pytest framework for testing.
Run tests:
poetry run pytest
Formatting
This project uses black for code formatting.
Format code:
poetry run black .
Building and Publishing
This project is published at Python Package Index.
The PyPI token must be configured in Poetry for publishing:
poetry config pypi-token.pypi {token}
Define the new version before building and publishing:
poetry version {version}
Build the source and wheels archives:
poetry build
Publishes the package (previously built with the build command):
poetry publish
A single command for both building and publishing is also possible:
poetry publish --build
Installation
Install licensespring
library:
pip install licensespring
Usage
Check license
from licensespring.api import APIClient
api_client = APIClient(api_key="_your_api_key_", shared_key="_your_shared_key_")
license_data = api_client.check_license("_your_hardware_id_", "_your_license_key_", "_your_product_code_")
print(license_data)
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 licensespring-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2cb6e516a529438006a1558a8a37a96bd9844e968c65850df4b81124178937 |
|
MD5 | 72b546e8fd48fa4000d36884c28e9225 |
|
BLAKE2b-256 | c94589fd63c6784fe7e30b3f5bae62772cc7cf025f2e79233c65d23f1479a3bc |