Installation π οΈ
Welcome to CosmPy, the Python-based framework that will streamline your interactions with Cosmos SDK based blockchain networks.
System Requirements
The CosmPy package is a Python library running on Ubuntu/Debian, and MacOS systems.
On your computer, you may need to install:
- Python βοΈ (opens in a new tab) 3.8, 3.9 or 3.10.
- PIP βοΈ (opens in a new tab) (Python Installs Packages).
- Poetry βοΈ (opens in a new tab) for virtual environments (optional).
- CosmPy βοΈ (opens in a new tab).
Walk-through
Install with Pip
-
Create a directory for cosmpy related projects:
mkdir directory_name
-
Within the directory, create and open a virtual environment using Poetry:
poetry init -n && poetry shell
(Optional) -
Install CosmPy with the following command:
pip install cosmpy
-
Check if installation was successful:
pip show cosmpy
Once correctly installed you should see this output on the terminal
Name: cosmpy
Version: 0.9.0
Summary: A library for interacting with the cosmos networks
Home-page: https://github.com/fetchai/cosmpy
Author: Fetch.AI Limited
Author-email:
License: Apache-2.0
Requires: bech32, ecdsa, grpcio, jsonschema, protobuf, pycryptodome, python-dateutil, requests
Install from source code
-
Download the latest released version from Github and navigate to the cosmpy directory:
git clone https://github.com/fetchai/cosmpy.git cd cosmpy
-
Install the required dependencies:
poetry install
-
Open the virtual environment:
poetry shell
For more information on CosmPy, visit the GitHub βοΈ (opens in a new tab) repository.