Python SDK for the Lightspark API
Project description
Lightspark Python SDK
The Lightspark Python SDK provides a convenient way to interact with the Lightspark services from applications written in the Python language.
Installation
To install the SDK, simply run:
pip install lightspark
Documentation
The documentation for this SDK (installation, usage, etc.) is available at https://docs.lightspark.com/lightspark-sdk/getting-started?language=Python
Sample code
For your convenience, we included an example that shows you how to use the SDK.
Open the file example.py
and make sure to update the variables at the top of the page with your information, then run it using pipenv:
pipenv install
pipenv run python -m examples.example
There are also a few examples of webservers for demonstrating webhooks and LNURLs. These can similarly be run through Flask:
pipenv install -d
pipenv run flask --app examples.flask_lnurl_server run
Note that Flask requires Python >= 3.8, so these examples will not work if running Python 3.7.
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
File details
Details for the file lightspark-2.8.0.zip
.
File metadata
- Download URL: lightspark-2.8.0.zip
- Upload date:
- Size: 226.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba775e8f461e7d6876f489c7b3e3f6534ebba82d80755c00e6d5a45f4ae8bb20 |
|
MD5 | a4c3a8cf029bd10b8fdccb17ef1fa855 |
|
BLAKE2b-256 | 8f93486443c56d5b0f69bf983cb5c9dbdc2f87319d6bf08da07269c2f58c3905 |