Python library for the Bluzelle Service.
Project description
Getting started
Ensure you have a recent version of Python 3 installed.
Grab the package from github:
$ pipenv install git+https://github.com/vbstreetz/blzpy.git#egg=bluzelle
Use:
import bluzelle
client = bluzelle.new_client({
'address': '...',
'mnemonic': '...',
'gas_info': {
'max_fee': 4000001,
},
})
client.create('foo', 'bar')
value = client.read(key)
client.update(key, 'baz')
client.delete(key)
Examples
Copy .env.sample to .env and configure appropriately. You can also use this test file. 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
Licence
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bluzelle-0.1.1.tar.gz.
File metadata
- Download URL: bluzelle-0.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5afb44344f35751b1da35423b9d069ae3cf8f64081dd81743ca5c474a12273a
|
|
| MD5 |
29cd8bff6cdd35218728242807838d6d
|
|
| BLAKE2b-256 |
075a5253a8f4311b2b97ceb1e36e53952ee4a3d80a35c52cac90499098ad3a92
|
File details
Details for the file bluzelle-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bluzelle-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75053be7fa8a6dcdd4f31a671f7d8f3031ef2e4f2e34f161434d204f83196ffb
|
|
| MD5 |
cd11effae17c908008c52ee2590aabef
|
|
| BLAKE2b-256 |
d28959badebc520edde5555a9e5d4eefbf1bf1d2156501819df031ff51f27ef1
|