Hyperledger的Python客户端。
项目描述
# hyperledger-py
[](https://travis-ci.org/yeasy/hyperledger-py) [](https://pypi.python.org/pypi/hyperledger)
Hyperledger的Python客户端。
本项目将遵循[Hyperledger API](https://github.com/hyperledger/fabric/tree/master/docs/API),让用户通过导入简单的Python库来使用这些API。例如:
`python >>> from hyperledger.client import Client >>> c = Client(base_url="http://127.0.0.1:7050") >>> c.peer_list() {u'peers': [{u'type': 1, u'ID': {u'name': u'vp1'}, u'address': u'172.17.0.2:7051'}, {u'type': 1, u'ID': {u'name': u'vp2'}, u'address': u'172.17.0.3:7051'}]} `
如果您想快速启动Hyperledger集群,无需本地配置和Vagrant设置,请使用此[compose-file](https://github.com/yeasy/docker-compose-files#hyperledger)。
## 安装最新稳定版本始终可在PyPi上获得。`sh $ pip install hyperledger --upgrade `
最新`dev`版本可在[gihub](https://github.com/yeasy/hyperledger-py)上找到。`sh $ git clone https://github.com/yeasy/hyperledger-py.git $ cd hyperledger-py $ pip install -r requirements.txt $ python setup.py install `
## 更新日志请参阅[变更日志](docs/change_log.md)。
## 文档源代码可在[docs](docs)目录中找到。
[API使用](docs/api.md)
## 测试
所有测试代码位于[tests](tests)目录下。
安装后,您可以使用以下命令通过您的Hyperledger集群运行快速的全功能测试(部署、调用、查询链码等):
`python $ python tests/function_test.py HYPERLEDGER_API_URL `
## 贡献
请参阅[贡献](CONTRIBUTION.md)和[贡献指南](docs/contribution.md)。
## 致谢
本作品深受以下项目的启发:
[Hyperledger](https://github.com/hyperledger/hyperledger)
[requests](https://pypi.python.org/pypi/requests)
[docker-py](https://github.com/docker/docker-py)
## 许可证
本作品采用Apache License 2.0许可。有关完整的许可文本,请参阅[LICENSE](LICENSE)。
2016年4月19日
2016年4月18日
下载文件
hyperledger-0.1.5.tar.gz (14.3 kB 查看哈希值)
源
上传时间 Python 2
Python 3
哈希值 for hyperledger-0.1.5.tar.gz | 哈希值 for hyperledger-0.1.5.tar.gz | |
---|---|---|
算法 | 哈希摘要 |
|
d41714410961a33be8ac694bb7ed86065f88d7601dd34c64c4990e290db8dd3c | 复制 |
|
MD5 | 857172d460fc3e3758cdd40aa8a491c2 |
3e0c9b32bee8af9daa210f0c489529b91d6fa01493c9cc5e5e5bacc17142774e
哈希值 for hyperledger-0.1.5.tar.gz | 哈希值 for hyperledger-0.1.5.tar.gz | |
---|---|---|
算法 | 哈希值 for hyperledger-0.1.5-py2.py3-none-any.whl |
|
d41714410961a33be8ac694bb7ed86065f88d7601dd34c64c4990e290db8dd3c | 哈希值 for hyperledger-0.1.5-py2.py3-none-any.whl |
|
MD5 | 098e36862cef35c5d31aa605dae265d6355fc90949b8b57224df782be6f98c9b |