Metadata-Version: 2.1
Name: quorum-mininode-py
Version: 1.2.9
Summary: a mini python sdk for quorum lightnode with http/https requests to quorum fullnode
Home-page: https://github.com/liujuanjuan1984/quorum_mininode_py
Author: liujuanjuan1984, zhangwm404
Author-email: qiaoanlu@163.com
Project-URL: Github Repo, https://github.com/liujuanjuan1984/quorum_mininode_py
Project-URL: Bug Tracker, https://github.com/liujuanjuan1984/quorum_mininode_py/issues
Project-URL: About Quorum, https://github.com/rumsystem/quorum
Keywords: rumsystem,quorum,lightnode,sdk
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE

# 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.
