Installation 🛠
Welcome to CosmPy, the Python-based library that streamlines your interactions with Cosmos SDK based blockchain networks.
System Requirements
The CosmPy (opens in a new tab) 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
-
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 (opens in a new tab) repository.
If you wish to expand your knowledge on these topics, please visit our GitHub repository (opens in a new tab) for CosmPy and also checkout our dedicated CosmPy guides and CosmPy references for information on CosmPy APIs.