Skip to main content

gRPC Client library to interact with Elastos Smartweb Service

Project description

Python-gRPC-client

This repository contains the python package for Elastos Smart Web Service.

Prerequisites

First, install Python3:

brew install python3 // On Mac
sudo apt-get install python3 // On Ubuntu

Normally, pip comes with python3 if you're downloading the latest version (or any version above 3.4). If that is not the case, install pip by running the following:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py

Install virtualenv:

pip3 install virtualenv

Instructions

Clone the repository

git clone https://github.com/cyber-republic/python-grpc-adenine.git
cd python-grpc-adenine

To get the API service running, run the following terminal commands:

virtualenv -p `which python3` venv
source venv/bin/activate
pip3 install -r requirements.txt
cp .env.example .env

Export Path:

export PYTHONPATH="$PYTHONPATH:$PWD/elastos_adenine/stubs/"

Run the client:

python3 sample.py

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

elastos_adenine-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

elastos_adenine-0.1.0-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

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