Fetch Network
CosmPy
Installation 🛠ī¸
Bookmark

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:

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 ↗ī¸ (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.

Was this page helpful?

Bookmark