open-aea-cosmpy


Nameopen-aea-cosmpy JSON
Version 0.6.6 PyPI version JSON
download
home_page
SummaryA library for interacting with the cosmos networks
upload_time2023-09-19 09:11:04
maintainer
docs_urlNone
authorFetch.AI Limited
requires_python>=3.8,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
    <b>CosmPy</b>
</h1>

<p align="center">
  <a href="https://pypi.org/project/cosmpy/">
    <img alt="PyPI" src="https://img.shields.io/pypi/v/cosmpy">
  </a>
  <a href="https://pypi.org/project/cosmpy/">
    <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/cosmpy">
  </a>
  <a>
    <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/cosmpy">
  </a>
  <a href="https://github.com/fetchai/cosmpy/blob/master/LICENSE">
    <img alt="License" src="https://img.shields.io/pypi/l/cosmpy">
  </a>
</p>
<p align="center">
  <a href="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml">
    <img alt="AEA framework sanity checks and tests" src="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg">
  </a>
  <a href="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml">
    <img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg">
  </a>
</p>

<p align="center">
A python library for interacting with cosmos based blockchain networks
</p>

## Installing

To install the library use:

```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
ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())

alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x'
balances = ledger_client.query_bank_all_balances(alice)

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

## Documentation

Before running this command make sure your development environment is set up. Check [Development setup](https://github.com/fetchai/cosmpy/blob/master/DEVELOPING.md#development-setup) for more details.

To see the documentation:

```bash
make docs-live
```

Then navigate to the following URL in your browser:
<!-- markdown-link-check-disable-next-line -->
[http://127.0.0.1:8000/cosmpy/](http://127.0.0.1:8000/cosmpy/)

## Examples

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

## To contribute

Please see [CONTRIBUTING](https://github.com/fetchai/cosmpy/blob/master/CONTRIBUTING.md) and [DEVELOPING](https://github.com/fetchai/cosmpy/blob/master/DEVELOPING.md) guides.

## Extra Resources

* [GitHub Repo](https://github.com/fetchai/cosmpy)
* [Bug Reports](https://github.com/fetchai/cosmpy/issues)
* [Discussions](https://github.com/fetchai/cosmpy/discussions)
* [Getting Started](https://docs.fetch.ai/CosmPy/)


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "open-aea-cosmpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Fetch.AI Limited",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/29/5d/960af3eefcb8023593432c6e28c4d169ed2732008ab35943ba1c7270295a/open_aea_cosmpy-0.6.6.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n    <b>CosmPy</b>\n</h1>\n\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/cosmpy/\">\n    <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/cosmpy\">\n  </a>\n  <a href=\"https://pypi.org/project/cosmpy/\">\n    <img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/cosmpy\">\n  </a>\n  <a>\n    <img alt=\"PyPI - Wheel\" src=\"https://img.shields.io/pypi/wheel/cosmpy\">\n  </a>\n  <a href=\"https://github.com/fetchai/cosmpy/blob/master/LICENSE\">\n    <img alt=\"License\" src=\"https://img.shields.io/pypi/l/cosmpy\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml\">\n    <img alt=\"AEA framework sanity checks and tests\" src=\"https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg\">\n  </a>\n  <a href=\"https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml\">\n    <img alt=\"Contributor Covenant\" src=\"https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg\">\n  </a>\n</p>\n\n<p align=\"center\">\nA python library for interacting with cosmos based blockchain networks\n</p>\n\n## Installing\n\nTo install the library use:\n\n```bash\npip3 install cosmpy\n```\n\n## Getting Started\n\nBelow is a simple example for querying an account's balances:\n\n```python\nfrom cosmpy.aerial.client import LedgerClient, NetworkConfig\n\n# connect to Fetch.ai network using default parameters\nledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())\n\nalice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x'\nbalances = ledger_client.query_bank_all_balances(alice)\n\n# show all coin balances\nfor coin in balances:\n  print(f'{coin.amount}{coin.denom}')\n```\n\n## Documentation\n\nBefore running this command make sure your development environment is set up. Check [Development setup](https://github.com/fetchai/cosmpy/blob/master/DEVELOPING.md#development-setup) for more details.\n\nTo see the documentation:\n\n```bash\nmake docs-live\n```\n\nThen navigate to the following URL in your browser:\n<!-- markdown-link-check-disable-next-line -->\n[http://127.0.0.1:8000/cosmpy/](http://127.0.0.1:8000/cosmpy/)\n\n## Examples\n\nUnder the `examples` directory, you can find examples of basic ledger interactions using `cosmpy` e.g. transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps.\n\n## To contribute\n\nPlease see [CONTRIBUTING](https://github.com/fetchai/cosmpy/blob/master/CONTRIBUTING.md) and [DEVELOPING](https://github.com/fetchai/cosmpy/blob/master/DEVELOPING.md) guides.\n\n## Extra Resources\n\n* [GitHub Repo](https://github.com/fetchai/cosmpy)\n* [Bug Reports](https://github.com/fetchai/cosmpy/issues)\n* [Discussions](https://github.com/fetchai/cosmpy/discussions)\n* [Getting Started](https://docs.fetch.ai/CosmPy/)\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A library for interacting with the cosmos networks",
    "version": "0.6.6",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a19e7695ebee4f6405637a75402351f389eaa3bdd39464376373dc877d36c5f",
                "md5": "ff0b8d16db6e1da4d4ac16aadeffa237",
                "sha256": "0e8beca421383dce13c19d6d305d96e0905ba3171b97c7d0528e1480fee670dc"
            },
            "downloads": -1,
            "filename": "open_aea_cosmpy-0.6.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff0b8d16db6e1da4d4ac16aadeffa237",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 404305,
            "upload_time": "2023-09-19T09:11:02",
            "upload_time_iso_8601": "2023-09-19T09:11:02.456909Z",
            "url": "https://files.pythonhosted.org/packages/5a/19/e7695ebee4f6405637a75402351f389eaa3bdd39464376373dc877d36c5f/open_aea_cosmpy-0.6.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "295d960af3eefcb8023593432c6e28c4d169ed2732008ab35943ba1c7270295a",
                "md5": "dfac4ca6ec87bae7c6e6f8929f4029f6",
                "sha256": "ae5a40b61fdf4af511e60acb2cdfa3dffef57324e975dcadd87c1f02cf8e6c27"
            },
            "downloads": -1,
            "filename": "open_aea_cosmpy-0.6.6.tar.gz",
            "has_sig": false,
            "md5_digest": "dfac4ca6ec87bae7c6e6f8929f4029f6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 197275,
            "upload_time": "2023-09-19T09:11:04",
            "upload_time_iso_8601": "2023-09-19T09:11:04.529290Z",
            "url": "https://files.pythonhosted.org/packages/29/5d/960af3eefcb8023593432c6e28c4d169ed2732008ab35943ba1c7270295a/open_aea_cosmpy-0.6.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-19 09:11:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "open-aea-cosmpy"
}
        
Elapsed time: 0.11346s