Skip to main content

A Fusion extension to the web3.py package

Project description

web3fsnpy

The Python3 implementation of FUSION’s Web3 functions

All installation instructions, description of functions and examples of usage are described on the web3fsnpy readthedocs page

Quick start

Install some dependencies (you will need > python3.6) :-

#> sudo apt install python3 python3-pip

#> sudo pip3 install web3fsnpy (or pip3 install web3fsnpy --user if you want to install a username only copy)

You can find some example python programs at https://github.com/FUSIONFoundation/web3fsnpy/tree/master/fusion_tests

designed to demonstrate the API's functionality. These will be added to as new functions are developed.

You will probably need to set the environmental variable FSN_PRIVATE_KEY to be able to use any write transaction methods.

Get your private key from your Fusion wallet (click on 'View details') and then :-

#> export FSN_PRIVATE_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXX

To update (frequent updates available) just type :-

#> sudo pip3 install --upgrade web3fsnpy (or pip3 install --upgarde web3fsnpy --user)

Developer setup

For a developer setup, you will likely need to install Ethereum's web3.py according to the instructions at https://github.com/ethereum/web3.py

Then install web3fsnpy :-

#> git clone https://github.com/FUSIONFoundation/web3fsnpy.git

The dependencies are listed in the file requirements.txt

Now you need to update the PYTHONPATH environmental variable to your .bashrc file assuming that you are in the folder web3fsnpy :-

#> echo "export PYTHONPATH=$PWD:$PWD/web3fsnpy:$PYTHONPATH">>~/.bashrc

Now restart your shell to activate the PYTHONPATH. You can now try some of the scripts in the folder fusion_tests to make sure that it is working.

It is best practice to operate within a virtualenv when modifying code, so as to isolate dependency issues.

Bugs and enhancements

Please report bugs or suggest enhancements by creating a git pull request to https://github.com/FUSIONFoundation/web3fsnpy

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

web3fsnpy-1.0.1.tar.gz (79.9 kB view details)

Uploaded Source

Built Distribution

web3fsnpy-1.0.1-py3-none-any.whl (109.4 kB view details)

Uploaded Python 3

File details

Details for the file web3fsnpy-1.0.1.tar.gz.

File metadata

  • Download URL: web3fsnpy-1.0.1.tar.gz
  • Upload date:
  • Size: 79.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for web3fsnpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fe38c37babd8804de34c57863299ba4a96f31b2737b7b0f6167bb4db0917a175
MD5 cf5daa2966dbc1a78e132aeb021ba24b
BLAKE2b-256 673cfeeba0bfd1682df89044ccb18b06ccb4f95c4912b5a7b3b07d2108bce777

See more details on using hashes here.

File details

Details for the file web3fsnpy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: web3fsnpy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 109.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for web3fsnpy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab9a8ea2b9076fe51fe5ff5e02577253d9d328236bcd746ca7cf6b2f8a064a5f
MD5 39c3210afa3ab467f6c5dcbfa2ea9452
BLAKE2b-256 be240108b7c2f2eb9fbbde433b04801d2fc2c2d10f204cedca95a38bde6e4b1c

See more details on using hashes here.

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