cosmpy

A Python client library for interacting with blockchains based on the Cosmos-SDK

https://github.com/fetchai/cosmpy

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary

Keywords

blockchain cryptocurrency python
Last synced: 6 months ago · JSON representation ·

Repository

A Python client library for interacting with blockchains based on the Cosmos-SDK

Basic Info
  • Host: GitHub
  • Owner: fetchai
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 3.05 MB
Statistics
  • Stars: 143
  • Watchers: 22
  • Forks: 85
  • Open Issues: 43
  • Releases: 16
Topics
blockchain cryptocurrency python
Created over 4 years ago · Last pushed 9 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Codeowners Security Authors

README.md

CosmPy

Official Website PyPI CosmPy sanity checks and tests Download per Month Twitter Follow

A python library for interacting with cosmos based blockchain networks

To Install

bash pip3 install cosmpy

Getting Started

Below is a simple example for querying an account's balances:

```python from cosmpy.aerial.client import LedgerClient, NetworkConfig

connect to Fetch.ai network using default parameters

ledgerclient = LedgerClient(NetworkConfig.fetchaimainnet())

alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x' balances = ledgerclient.querybankallbalances(alice)

show all coin balances

for coin in balances: print(f'{coin.amount}{coin.denom}') ```

Documentation

The full documentation can be found here.

Examples

Under the examples directory, you can find examples of basic ledger interactions using cosmpy, such as transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps.

Contributing

All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated!

Read below to learn how you can take part in the CosmPy project.

Code of Conduct

Please be sure to read and follow our Code of Conduct. By participating, you are expected to uphold this code.

Contribution Guidelines

Read our contribution guidelines to learn about our issue and pull request submission processes, coding rules, and more.

Development Guidelines

Read our development guidelines to learn about the development processes and workflows.

Issues, Questions and Discussions

We use GitHub Issues for tracking requests and bugs, and GitHub Discussions for general questions and discussion.

Owner

  • Name: Fetch.AI
  • Login: fetchai
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use CosmPy in your research or project, please cite it as follows:"
title: CosmPy Library
authors:
  - family-names: Fetch.ai
date-released: "2021-06-01"
url: "https://github.com/fetchai/cosmpy"
license: "Apache-2.0"

GitHub Events

Total
  • Create event: 16
  • Release event: 2
  • Issues event: 4
  • Watch event: 13
  • Delete event: 8
  • Member event: 1
  • Issue comment event: 17
  • Push event: 92
  • Pull request review comment event: 27
  • Pull request review event: 38
  • Pull request event: 23
  • Fork event: 10
Last Year
  • Create event: 16
  • Release event: 2
  • Issues event: 4
  • Watch event: 13
  • Delete event: 8
  • Member event: 1
  • Issue comment event: 17
  • Push event: 92
  • Pull request review comment event: 27
  • Pull request review event: 38
  • Pull request event: 23
  • Fork event: 10

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 52
  • Total pull requests: 111
  • Average time to close issues: 3 months
  • Average time to close pull requests: 29 days
  • Total issue authors: 26
  • Total pull request authors: 20
  • Average comments per issue: 1.37
  • Average comments per pull request: 0.84
  • Merged pull requests: 68
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 23
  • Average time to close issues: 9 days
  • Average time to close pull requests: 11 days
  • Issue authors: 1
  • Pull request authors: 6
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.39
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • 5A11 (12)
  • VijaySharma815 (5)
  • jrriehl (4)
  • dylanschultzie (3)
  • MissingNO57 (3)
  • mperklin (2)
  • leonardoaraujosantos (2)
  • dishmop (2)
  • furester (1)
  • Widlar (1)
  • Alejandro-Morales (1)
  • mohammadworks (1)
  • Wally869 (1)
  • solarw (1)
  • rocco-piovani (1)
Pull Request Authors
  • MissingNO57 (30)
  • solarw (22)
  • jrriehl (17)
  • VijaySharma815 (13)
  • 5A11 (6)
  • ejfitzgerald (3)
  • pbukva (3)
  • FelixNicolaeBucsa (3)
  • dylanschultzie (2)
  • mperklin (2)
  • eckelj (2)
  • Galadrin (2)
  • BorisNaum (2)
  • tomasandroil (2)
  • kapong (1)
Top Labels
Issue Labels
C-bug (3) C-enhancement (2) Aerial (1) C-investigation (1) Check Later (1)
Pull Request Labels
S-do-not-merge (3)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 53,143 last-month
  • Total docker downloads: 140
  • Total dependent packages: 18
    (may contain duplicates)
  • Total dependent repositories: 36
    (may contain duplicates)
  • Total versions: 45
  • Total maintainers: 4
pypi.org: cosmpy

A library for interacting with the cosmos networks

  • Versions: 22
  • Dependent Packages: 18
  • Dependent Repositories: 36
  • Downloads: 53,143 Last month
  • Docker Downloads: 140
Rankings
Dependent packages count: 0.8%
Dependent repos count: 2.4%
Downloads: 4.1%
Average: 4.2%
Docker downloads count: 4.6%
Forks count: 5.6%
Stargazers count: 7.5%
Last synced: 6 months ago
proxy.golang.org: github.com/fetchai/cosmpy
  • Versions: 23
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 9.0%
Average: 9.6%
Dependent repos count: 10.2%
Last synced: 6 months ago

Dependencies

.github/workflows/docs_pr_preview.yml actions
  • FirebaseExtended/action-hosting-deploy v0 composite
  • actions/checkout v3 composite
  • actions/download-artifact master composite
  • actions/setup-python v2 composite
  • actions/upload-artifact master composite
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/workflow.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • gaurav-nelson/github-action-markdown-link-check v1 composite
  • rojopolis/spellcheck-github-actions 0.25.0 composite
docs/Dockerfile docker
  • python 3.7 build
docs/Pipfile pypi
  • mkdocs *
  • mkdocs-material *
  • mkdocs-material-extensions *
poetry.lock pypi
  • 127 dependencies
pyproject.toml pypi
  • bech32 *
  • bip-utils *
  • blspy *
  • ecdsa *
  • google-api-python-client *
  • grpcio ==1.47.0
  • jsonschema >=3.2.0,<5
  • protobuf >=3.19.4,<4
  • python >=3.8,<4.0
  • requests *