Cardano Python lib to interact with the blockchain
Project description
CardanoPythonLib
Cardano Python Library
Installation
- Prerequesites
- Minimum: Cardano-cli, Cardano Wallet and Cardano Address installed. You will be able to run offchain code, generate keys, create and sign transactions.
- Desired: Cardano-node running. You will be able to submit onchain and get confirmations from the blockchain.
- Unlock more: Cardano wallet installed. You will be able to create wallets using the Cardano Wallet API.
As a side note, we are working to allow the interaction of this library with the Cardano blockchain without the need of any cardano node or even cardano CLI/wallet/address installed locally.
- Virtual environment setup As you might know, it is recommended to run python code from a virtual environment to isolate your installation and keep everything clean and organized.
I work with virtualenvwrapper but you can use your prefered choice. For virtualenvwrapper:
sudo apt install python3-pip
sudo -H pip3 install --upgrade pip
sudo -H pip3 install virtualenv virtualenvwrapper
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc
echo "export WORKON_HOME=~/Env" >> ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
Create the virtual environment
mkvirtualenv <pick a cool name>
List all virtual environments
lsvirtualenv
- Download the library from github
We are working to allow the installation of this library with pip but in the meantime:
git clone https://github.com/larestrepo/CardanoPythonLib.git
- Install requirements (For the time being optional)
If you look at the requirements, in this release, it only contains some support dependencies for shaping and styling python code. Basically no dependencies as of now.
Make sure to have active your virtual environment
pip install -r requirements.txt
You should be good to go
Working with the library
cardanopythonlib folder is the package that contains the main functionalities.
base.py file contains 3 classes.
- Starter
- Node
- Keys
For usage please go to docs folder.
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
Hashes for cardanopythonlib-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85bee942dfa0d8356e2a5adf979d6815eae161c43b3355ee54a151da09e7d9f |
|
MD5 | b832aa5911559fe1e5a7196c38e5addc |
|
BLAKE2b-256 | d379b7b12cc3737e85d3919941ea4242e0c01d845e1895f9da79d1ef17ebf710 |