Skip to main content

node api implementation on python3

Project description

zeroPy

PyPI version Python 3.6 License: GPL v3

Python3 client api for blockchain

Requirements

  • racrypt
  • crcPy

Tests

Default tests:

 sh tests.sh

Testing Api:

cd tests
vim node.ini
change ip, port
python3 -m unittest test_client.py

Start

import zeropy

client = zeropy.apiClient()
client.connect('127.0.0.1', 5000)

tmp_key = b'any 64 symbols'
#Blockchain should know with whom he works
client.send_info(tmp_key)

counters = client.get_counters()
print('blocks\n', counters.blocks, 'transactions\n', counters.transactions,
'binary data \n',counters)

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

zeropy-0.2.tar.gz (8.0 kB view hashes)

Uploaded Source

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