Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightspark-2.5.1.zip (212.8 kB view details)

Uploaded Source

File details

Details for the file lightspark-2.5.1.zip.

File metadata

  • Download URL: lightspark-2.5.1.zip
  • Upload date:
  • Size: 212.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for lightspark-2.5.1.zip
Algorithm Hash digest
SHA256 8692e77c15c5c29fa9d8bd399abec7846f5e6b3e4472c686a7577fa58a965967
MD5 a70a01ff438d0167afcb5bbb361820b8
BLAKE2b-256 caa61b32eadfde8d42d6a970ad6ba28960ab2bd93e2e179cb08e9cd6d9d0cfe4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page