{ "info": { "author": "Adrien Emery", "author_email": "adrien.emery@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# lndgrpc\nA python grpc client for LND (Lightning Network Daemon) \u26a1\u26a1\u26a1\n\nThis is a wrapper around the default grpc interface that handles setting up credentials (including macaroons). An async client is also available to do fun async stuff like listening for invoices in the background. \n\n## Dependencies\nPython 2.7, 3.4+\nNote: the async client is only available for Python 3.5+\n\n## Installation\n```bash\n$ pip install lndgrpc\n```\n\n## Basic Usage\nThe api mirrors the underlying lnd grpc api (http://api.lightning.community/) but methods will be in pep8 style. ie. `.GetInfo()` becomes `.get_info()`.\n\n```python\nfrom lndgrpc import LNDClient\n\n# pass in the ip-address with RPC port and network ('mainnet', 'testnet', 'simnet')\n# the client defaults to 127.0.0.1:10009 and mainnet if no args provided\nlnd = LNDClient(\"127.0.0.1:10009\", network='simnet')\n\nlnd.get_info()\n\nprint('Listening for invoices...')\nfor invoice in lnd.subscribe_invoices():\n print(invoice)\n```\n\n### Async\n\n```python\nimport asyncio\nfrom lndgrpc import AsyncLNDClient\n\nasync_lnd = AsyncLNDClient()\n\nasync def subscribe_invoices():\n print('Listening for invoices...')\n async for invoice in async_lnd.subscribe_invoices():\n print(invoice)\n\nasync def get_info():\n while True:\n info = await async_lnd.get_info()\n print(info)\n await asyncio.sleep(5)\n\nasync def run():\n coros = [subscribe_invoices(), get_info()]\n await asyncio.gather(*coros)\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(run())\n```\n\n### Specifying Macaroon/Cert files\nBy default the client will attempt to lookup the `readonly.macaron` and `tls.cert` files in the mainnet directory. \nHowever if you want to specify a different macaroon or different path you can pass in the filepath explicitly.\n\n```python\nlnd = LNDClient(macaroon_filepath='~/.lnd/invoice.macaroon', cert_filepath='path/to/tls.cert')\n```\n\n#### Admin macaroon\nUse the admin macaroon to perform write actions (ie. creating invoices, creating new addresses)\n\n```python\nlnd = LNDClient(admin=True)\nlnd.add_invoice(2000)\n```\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/adrienemery/lnd-grpc-client/archive/0.2.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adrienemery/lnd-grpc-client", "keywords": "lnd,lightning-network,bitcoin,grpc,rpc,async", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lndgrpc", "package_url": "https://pypi.org/project/lndgrpc/", "platform": "", "project_url": "https://pypi.org/project/lndgrpc/", "project_urls": { "Download": "https://github.com/adrienemery/lnd-grpc-client/archive/0.2.0.tar.gz", "Homepage": "https://github.com/adrienemery/lnd-grpc-client" }, "release_url": "https://pypi.org/project/lndgrpc/0.2.0/", "requires_dist": [ "grpcio", "grpcio-tools", "googleapis-common-protos", "aiogrpc" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "summary": "An rpc client for LND (lightning network deamon)", "version": "0.2.0" }, "last_serial": 5121895, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "16bc9974c7cb3252c64c5ef4f77537cc", "sha256": "39523f9e6ffc83402a5f606592a6ebf433a322e83f184913aa5eeda1fcff8bf1" }, "downloads": -1, "filename": "lndgrpc-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "16bc9974c7cb3252c64c5ef4f77537cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 35396, "upload_time": "2018-03-31T01:36:36", "url": "https://files.pythonhosted.org/packages/27/d0/20efb811ed54af55b8c9aa8b4c1de9b09517bb08f3ca0974f3ea695329bb/lndgrpc-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ee39c37daa79c8b3ca14745e1a51fde", "sha256": "950cba85d0c0d56ed27f3e8ec68a59d9da1ffaf58196136f52d2a223dc6311c2" }, "downloads": -1, "filename": "lndgrpc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6ee39c37daa79c8b3ca14745e1a51fde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34033, "upload_time": "2018-03-31T01:36:38", "url": "https://files.pythonhosted.org/packages/35/2b/eabc6629cc618d3dfe1cb6668ec2b2812e907d838c844063653b92b1ac9c/lndgrpc-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6504b53e426fe3209f32d572e3a061fd", "sha256": "f68e5176fadc7382096b4463cff058ee3241c091d57d248082cbbe7666744f09" }, "downloads": -1, "filename": "lndgrpc-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "6504b53e426fe3209f32d572e3a061fd", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 37127, "upload_time": "2018-03-31T06:25:19", "url": "https://files.pythonhosted.org/packages/39/1c/5075178998ff836e28dacb07952ada8bf906293785825ed07fda1b07f83f/lndgrpc-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e00d3ea49736ac9b2c07c5c440a884d", "sha256": "841fbb8afbc866d994ed2f3bda140cef39633e2729290bcaae2af292aaaf8478" }, "downloads": -1, "filename": "lndgrpc-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0e00d3ea49736ac9b2c07c5c440a884d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 37181, "upload_time": "2018-03-31T06:25:21", "url": "https://files.pythonhosted.org/packages/51/70/f356ec69c1d8f4da5b59bc42c2aba5ce62cda6db8c00491833c44e07461f/lndgrpc-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "99aa3c093ad42f51bc851042370dd080", "sha256": "95d8916b1d15944f012ce92b6a26da8d1c8133aab092ad7bbdc2a6c9c520f6cc" }, "downloads": -1, "filename": "lndgrpc-0.1.2.tar.gz", "has_sig": false, "md5_digest": "99aa3c093ad42f51bc851042370dd080", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 34016, "upload_time": "2018-03-31T06:25:22", "url": "https://files.pythonhosted.org/packages/ac/58/39849b80578e49b18e6f392bde29ef9c9a73de59025901197d03ae358166/lndgrpc-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "0e1a6fb32e02dc732001167ca1cb7127", "sha256": "bb41c055c483af3dbb81464746f38fed8307dcb2db48fc7022ff8b95fde420e6" }, "downloads": -1, "filename": "lndgrpc-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0e1a6fb32e02dc732001167ca1cb7127", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 35241, "upload_time": "2018-05-03T23:12:46", "url": "https://files.pythonhosted.org/packages/cb/a7/4132962490d85362e20d8826e56e48085d5cd5b6a52fe251729c107c0abf/lndgrpc-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7d1c16e3b85444526531721a15afb3e0", "sha256": "105da840da1d67f997906c47028d2f5bf0365991fca35b689108bb937ab31ad8" }, "downloads": -1, "filename": "lndgrpc-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7d1c16e3b85444526531721a15afb3e0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 44904, "upload_time": "2019-04-10T03:23:56", "url": "https://files.pythonhosted.org/packages/47/51/e8b3972bdb3ad5adff44c30d994236ded8ba74de65b80adb80bcb7140940/lndgrpc-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74ca6db5d74a3ad16c7bef6ce7961c5d", "sha256": "4ef3687b9f43d2307e8356eea9641b2f86124a8a301dec1807af7e7e4443a537" }, "downloads": -1, "filename": "lndgrpc-0.2.0.tar.gz", "has_sig": false, "md5_digest": "74ca6db5d74a3ad16c7bef6ce7961c5d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 41138, "upload_time": "2019-04-10T03:23:57", "url": "https://files.pythonhosted.org/packages/18/18/148423007703b44015d97b403680b8ad6433ca63e8b14d99fada76c5bc78/lndgrpc-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d1c16e3b85444526531721a15afb3e0", "sha256": "105da840da1d67f997906c47028d2f5bf0365991fca35b689108bb937ab31ad8" }, "downloads": -1, "filename": "lndgrpc-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7d1c16e3b85444526531721a15afb3e0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 44904, "upload_time": "2019-04-10T03:23:56", "url": "https://files.pythonhosted.org/packages/47/51/e8b3972bdb3ad5adff44c30d994236ded8ba74de65b80adb80bcb7140940/lndgrpc-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74ca6db5d74a3ad16c7bef6ce7961c5d", "sha256": "4ef3687b9f43d2307e8356eea9641b2f86124a8a301dec1807af7e7e4443a537" }, "downloads": -1, "filename": "lndgrpc-0.2.0.tar.gz", "has_sig": false, "md5_digest": "74ca6db5d74a3ad16c7bef6ce7961c5d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 41138, "upload_time": "2019-04-10T03:23:57", "url": "https://files.pythonhosted.org/packages/18/18/148423007703b44015d97b403680b8ad6433ca63e8b14d99fada76c5bc78/lndgrpc-0.2.0.tar.gz" } ] }