Skip to main content

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.

Release files for lightspark 2.10.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 lightspark 2.10.1
File Size Uploaded
lightspark-2.10.1.zip 232.1 kB Details

Release files / lightspark-2.10.1.zip

Download URL lightspark-2.10.1.zip
Size 232.1 kB
Tags Source
SHA-256 checksum
How to use checksums
32c63cee2af08677c7fa2eefbb86ecfcd654a75cd33765f5e13fd312a1a01225
BLAKE2b-256 checksum
How to use checksums
ea65655210b2713555490e1e5860a7fa006dce17ba801810e4e78d6c13df1343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

2.10.1 This release

1 release file

2.10.0

1 release file

2.9.0

1 release file

2.8.0

1 release file

2.7.1

1 release file

2.7.0

1 release file

2.6.0

1 release file

2.5.1

1 release file

2.5.0

1 release file

2.4.2

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.3

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

2 release files

1.0.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