Python Data for Apps of QuoRum
quorum 常用数据结构的 python 封装:
1、feed:
基于 quorum 新共识,目前被 rum app、feed、port、circle 等几款产品采用的数据结构
参考:
请留意,这只是推荐结构,并不是唯一标准。quorum chain 是非常开放的,客户端完全可以按照自己的需求来构造上链数据的结构。
2、converter:
基于 quorum 新共识,从旧链 trx 或从 新链 trx 转换为待发布的数据。目前主要用作数据迁移:从旧共识链迁移到新共识链;在新共识链之间迁移。
3、trx_type:
判断 trx 的类型。该方法所返回的结果,与 rum-app,feed 等产品的处理保持一致。
Install
pip install quorum_data_py
Examples
from quorum_data_py import feed
# create a new post data
data = feed.new_post(content='hello guys')
# create a like post data
data = feed.like('a-post-id')
适用于 fullnode 也适用于 lightnode,比如:
from quorum_data_py import feed
from quorum_fullnode_py import FullNode
jwt = "xxx"
url = "xxx"
fullnode = FullNode(url,jwt)
data = feed.new_post(content='hello guys')
fullnode.api.post_content(data)
from quorum_data_py import feed
from quorum_mininode_py import MiniNode
seed = "xxx"
mininode = MiniNode(seed)
data = feed.new_post(content='hello guys')
mininode.api.post_content(data)
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 file.
Metadata
Release files for quorum-data-py 1.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| quorum_data_py-1.2.7.tar.gz | 9.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quorum_data_py-1.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / quorum_data_py-1.2.7.tar.gz
| Download URL | quorum_data_py-1.2.7.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36fa0e84304610d8e824159363cccda87d8b1af3a739f00ea7c815692e565949
|
|
BLAKE2b-256 checksum How to use checksums |
b7ca753af29a77535d1a0e6dfa4260cf3fc1aea828763ed8b1e4b6cc4141b137
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / quorum_data_py-1.2.7-py3-none-any.whl
| Download URL | quorum_data_py-1.2.7-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dba06602f4e87e38a0e56f4b2f10c3c9feb81025bf3ebec276bd013f8fa83a1
|
|
BLAKE2b-256 checksum How to use checksums |
3aa4a244334f181cd7b7e44c1510e38225b00210bde79a2bdd3943bef0f7142c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for quorum-data-py 1.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.