quorum-fullnode-py


Namequorum-fullnode-py JSON
Version 1.3.2 PyPI version JSON
download
home_pagehttps://github.com/liujuanjuan1984/quorum_fullnode_py
SummaryPython SDK for FullNode of QuoRum
upload_time2023-06-19 03:13:58
maintainer
docs_urlNone
authorliujuanjuan1984
requires_python>=3.7
license
keywords quorum_fullnode_py rumsystem quorum
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # quorum_fullnode_py

Python SDK for Quorum FullNode.

More about QuoRum:

- https://rumsystem.net/
- https://github.com/rumsystem/quorum

### Install

```sh
pip install quorum_fullnode_py
```

### Usage

```python
from quorum_fullnode_py import FullNode

url = "http://127.0.0.1:11002"
jwt = "eyJhbGciO...VCJ9.eyJhbGxvd0...pbiJ9.FeyMWvzweE...o66QZ735nsrU"

# connect to a quorum fullnode with api url and chain jwt_token
client = FullNode(api_base=url, jwt_token=jwt)

# check node_status is online.
client.api.node_info().get("node_status") == "NODE_ONLINE"

# create a group chain for test
info = client.api.create_group("test_group")
client.group_id = info["group_id"]

# send a new post to the group chain
data = {
    "type": "Create",
    "object": {
        "type": "Note",
        "content": "nice to meet u!",
        "name": "hi",
        "id": "efb14f14-f849-4cf3-bcb6-c3598e857adb",
    },
}
resp = client.api.post_content(data)

# get trx from group chain
trx = client.api.trx(resp['trx_id'])

# get content:
trxs = client.api.get_content()

```

### Source

- quorum fullnode sdk for python: https://github.com/liujuanjuan1984/quorum-fullnode-py 
- quorum mininode sdk for python: https://github.com/liujuanjuan1984/quorum-mininode-py 
- and more ...  https://github.com/okdaodine/awesome-quorum

### License

This work is released under the `MIT` license. A copy of the license is provided in the [LICENSE](https://github.com/liujuanjuan1984/quorum_fullnode_py/blob/master/LICENSE) file.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/liujuanjuan1984/quorum_fullnode_py",
    "name": "quorum-fullnode-py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "quorum_fullnode_py,rumsystem,quorum",
    "author": "liujuanjuan1984",
    "author_email": "qiaoanlu@163.com",
    "download_url": "https://files.pythonhosted.org/packages/75/43/cf186b2507fb0921d52a25094bfbf9910ac1dc67871a29995e969ad189c6/quorum_fullnode_py-1.3.2.tar.gz",
    "platform": null,
    "description": "# quorum_fullnode_py\r\n\r\nPython SDK for Quorum FullNode.\r\n\r\nMore about QuoRum:\r\n\r\n- https://rumsystem.net/\r\n- https://github.com/rumsystem/quorum\r\n\r\n### Install\r\n\r\n```sh\r\npip install quorum_fullnode_py\r\n```\r\n\r\n### Usage\r\n\r\n```python\r\nfrom quorum_fullnode_py import FullNode\r\n\r\nurl = \"http://127.0.0.1:11002\"\r\njwt = \"eyJhbGciO...VCJ9.eyJhbGxvd0...pbiJ9.FeyMWvzweE...o66QZ735nsrU\"\r\n\r\n# connect to a quorum fullnode with api url and chain jwt_token\r\nclient = FullNode(api_base=url, jwt_token=jwt)\r\n\r\n# check node_status is online.\r\nclient.api.node_info().get(\"node_status\") == \"NODE_ONLINE\"\r\n\r\n# create a group chain for test\r\ninfo = client.api.create_group(\"test_group\")\r\nclient.group_id = info[\"group_id\"]\r\n\r\n# send a new post to the group chain\r\ndata = {\r\n    \"type\": \"Create\",\r\n    \"object\": {\r\n        \"type\": \"Note\",\r\n        \"content\": \"nice to meet u!\",\r\n        \"name\": \"hi\",\r\n        \"id\": \"efb14f14-f849-4cf3-bcb6-c3598e857adb\",\r\n    },\r\n}\r\nresp = client.api.post_content(data)\r\n\r\n# get trx from group chain\r\ntrx = client.api.trx(resp['trx_id'])\r\n\r\n# get content:\r\ntrxs = client.api.get_content()\r\n\r\n```\r\n\r\n### Source\r\n\r\n- quorum fullnode sdk for python: https://github.com/liujuanjuan1984/quorum-fullnode-py \r\n- quorum mininode sdk for python: https://github.com/liujuanjuan1984/quorum-mininode-py \r\n- and more ...  https://github.com/okdaodine/awesome-quorum\r\n\r\n### License\r\n\r\nThis work is released under the `MIT` license. A copy of the license is provided in the [LICENSE](https://github.com/liujuanjuan1984/quorum_fullnode_py/blob/master/LICENSE) file.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python SDK for FullNode of QuoRum",
    "version": "1.3.2",
    "project_urls": {
        "About Quorum": "https://github.com/rumsystem/quorum",
        "Bug Tracker": "https://github.com/liujuanjuan1984/quorum_fullnode_py/issues",
        "Github Repo": "https://github.com/liujuanjuan1984/quorum_fullnode_py",
        "Homepage": "https://github.com/liujuanjuan1984/quorum_fullnode_py"
    },
    "split_keywords": [
        "quorum_fullnode_py",
        "rumsystem",
        "quorum"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3800ea0ace6ebb7169f0e5e95dcf40f1386187d77e3aa6a0820e282c24966e0a",
                "md5": "24123e5f58a2529018f74dbafed07475",
                "sha256": "82c7dcd4200718f3c5c05b09b8ab1f675266abb84555106f33ebe749156adb7c"
            },
            "downloads": -1,
            "filename": "quorum_fullnode_py-1.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "24123e5f58a2529018f74dbafed07475",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11833,
            "upload_time": "2023-06-19T03:13:56",
            "upload_time_iso_8601": "2023-06-19T03:13:56.495290Z",
            "url": "https://files.pythonhosted.org/packages/38/00/ea0ace6ebb7169f0e5e95dcf40f1386187d77e3aa6a0820e282c24966e0a/quorum_fullnode_py-1.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7543cf186b2507fb0921d52a25094bfbf9910ac1dc67871a29995e969ad189c6",
                "md5": "6e102b67deb0c78d962edea480380f4a",
                "sha256": "947c107ea7f7c32a08ac75d4e78f58f398e49d86ed5901720d10023c0caf20fc"
            },
            "downloads": -1,
            "filename": "quorum_fullnode_py-1.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6e102b67deb0c78d962edea480380f4a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 11677,
            "upload_time": "2023-06-19T03:13:58",
            "upload_time_iso_8601": "2023-06-19T03:13:58.375255Z",
            "url": "https://files.pythonhosted.org/packages/75/43/cf186b2507fb0921d52a25094bfbf9910ac1dc67871a29995e969ad189c6/quorum_fullnode_py-1.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-19 03:13:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "liujuanjuan1984",
    "github_project": "quorum_fullnode_py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "quorum-fullnode-py"
}
        
Elapsed time: 0.07823s