ain-py


Nameain-py JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/ainblockchain/ain-py
SummaryAI Network Client Library for Python3
upload_time2024-07-11 08:26:54
maintainerNone
docs_urlNone
authorAIN Dev Team
requires_python>=3.7
licenseMPL license
keywords ain ainetwork ainblockchain api
VCS
bugtrack_url
requirements typing-extensions pycryptodome coincurve aiohttp jsonrpcclient mnemonic bip32 simplejson snapshottest sphinx-rtd-theme readthedocs-sphinx-ext
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ain-py

A python version of [ain-js](https://www.npmjs.com/package/@ainblockchain/ain-js).


## Installation
```
pip install ain-py
```


## Examples
```python
from ain.ain import Ain
import asyncio

ain = Ain('https://mainnet-api.ainetwork.ai/')

async def process():
    accounts = await ain.db.ref('/accounts').getValue()
    print(accounts)

loop = asyncio.get_event_loop()
loop.run_until_complete(process())
```


## Test How-To
1. Clone AIN Blockchain and install
```
git clone git@github.com:ainblockchain/ain-blockchain.git
yarn install
```

2. Start blockchain locally
```
bash start_local_blockchain.sh
```

3. Run tests
```
tox
```


## License

This project is licensed under the MIT License


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ainblockchain/ain-py",
    "name": "ain-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "ain, ainetwork, ainblockchain, API",
    "author": "AIN Dev Team",
    "author_email": "dev@ainetwork.ai",
    "download_url": "https://files.pythonhosted.org/packages/5d/69/07f76f7f685278350cb835b06d986bfd96057f29f984dcba60dfc4e67aff/ain_py-1.3.0.tar.gz",
    "platform": null,
    "description": "# ain-py\n\nA python version of [ain-js](https://www.npmjs.com/package/@ainblockchain/ain-js).\n\n\n## Installation\n```\npip install ain-py\n```\n\n\n## Examples\n```python\nfrom ain.ain import Ain\nimport asyncio\n\nain = Ain('https://mainnet-api.ainetwork.ai/')\n\nasync def process():\n    accounts = await ain.db.ref('/accounts').getValue()\n    print(accounts)\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(process())\n```\n\n\n## Test How-To\n1. Clone AIN Blockchain and install\n```\ngit clone git@github.com:ainblockchain/ain-blockchain.git\nyarn install\n```\n\n2. Start blockchain locally\n```\nbash start_local_blockchain.sh\n```\n\n3. Run tests\n```\ntox\n```\n\n\n## License\n\nThis project is licensed under the MIT License\n\n",
    "bugtrack_url": null,
    "license": "MPL license",
    "summary": "AI Network Client Library for Python3",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/ainblockchain/ain-py"
    },
    "split_keywords": [
        "ain",
        " ainetwork",
        " ainblockchain",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f2c3a3d4773eda5227cb70cc62fc839941b6a04a2dc07999874321bcb7eeb75",
                "md5": "f7d5884ee93bd5d2376c117f031c317d",
                "sha256": "eb86f053c2e38319ee141aee538dc781015070ce65d3201c16c2af75b90df964"
            },
            "downloads": -1,
            "filename": "ain_py-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f7d5884ee93bd5d2376c117f031c317d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 28871,
            "upload_time": "2024-07-11T08:26:52",
            "upload_time_iso_8601": "2024-07-11T08:26:52.927343Z",
            "url": "https://files.pythonhosted.org/packages/5f/2c/3a3d4773eda5227cb70cc62fc839941b6a04a2dc07999874321bcb7eeb75/ain_py-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d6907f76f7f685278350cb835b06d986bfd96057f29f984dcba60dfc4e67aff",
                "md5": "f90ac7c7371deb1a13492c040ca289c5",
                "sha256": "63185bcaf6c52f05f8f1d5536c7f2e34ebc7203ca1fc21f754e10c7a2f45ac31"
            },
            "downloads": -1,
            "filename": "ain_py-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f90ac7c7371deb1a13492c040ca289c5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 33918,
            "upload_time": "2024-07-11T08:26:54",
            "upload_time_iso_8601": "2024-07-11T08:26:54.890366Z",
            "url": "https://files.pythonhosted.org/packages/5d/69/07f76f7f685278350cb835b06d986bfd96057f29f984dcba60dfc4e67aff/ain_py-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-11 08:26:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ainblockchain",
    "github_project": "ain-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "typing-extensions",
            "specs": []
        },
        {
            "name": "pycryptodome",
            "specs": [
                [
                    "==",
                    "3.18.0"
                ]
            ]
        },
        {
            "name": "coincurve",
            "specs": [
                [
                    "==",
                    "18.0.0"
                ]
            ]
        },
        {
            "name": "aiohttp",
            "specs": [
                [
                    "==",
                    "3.8.5"
                ]
            ]
        },
        {
            "name": "jsonrpcclient",
            "specs": [
                [
                    "==",
                    "4.0.3"
                ]
            ]
        },
        {
            "name": "mnemonic",
            "specs": [
                [
                    "==",
                    "0.20"
                ]
            ]
        },
        {
            "name": "bip32",
            "specs": [
                [
                    "==",
                    "3.4"
                ]
            ]
        },
        {
            "name": "simplejson",
            "specs": [
                [
                    "==",
                    "3.19.2"
                ]
            ]
        },
        {
            "name": "snapshottest",
            "specs": []
        },
        {
            "name": "sphinx-rtd-theme",
            "specs": []
        },
        {
            "name": "readthedocs-sphinx-ext",
            "specs": []
        }
    ],
    "tox": true,
    "lcname": "ain-py"
}
        
Elapsed time: 0.70572s