Skip to content

bluzelle/blzpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

Ensure you have a recent version of Python 3 installed.

Grab the package from github:

pipenv install git+https://github.com/bluzelle/blzpy.git#egg=bluzelle

Use:

import bluzelle

client = bluzelle.new_client({
  'address':  '...',
  'mnemonic': '...',
})

gas_info = {
  'max_fee': 4000001,
}

key = 'foo'

client.create(key, 'bar', gas_info)
value = client.read(key)
client.update(key, 'baz', gas_info)
client.delete(key, gas_info)

Examples

Copy .env.sample to .env and configure if needed.

cp .env.sample .env

Then run the example:

DEBUG=false python examples/crud.py

Tests

The tests/ can best be run in a pipenv environment. To do so, initialize one with:

pipenv --python 3

Install requirements:

pipenv install

Then run the tests:

make test

User Acceptance Testing

Please checkout the UAT.md document for more details.

Licence

MIT

About

Python client library for Bluzelle Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published