cosmpy


Namecosmpy JSON
Version 0.9.1 PyPI version JSON
download
home_pagehttps://github.com/fetchai/cosmpy
SummaryA library for interacting with the cosmos networks
upload_time2023-08-08 15:56:37
maintainer
docs_urlNone
authorFetch.AI Limited
requires_python>=3.8,<4.0
licenseApache-2.0
keywords cosmpy cosmos-sdk
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 python library for interacting with cosmos based blockchain networks
</p>

<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 href="https://github.com/fetchai/cosmpy/blob/main/LICENSE">
    <img alt="License" src="https://img.shields.io/pypi/l/cosmpy">
  </a>
  <br />
  <a>
    <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/cosmpy">
  </a>
  <a href="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml">
    <img alt="CosmPy sanity checks and tests" src="https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg">
  </a>
  <a href="https://pypi.org/project/cosmpy/">
    <img alt="Download per Month" src="https://img.shields.io/pypi/dm/cosmpy">
  </a>
</p>

> We recently stopped using the `develop` branch for feature consolidation and renamed `master` to `main`. Please see the [Contribution Guides][contributing] for up-to-date instructions.

## 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
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

The full documentation can be found [here](https://docs.fetch.ai/CosmPy/).

## 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][coc]. By participating, you are expected to uphold this code.

### Contribution Guidelines

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

### Development Guidelines

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

### Issues, Questions and Discussions

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

## License

The CosmPy project is licensed under [Apache License 2.0][license].

[contributing]: https://github.com/fetchai/cosmpy/blob/main/CONTRIBUTING.md
[developing]: https://github.com/fetchai/cosmpy/blob/main/DEVELOPING.md
[coc]: https://github.com/fetchai/cosmpy/blob/main/CODE_OF_CONDUCT.md
[discussion]: https://github.com/fetchai/cosmpy/discussions
[issues]: https://github.com/fetchai/cosmpy/issues
[license]: https://github.com/fetchai/cosmpy/blob/main/LICENSE
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fetchai/cosmpy",
    "name": "cosmpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "CosmPy,Cosmos-SDK",
    "author": "Fetch.AI Limited",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/7f/4f/ad5c106fd62b9de31a7dc3a6fc46f11a482082a8baec3637d7dbd91f466e/cosmpy-0.9.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n    <b>CosmPy</b>\n</h1>\n\n<p align=\"center\">\nA python library for interacting with cosmos based blockchain networks\n</p>\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 href=\"https://github.com/fetchai/cosmpy/blob/main/LICENSE\">\n    <img alt=\"License\" src=\"https://img.shields.io/pypi/l/cosmpy\">\n  </a>\n  <br />\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/actions/workflows/workflow.yml\">\n    <img alt=\"CosmPy sanity checks and tests\" src=\"https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg\">\n  </a>\n  <a href=\"https://pypi.org/project/cosmpy/\">\n    <img alt=\"Download per Month\" src=\"https://img.shields.io/pypi/dm/cosmpy\">\n  </a>\n</p>\n\n> We recently stopped using the `develop` branch for feature consolidation and renamed `master` to `main`. Please see the [Contribution Guides][contributing] for up-to-date instructions.\n\n## To Install\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\nThe full documentation can be found [here](https://docs.fetch.ai/CosmPy/).\n\n## Examples\n\nUnder 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.\n\n## Contributing\n\nAll 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!\n\nRead below to learn how you can take part in the CosmPy project.\n\n### Code of Conduct\n\nPlease be sure to read and follow our [Code of Conduct][coc]. By participating, you are expected to uphold this code.\n\n### Contribution Guidelines\n\nRead our [contribution guidelines][contributing] to learn about our issue and pull request submission processes, coding rules, and more.\n\n### Development Guidelines\n\nRead our [development guidelines][developing] to learn about the development processes and workflows.\n\n### Issues, Questions and Discussions\n\nWe use [GitHub Issues][issues] for tracking requests and bugs, and [GitHub Discussions][discussion] for general questions and discussion.\n\n## License\n\nThe CosmPy project is licensed under [Apache License 2.0][license].\n\n[contributing]: https://github.com/fetchai/cosmpy/blob/main/CONTRIBUTING.md\n[developing]: https://github.com/fetchai/cosmpy/blob/main/DEVELOPING.md\n[coc]: https://github.com/fetchai/cosmpy/blob/main/CODE_OF_CONDUCT.md\n[discussion]: https://github.com/fetchai/cosmpy/discussions\n[issues]: https://github.com/fetchai/cosmpy/issues\n[license]: https://github.com/fetchai/cosmpy/blob/main/LICENSE",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "A library for interacting with the cosmos networks",
    "version": "0.9.1",
    "project_urls": {
        "Documentation": "https://docs.fetch.ai/CosmPy/",
        "Homepage": "https://github.com/fetchai/cosmpy",
        "Repository": "https://github.com/fetchai/cosmpy"
    },
    "split_keywords": [
        "cosmpy",
        "cosmos-sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52da37944c3c725b0a2e4da25e97961ae2ddbbf31ef26af8fc0835b9bc999ea7",
                "md5": "8cc13cce83520871997d23ba46e47ae7",
                "sha256": "bf1f332618ba4bbdf751706883372072e0e807abffe071b8a5ef8e2d27500804"
            },
            "downloads": -1,
            "filename": "cosmpy-0.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8cc13cce83520871997d23ba46e47ae7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 413111,
            "upload_time": "2023-08-08T15:56:36",
            "upload_time_iso_8601": "2023-08-08T15:56:36.078221Z",
            "url": "https://files.pythonhosted.org/packages/52/da/37944c3c725b0a2e4da25e97961ae2ddbbf31ef26af8fc0835b9bc999ea7/cosmpy-0.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7f4fad5c106fd62b9de31a7dc3a6fc46f11a482082a8baec3637d7dbd91f466e",
                "md5": "5834b790c7e259de5347851eaea2046c",
                "sha256": "ffb7940e19445964d8d58f7e5617f850a54deab9244f6a81b91846438b66ca00"
            },
            "downloads": -1,
            "filename": "cosmpy-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5834b790c7e259de5347851eaea2046c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 205722,
            "upload_time": "2023-08-08T15:56:37",
            "upload_time_iso_8601": "2023-08-08T15:56:37.548897Z",
            "url": "https://files.pythonhosted.org/packages/7f/4f/ad5c106fd62b9de31a7dc3a6fc46f11a482082a8baec3637d7dbd91f466e/cosmpy-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-08 15:56:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fetchai",
    "github_project": "cosmpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "cosmpy"
}
        
Elapsed time: 0.09473s