Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bluzelle-0.1.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

bluzelle-0.1.1-py3-none-any.whl (8.4 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