quorum-mininode-py


Namequorum-mininode-py JSON
Version 1.3.3 PyPI version JSON
download
home_pagehttps://github.com/liujuanjuan1984/quorum_mininode_py
Summarya mini python sdk for quorum lightnode with http/https requests to quorum fullnode
upload_time2023-12-01 11:50:50
maintainer
docs_urlNone
authorliujuanjuan1984, zhangwm404
requires_python>=3.5
license
keywords rumsystem quorum lightnode sdk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # QuoRum LightNode Python SDK

Python SDK for Quorum LightNode, Without local storage.

Another better choice is [quorum-lightnode-py](https://github.com/zhangwm404/quorum-lightnode-py), with local storage.

More about QuoRum:

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

### Install

```sh
pip install quorum_mininode_py
```

### Usage

```python3
from quorum_mininode_py import MiniNode

seed_url = 'rum://seed?v=1&e=0&n=0&c=apzmbMVtMy6J0sQKwhF...2MwHjpA2E'
pvtkey = "0xd4e9ddc19ec5b...d8c"

bot = MiniNode(seed_url,pvtkey)

# post content to rum group chain
data = {
    "type": "Create",
    "object": {
        "type": "Note",
        "content": "Hello world! Hello quorum!",
        "id": "a1d92233-3801-4295-a3cd-0e594385acc6",
    },
}

resp = bot.api.post_content(data)
print(resp)

# like a post
data = {
    "type": "Like",
    "object": {"type": "Note", "id": "a1d92233-3801-4295-a3cd-0e594385acc6"},
}

resp = bot.api.post_content(data)
print(resp)

# get content from rum group chain
trxs = bot.api.get_content(num=2, reverse=True)
print(trxs)

```

### Source

- quorum fullnode sdk for python: https://github.com/liujuanjuan1984/quorum-fullnode-py 
- quorum data module for python: https://github.com/liujuanjuan1984/quorum-data-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_mininode_py/blob/master/LICENSE) file.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/liujuanjuan1984/quorum_mininode_py",
    "name": "quorum-mininode-py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "rumsystem,quorum,lightnode,sdk",
    "author": "liujuanjuan1984, zhangwm404",
    "author_email": "qiaoanlu@163.com",
    "download_url": "https://files.pythonhosted.org/packages/ec/71/6e7e950db4913ca35e328f27daf2647089ea76c613ffdf1c1dc3864deb7f/quorum_mininode_py-1.3.3.tar.gz",
    "platform": null,
    "description": "# QuoRum LightNode Python SDK\r\n\r\nPython SDK for Quorum LightNode, Without local storage.\r\n\r\nAnother better choice is [quorum-lightnode-py](https://github.com/zhangwm404/quorum-lightnode-py), with local storage.\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_mininode_py\r\n```\r\n\r\n### Usage\r\n\r\n```python3\r\nfrom quorum_mininode_py import MiniNode\r\n\r\nseed_url = 'rum://seed?v=1&e=0&n=0&c=apzmbMVtMy6J0sQKwhF...2MwHjpA2E'\r\npvtkey = \"0xd4e9ddc19ec5b...d8c\"\r\n\r\nbot = MiniNode(seed_url,pvtkey)\r\n\r\n# post content to rum group chain\r\ndata = {\r\n    \"type\": \"Create\",\r\n    \"object\": {\r\n        \"type\": \"Note\",\r\n        \"content\": \"Hello world! Hello quorum!\",\r\n        \"id\": \"a1d92233-3801-4295-a3cd-0e594385acc6\",\r\n    },\r\n}\r\n\r\nresp = bot.api.post_content(data)\r\nprint(resp)\r\n\r\n# like a post\r\ndata = {\r\n    \"type\": \"Like\",\r\n    \"object\": {\"type\": \"Note\", \"id\": \"a1d92233-3801-4295-a3cd-0e594385acc6\"},\r\n}\r\n\r\nresp = bot.api.post_content(data)\r\nprint(resp)\r\n\r\n# get content from rum group chain\r\ntrxs = bot.api.get_content(num=2, reverse=True)\r\nprint(trxs)\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 data module for python: https://github.com/liujuanjuan1984/quorum-data-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_mininode_py/blob/master/LICENSE) file.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "a mini python sdk for quorum lightnode with http/https requests to quorum fullnode",
    "version": "1.3.3",
    "project_urls": {
        "About Quorum": "https://github.com/rumsystem/quorum",
        "Bug Tracker": "https://github.com/liujuanjuan1984/quorum_mininode_py/issues",
        "Github Repo": "https://github.com/liujuanjuan1984/quorum_mininode_py",
        "Homepage": "https://github.com/liujuanjuan1984/quorum_mininode_py"
    },
    "split_keywords": [
        "rumsystem",
        "quorum",
        "lightnode",
        "sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d8520001b157b5aa277720987d67ea6bf554d676cb1228a7d4a36d2f85ed01a",
                "md5": "35367360daecbc0c29994d0e8a40db4b",
                "sha256": "fea9fe3d386b89315d4eaafb6c9fb75cb147257f8cdb8bc20ce6ac23f57b7702"
            },
            "downloads": -1,
            "filename": "quorum_mininode_py-1.3.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "35367360daecbc0c29994d0e8a40db4b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 18039,
            "upload_time": "2023-12-01T11:50:48",
            "upload_time_iso_8601": "2023-12-01T11:50:48.284850Z",
            "url": "https://files.pythonhosted.org/packages/3d/85/20001b157b5aa277720987d67ea6bf554d676cb1228a7d4a36d2f85ed01a/quorum_mininode_py-1.3.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec716e7e950db4913ca35e328f27daf2647089ea76c613ffdf1c1dc3864deb7f",
                "md5": "5c166c3a2c5d5be08d5d098fd6f24224",
                "sha256": "320b04ec3ac9f0ac3f40ec20f30adb031a434edf94a9aa7471cd8d401fdeda41"
            },
            "downloads": -1,
            "filename": "quorum_mininode_py-1.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5c166c3a2c5d5be08d5d098fd6f24224",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 15100,
            "upload_time": "2023-12-01T11:50:50",
            "upload_time_iso_8601": "2023-12-01T11:50:50.015358Z",
            "url": "https://files.pythonhosted.org/packages/ec/71/6e7e950db4913ca35e328f27daf2647089ea76c613ffdf1c1dc3864deb7f/quorum_mininode_py-1.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-01 11:50:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "liujuanjuan1984",
    "github_project": "quorum_mininode_py",
    "github_not_found": true,
    "lcname": "quorum-mininode-py"
}
        
Elapsed time: 0.14434s