Skip to main content

Simple py driver for bundlr

Project description

pybundlr

Simple py driver for bundlr

Constructed by wrapping bundlr CLI.

Installation

Prerequisites

Ensure prerequisites:

  • Linux/MacOS
  • Python 3.8.5+
  • Bundlr CLI: npm install -g @bundlr-network/client

Install pybundlr

Open a new terminal and:

#create a virtual environment
python -m venv venv

#activate env
source venv/bin/activate

#avoid issues
pip install wheel

#main install
pip install pybundlr

Example Usage

From terminal, start a Python console:

python

In Python console:

import pybundlr
address = "Ry2bDGfBIvYtvDPYnf0eg_ijH4A1EDKaaEEecyjbUQ4"
bal = pybundlr.balance(address)
print(f"bal: {bal}")

Release Process

Find the current version number at pypi.

Open pyproject.toml in an editor, and update the value in "version" = x.y.z.

In terminal:

#go to root of directory
cd ~/code/pybundlr

#ensure repo is up-to-date
git commit -am "Release x.y.z"
git push

#turn off virtual env't
deactivate

#ensure `dist/` folder is empty
rm -rf dist

#generate distribution archives: create `dist` folder with two files 
python -m build

#run twine to upload `dist` files
python3 -m twine upload dist/*

Done! The updated package will be at pypi.

Notes: this section is based on packaging.python.org tutorial.

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

pybundlr-0.0.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

pybundlr-0.0.3-py3-none-any.whl (3.7 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