Skip to main content

Python SDK for Hyperledger Fabric.

Project description

# Fabric-SDK-Py

Fabric-SDK-Py is the Python 3.x implementation of Hyperledger Fabric SDK!

Currently, it mainly supports Fabric 1.4.x version.

## Pre-requisite

The SDK requires the Python3 and Libssl pkgs.

Run the following cmd to install the pre-requisites if you do not have:

OS | command |
– | ———- |
Ubuntu/Debian | sudo apt-get install python-dev python3-dev libssl-dev |
Redhat/CentOS | sudo yum install python-devel python3-devel openssl-devel |
MacOS | brew install python python3 openssl |

More details to build the crypto lib, can be found at [Install Python Cryotography Lib](

## Tutorial

Read the [Tutorial]( ([Source](docs/source/ to get familiar with the APIs. A jupyter notebook explaining the sample code can be found [here](Tutorial.ipynb).

## Quick Testing

### Use Virtual Env

[virtualenv]( helps provide a clean environment, suggest to use it to test.

`sh $ pip3 install virtualenv # install the virtualenv tool if not installed $ make venv # create a virtual env $ source venv/bin/activate $ # Do the testing here $ deactivate # deactive the virtual env $ make clean # clean the temporary files `

### Run Integration Testing The following command will run the testing. `sh $ make check # Check environment and run tests $ make test # Only run test cases $ tox -e py3 -- test/integration/ # Run specified test case `

## Generating Docker images The following command will build the Docker image hyperledger/fabric-sdk-py.

`sh $ make image `

## Regenerating protos

Make sure you have grpcio-tools installed (pip install grpcio-tools) `sh $ make proto `

## Change Logs See [Change Log]( for the commit logs. Run make changelog to update the changelog before new release.

## Bug, Question and Code Contributions Welcome for any kind of contributions, e.g., [bugs](, [questions]( and [documentation](!

Recommend to read [How to Contribution]( before taking action.

## Other Important Links

## Incubation Notice

This project is in [_Incubation_]( now, and was [proposed]( and [approved]( by Hyperledger TSC at Sep 08, 2016.

## License <a name=”license”></a> The Hyperledger Fabric-SDK-Py software uses the [Apache License Version 2.0](LICENSE) software license.

<a rel=”license” href=””><img alt=”Creative Commons License” style=”border-width:0” src=”” /></a><br />This document is licensed under a <a rel=”license” href=””>Creative Commons Attribution 4.0 International License</a>.

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

fabric-sdk-py-1.0.0.tar.gz (165.7 kB view hashes)

Uploaded source

Built Distribution

fabric_sdk_py-1.0.0-py3-none-any.whl (263.0 kB view hashes)

Uploaded py3

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