The Lightspark Python SDK provides a convenient way to interact with the Lightspark services from applications written in the Python language.
To install the SDK, simply run:
pip install lightsparkThe documentation for this SDK (installation, usage, etc.) is available at https://docs.lightspark.com/lightspark-sdk/getting-started?language=Python
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:
uv sync
uv run python -m examples.exampleThere are also a few examples of webservers for demonstrating webhooks and LNURLs. These can similarly be run through Flask:
uv sync --dev
uv run flask --app examples.flask_lnurl_server run