{ "info": { "author": "Daniel Dourvaris", "author_email": "dourvaris@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries" ], "description": "===============================\nNano (RaiBlocks) Python Library\n===============================\n\n.. image:: https://img.shields.io/pypi/l/nano-python.svg\n :target: https://github.com/dourvaris/nano-python/blob/master/LICENSE\n\n.. image:: https://travis-ci.org/dourvaris/nano-python.svg?branch=1.0.0rc1\n :target: https://travis-ci.org/dourvaris/nano-python\n\n.. image:: https://readthedocs.org/projects/nano-python/badge/?version=latest\n :target: http://nano-python.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://github.com/dourvaris/nano-python/raw/master/coverage.svg?sanitize=true\n :target: https://travis-ci.org/dourvaris/nano-python\n\n.. image:: https://img.shields.io/pypi/pyversions/nano-python.svg?style=flat-square\n :target: https://pypi.python.org/pypi/nano-python\n\n.. image:: https://img.shields.io/pypi/v/nano-python.svg\n :target: https://pypi.python.org/pypi/nano-python\n\nThis library contains a python wrapper for the Nano (RaiBlocks) RPC server\nwhich tries to make it a little easier to work with by converting RPC responses\nto native python ones and exposing a pythonic api for making RPC calls.\n\nAlso included are utilities such as converting rai/xrb and interesting accounts\n\n\nInstallation\n============\n\n.. code-block:: text\n\n pip install nano-python\n\nDocumentation\n=============\n\nhttps://nano-python.readthedocs.io/\n\nRPC client\n==========\n\nYou can browse the available\n`RPC methods list `_\nor check the\n`RPC Client API documentation `_\nfor examples of usage.\n\n.. warning:: The RPC client **DOES NOT** handle timeouts or retries\n automatically since this could lead to unwanted retries of requests\n causing **double spends**. Keep this in mind when implementing retries.\n\n When using version 10.0 of the RPC node, use the send id when making spends\n as described at https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol#highly-recommended-id\n\n.. code-block:: python\n\n >>> import nano\n >>> rpc = nano.rpc.Client('http://localhost:7076')\n >>> rpc.version()\n {\n 'rpc_version': 1,\n 'store_version': 10,\n 'node_vendor': 'RaiBlocks 9.0'\n }\n >>> rpc.peers()\n {\n '[::ffff:75.171.168.5]:7075': 4,\n '[::ffff:108.44.38.183]:1032': 4\n }\n\n\n\nConversion\n==========\n\n.. code-block:: python\n\n >>> from nano import convert\n >>> convert(12, from_unit='XRB', to_unit='raw')\n Decimal('1.2E+31')\n\n >>> convert(0.4, from_unit='krai', to_unit='XRB')\n Traceback (most recent call last):\n File \"\", line 1, in \n ValueError: float values can lead to unexpected\n precision loss, please use a Decimal or string\n eg. convert('0.4', 'krai', 'XRB')\n\n >>> convert('0.4', from_unit='krai', to_unit='XRB')\n Decimal('0.0004')\n\n\nKnown Accounts / Constants\n==========================\n\n.. code-block:: python\n\n >>> from nano import GENESIS_BLOCK_HASH\n >>> GENESIS_BLOCK_HASH\n '991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948'\n\n\n.. code-block:: python\n\n >>> from nano import KNOWN_ACCOUNT_IDS\n >>> KNOWN_ACCOUNT_IDS['xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est']\n 'Developer Fund'\n\n\n.. code-block:: python\n\n >>> from nano import KNOWN_ACCOUNT_NAMES\n >>> KNOWN_ACCOUNT_NAMES['Burn']\n 'xrb_1111111111111111111111111111111111111111111111111111hifc8npp'\n\n\nDevelopment\n===========\n\nSetup\n-----\n\n.. code-block:: text\n\n virtualenv venv\n source venv/bin/activate\n pip install -r requirements.pip -r requirements-dev.pip\n python setup.py develop\n\nRunning tests\n-------------\n\n.. code-block:: text\n\n # regular\n pytest\n\n # coverage\n ./coverage\n\n\nBuilding docs\n-------------\n\n.. code-block:: text\n\n cd docs\n\n # generate once\n make html\n\n # live building\n make live\n\n\nMaking a release\n----------------\n\n.. code-block:: text\n\n vim CHANGELOG.rst # update changes\n\n bumpversion [major|minor|patch]\n\n python setup.py upload\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dourvaris/nano-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nano-python", "package_url": "https://pypi.org/project/nano-python/", "platform": "", "project_url": "https://pypi.org/project/nano-python/", "project_urls": { "Homepage": "https://github.com/dourvaris/nano-python" }, "release_url": "https://pypi.org/project/nano-python/2.0.1/", "requires_dist": [ "certifi (==2017.11.5)", "chardet (==3.0.4)", "idna (==2.6)", "ordereddict (==1.1)", "requests (==2.18.4)", "six (==1.11.0)", "urllib3 (==1.22)" ], "requires_python": "", "summary": "Nano (RaiBlocks) Python RPC client for rai_node", "version": "2.0.1" }, "last_serial": 3590328, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "ee452a533b96a022b2c3eaefff1225d8", "sha256": "91bfd66c946a4991948f3034988a3c70f3e60bd0129256fa907d630c25419571" }, "downloads": -1, "filename": "nano_python-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ee452a533b96a022b2c3eaefff1225d8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24227, "upload_time": "2018-02-11T12:17:34", "url": "https://files.pythonhosted.org/packages/98/c3/53be2b5d02722b592a6fc1720666512479c56272b64e6a27a449a98873b0/nano_python-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17611784108a69e1a6b4700560125ee1", "sha256": "e60772e8ffa3b8c75c4ed629c5c22e501d19d258854d7840ebd830d44917c9f3" }, "downloads": -1, "filename": "nano-python-2.0.0.tar.gz", "has_sig": false, "md5_digest": "17611784108a69e1a6b4700560125ee1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21516, "upload_time": "2018-02-11T12:17:36", "url": "https://files.pythonhosted.org/packages/23/45/dfadea454f5629fc7476e7690ab8091293e43e4a424597ae519341359393/nano-python-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "573aa7d2c05957b6208b84b5cc06da0c", "sha256": "7a658f865ea18fe10e979ffffb9a16b0289de0b1fd6c237b26ce3f8f570e9e24" }, "downloads": -1, "filename": "nano_python-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "573aa7d2c05957b6208b84b5cc06da0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24862, "upload_time": "2018-02-17T10:05:50", "url": "https://files.pythonhosted.org/packages/db/86/8e54f8a56043fd8f9050c9b613bc0d6a297006cd32eb5ed1fa6082d2c550/nano_python-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0cd8698de33a788af71357a129bd58f", "sha256": "4daa67ab59d74084fb5b87daa0820d10389b86f57eac467f39a472bb6a081587" }, "downloads": -1, "filename": "nano-python-2.0.1.tar.gz", "has_sig": false, "md5_digest": "a0cd8698de33a788af71357a129bd58f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22059, "upload_time": "2018-02-17T10:05:51", "url": "https://files.pythonhosted.org/packages/97/b1/b121a00af66903728624f3258a4563ec151948ac6fa469cc5d495bc59786/nano-python-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "573aa7d2c05957b6208b84b5cc06da0c", "sha256": "7a658f865ea18fe10e979ffffb9a16b0289de0b1fd6c237b26ce3f8f570e9e24" }, "downloads": -1, "filename": "nano_python-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "573aa7d2c05957b6208b84b5cc06da0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24862, "upload_time": "2018-02-17T10:05:50", "url": "https://files.pythonhosted.org/packages/db/86/8e54f8a56043fd8f9050c9b613bc0d6a297006cd32eb5ed1fa6082d2c550/nano_python-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0cd8698de33a788af71357a129bd58f", "sha256": "4daa67ab59d74084fb5b87daa0820d10389b86f57eac467f39a472bb6a081587" }, "downloads": -1, "filename": "nano-python-2.0.1.tar.gz", "has_sig": false, "md5_digest": "a0cd8698de33a788af71357a129bd58f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22059, "upload_time": "2018-02-17T10:05:51", "url": "https://files.pythonhosted.org/packages/97/b1/b121a00af66903728624f3258a4563ec151948ac6fa469cc5d495bc59786/nano-python-2.0.1.tar.gz" } ] }