Installation
Welcome to CosmPy, the Python-based library that streamlines 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 3.8, 3.9 or 3.10.
- PIP (Python Installs Packages).
- Poetry for virtual environments (optional).
- CosmPy .
Walk-through
Install with Pip
-
First of all, create a directory for cosmpy related projects:
mkdir directory_name
-
Within the directory, let’s create and open a virtual environment using Poetry:
poetry init -n && poetry shell
(Optional) -
Then, install CosmPy with the following command:
pip install cosmpy
-
Finally, check if installation was successful:
pip show cosmpy
Once installed, you should see the following output on your 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
-
First of all, download the latest released version from Github and navigate to the cosmpy directory:
git clone https://github.com/fetchai/cosmpy.git cd cosmpy
-
Then install the required dependencies:
poetry install
-
Lastly, open the virtual environment:
poetry shell
For more information on CosmPy, visit our dedicated GitHub repository.