Skip to main content

Python client for Hyperledger.

Project description

# hyperledger-py

[![Build Status](https://travis-ci.org/yeasy/hyperledger-py.svg?branch=master)](https://travis-ci.org/yeasy/hyperledger-py) [![PyPI Version](http://img.shields.io/pypi/v/hyperledger.svg)](https://pypi-hypernode.com/pypi/hyperledger)

Python client for [Hyperledger](https://github.com/hyperledger/hyperledger).

This project will follow the [Hyperledger API](https://github.com/hyperledger/fabric/tree/master/docs/API) to let users use those APIs by import a simple python library. e.g.,

`python >>> from hyperledger.client import Client >>> c = Client(base_url="http://127.0.0.1:5000") >>> c.peer_list() {u'peers': [{u'type': 1, u'ID': {u'name': u'vp1'}, u'address': u'172.17.0.2:30303'}, {u'type': 1, u'ID': {u'name': u'vp2'}, u'address': u'172.17.0.3:30303'}]} `

If you want a quick start with a hyperledger cluster without any local configuration and vagrant setup, please use this [compose-file](https://github.com/yeasy/docker-compose-files#hyperledger).

## Installation The latest stable version is always available on PyPi. `sh $ pip install hyperledger --upgrade `

The latest dev version is on [github](https://github.com/yeasy/hyperledger-py). `sh $ git clone https://github.com/yeasy/hyperledger-py.git $ cd hyperledger-py $ python setup.py install `

## Change Logs See [change log](docs/change_log.md).

## Documentation The source is available in the [docs](docs) directory.

  • [API Usage](docs/api.md)

## Testing All testing code is under [tests](tests) directory.

After installation, you can run a quick full-functional testing (deploy, invoke, query chaincode, etc.) with your hyperledger cluster by

`python $ python tests/function_test.py HYPERLEDGER_API_URL `

## Contribution Please see [Contribution](CONTRIBUTION.md) and [Contribution Instruction](docs/contribution.md).

## Acknowledgement

This work is highly inspired by the following projects:

## License

This work is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for full license text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperledger-0.1.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

hyperledger-0.1.1-py2.py3-none-any.whl (23.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hyperledger-0.1.1.tar.gz.

File metadata

  • Download URL: hyperledger-0.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hyperledger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d613d6d4004560fc78e9764e58b6b341d3b2bbf8417539490934f3f8c084a5a1
MD5 743daedcb2be5350011bc80dfcf5914b
BLAKE2b-256 7486924217aa5a1297fe05d2ed514497a7abe34b00980cfd67119cc31642488c

See more details on using hashes here.

File details

Details for the file hyperledger-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for hyperledger-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fc9f9986f262283ac1a9b677f0690737c35fa4e52b1908ffb1f94b3faaa24389
MD5 6579e6abc83c2287371ffbbe1e593f62
BLAKE2b-256 1ae1009b4bb4abb4a51cf81286633d53ba53d07fe1cd4eae6c6347cb7ed6ef11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page