Skip to Content

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:

Walk-through

Install with Pip

  1. First of all, create a directory for cosmpy related projects: mkdir directory_name

  2. Within the directory, let’s create and open a virtual environment using Poetry: poetry init -n && poetry shell (Optional)

  3. Then, install CosmPy with the following command: pip install cosmpy

  4. 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

  1. 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
  2. Then install the required dependencies:

    poetry install
  3. Lastly, open the virtual environment:

    poetry shell

For more information on CosmPy, visit our dedicated GitHub repository.

Last updated on