{ "info": { "author": "Morgan Aubert", "author_email": "morgan.aubert@zoho.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "NeoJsonRPC\n##########\n\n**NeoJsonRPC** is a Python JSON-RPC client for the NEO blockchain. It implements the JSON-RPC\nmethods of the API interface provided by NEO nodes (minus the methods requiring an opened wallet).\nThe client also provides a high-level interface to invoke contract methods on the NEO blockchain.\n\n.. contents:: Table of Contents\n :local:\n\nDocumentation\n=============\n\nOnline browsable documentation is available at https://neojsonrpc.readthedocs.io.\n\nRequirements\n============\n\nPython_ 3.4+, Requests_ 2.0+.\n\nInstallation\n============\n\nTo install NeoJsonRPC, please use pip_ (or pipenv_) as follows:\n\n.. code-block:: shell\n\n $ pip install neojsonrpc\n\nBasic usage\n===========\n\nThe first step to interact with the NEO JSON-RPC interface is to initialize a ``neojsonrpc.Client``\ninstance. The following examples respectively show how to get clients for the TestNet, the MainNet\nand an hypothetical local PrivNet:\n\n.. code-block:: python\n\n >>> from neojsonrpc import Client\n >>> testnet_client = Client.for_testnet()\n >>> mainnet_client = Client.for_mainnet()\n >>> privnet_client = Client(host='localhost', port='30333')\n\nThen you can easily call some of the `JSON-RPC methods `_\nprovided by NEO nodes. Here are some examples:\n\n.. code-block:: python\n\n >>> from neojsonrpc import Client\n >>> client = Client.for_testnet()\n >>> client.get_block_count()\n 973369\n >>> client.get_contract_state('2c0fdfa9592814b0a938219e218e3a6b08615acd')\n {'author': 'foobar',\n 'code_version': '0.3',\n # [...]\n }\n\nYou can also invoke smart contract functions using the following methods:\n\n.. code-block:: python\n\n >>> from neojsonrpc import Client\n >>> client = Client.for_testnet()\n >>> result = client.invoke_function('34af1b6634fcd7cfcff0158965b18601d3837e32', 'symbol', [])\n {'gas_consumed': '0.217',\n 'stack': [{'type': 'ByteArray', 'value': bytearray(b'TKN')}],\n 'state': 'HALT, BREAK'}\n >>> # Another convenient way to do the same operation is as follows:\n >>> client.contract('34af1b6634fcd7cfcff0158965b18601d3837e32').symbol()\n {'gas_consumed': '0.217',\n 'stack': [{'type': 'ByteArray', 'value': bytearray(b'TKN')}],\n 'state': 'HALT, BREAK'}\n\nAuthors\n=======\n\nMorgan Aubert (`@ellmetha `_) and contributors_. See ``AUTHORS`` for\nmore details.\n\n.. _contributors: https://github.com/ellmetha/neojsonrpc/contributors\n\nLicense\n=======\n\nMIT. See ``LICENSE`` for more details.\n\n\n.. _pip: https://github.com/pypa/pip\n.. _pipenv: https://github.com/pypa/pipenv\n.. _Python: https://www.python.org/\n.. _Requests: http://docs.python-requests.org/en/master/\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/ellmetha/neojsonrpc", "keywords": "neo blockchain json-rpc json-rpc-client api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "neojsonrpc", "package_url": "https://pypi.org/project/neojsonrpc/", "platform": "", "project_url": "https://pypi.org/project/neojsonrpc/", "project_urls": { "Homepage": "https://github.com/ellmetha/neojsonrpc" }, "release_url": "https://pypi.org/project/neojsonrpc/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "A Python JSON-RPC client for the NEO blockchain.", "version": "0.1.1" }, "last_serial": 3638613, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ce634ed50bebfb015c43cdad6670622e", "sha256": "7b80603284c09c07996925b54215c25ebe3b6d200a4bf5d3162a1240020ec458" }, "downloads": -1, "filename": "neojsonrpc-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ce634ed50bebfb015c43cdad6670622e", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12697, "upload_time": "2018-01-07T22:39:39", "url": "https://files.pythonhosted.org/packages/76/39/2909a39b30d360cf1d7f0e586a9a400fdad798f9b31ae93d1c981f927d1d/neojsonrpc-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8304fb49418058a4a86de5f8585b04e7", "sha256": "8c7d5576d493e0eb66b93602b5ea95304a930e1f163ce80102433fbab17b13f2" }, "downloads": -1, "filename": "neojsonrpc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8304fb49418058a4a86de5f8585b04e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20950, "upload_time": "2018-01-07T22:39:38", "url": "https://files.pythonhosted.org/packages/85/37/f24dacc5dcbb4278f9b329ebabdcbc9f416c737f4d89442121177ec4c878/neojsonrpc-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3719eab9bab18f957334780462df0573", "sha256": "4c9bb835eea6610b77484ef35a829b1f10705a37a5cfe663bb4dd5e0684ee42d" }, "downloads": -1, "filename": "neojsonrpc-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3719eab9bab18f957334780462df0573", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12706, "upload_time": "2018-03-04T18:53:31", "url": "https://files.pythonhosted.org/packages/1f/12/e7748b9ab3cd6ed310d68041df206ff6b8b47e28297eed0ce6d6d724ec92/neojsonrpc-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81f60c5e2df834700e999eb6c15f9941", "sha256": "e0176d4cc20cd2b21830e1c8d6cf8f0fdca938ded3aa8fdd267209acb7217ef8" }, "downloads": -1, "filename": "neojsonrpc-0.1.1.tar.gz", "has_sig": false, "md5_digest": "81f60c5e2df834700e999eb6c15f9941", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21125, "upload_time": "2018-03-04T18:53:30", "url": "https://files.pythonhosted.org/packages/18/1c/519c45ab8391449bf4619be1ea52c2e32a76412837dfd074524ebfa39cd0/neojsonrpc-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3719eab9bab18f957334780462df0573", "sha256": "4c9bb835eea6610b77484ef35a829b1f10705a37a5cfe663bb4dd5e0684ee42d" }, "downloads": -1, "filename": "neojsonrpc-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3719eab9bab18f957334780462df0573", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12706, "upload_time": "2018-03-04T18:53:31", "url": "https://files.pythonhosted.org/packages/1f/12/e7748b9ab3cd6ed310d68041df206ff6b8b47e28297eed0ce6d6d724ec92/neojsonrpc-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81f60c5e2df834700e999eb6c15f9941", "sha256": "e0176d4cc20cd2b21830e1c8d6cf8f0fdca938ded3aa8fdd267209acb7217ef8" }, "downloads": -1, "filename": "neojsonrpc-0.1.1.tar.gz", "has_sig": false, "md5_digest": "81f60c5e2df834700e999eb6c15f9941", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21125, "upload_time": "2018-03-04T18:53:30", "url": "https://files.pythonhosted.org/packages/18/1c/519c45ab8391449bf4619be1ea52c2e32a76412837dfd074524ebfa39cd0/neojsonrpc-0.1.1.tar.gz" } ] }