Giter Club home page Giter Club logo

pylnbits's Introduction

pylnbits

Pull Requests are Welcome!

An asyncio/aiohttp python library of methods for accessing lnbits API or your own install. For use when building front end or app layer projects with lnbits.

Read the Docs

https://lightningames.github.io/pylnbits/

See also Powered-by-LNBits for more resources. This project, pylnbits, is also listed on the Powered by LNbits wiki.

Updating the docs

See mkdocs for guidance on how to update docs and also https://github.com/lightningames/pylnbits/blob/main/mkdocs.yml

deploy to github pages:

https://www.mkdocs.org/user-guide/deploying-your-docs/#github-pages

mkdocs gh-deploy

Getting Started

With Poetry

poetry version at least 1.4.2

git clone https://github.com/lightningames/pylnbits
poetry install

With Virtual Env

version at least python3.8

git clone https://github.com/lightningames/pylnbits
cd pylnbits
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .

Copy config_sample.yml to config.yml and update the variables with your lnbits install:

lnbits_url: "https://lnbits.com"
in_key: "fill in with your Invoice Key here"
admin_key: "fill with your admin key here "

Run tests in tests directory to see sample usage.

NOTE: This is experimental software. The only modules & Extensions covered presently are:

  • User Wallet
  • User Manager
  • LNURLp
  • LNURLw
  • LndHub
  • Invoices

If you would like to contribute, please feel free to make a pull request.

Library Installation

current release is 0.0.8, tested to LNBits 0.10.9

pip install pylnbits

https://pypi.org/project/pylnbits/

Other

Check linting and formatting pre-commit run -a

Build for distribution python3 setup.py build

Also see Tutorials for build to release on PyPi for uploading distribution archives https://packaging.python.org/en/latest/tutorials/packaging-projects/

Run Examples

See the tests directory for working examples

pylnbits's People

Contributors

bitkarrot avatar bitwalt avatar bliotti avatar dependabot[bot] avatar eriknewland avatar felixfrei avatar fenixlibertas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pylnbits's Issues

0.0.7 Release build

  • Tentative date: August 1, 2023, please get all of your PRs in before then!
  • Roll in all new changes and updates and release to pypi

maintenance

  • test to make sure that the current release is compatible with latest LNBits release.
  • update pypy release

0.0.9 Release Build

  • Tentative date: April 1, 2023, please get all of your PRs in before then!
  • Welcome to new contributors
  • remember to merge in this pr before release #97

Div compatibility fix

1.) get_url returns the dict after extracting the json attribute therefore this fails in the UserWallet class.

2.) /api/v1/payments/decode expects the body as json

0.0.8 Release Build

  • Tentative date: December 1, 2023, please get all of your PRs in before then!
  • Welcome to new contributors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.