{ "info": { "author": "ovsoil", "author_email": "huaxin.yu@atmatrix.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pyatn-client\n\n**pyatn-client is Python ATN client, used to call DBot's API easily through payment channel**\n\n\n## Install\n\nPython ATN client depends on python3.6+, simply use pip3 to install, See [Installation](install.md) for detail.\n\n```bash\npip3 install pyatn-client\n```\n\n## Usage\n\n1. Use command `pyatn` to create an account and get some ATN if you don't have an account before.\n\n```bash\npyatn create-account\npyatn get-atn --address
\n```\n\n2. There are various DBots which provide AI API on our [AI Market](https://market-test.atnio.net). Here is an example, use [AI poetry](https://market-test.atnio.net/detail/0xfd4f504f373f0af5ff36d9fbe1050e6300699230) to write poetry.\n\n```python\nfrom pyatn_client import Atn\n\nDBOTADDRESS = '0xfd4F504F373f0af5Ff36D9fbe1050E6300699230' # address of the DBot you want to test, use 'AI poetry' as example\nURI = '/reg' # uri of the DBot's API endpoint which you want to call\nMETHOD = 'POST' # method of the DBot's API endpoint which you want to call\nrequests_kwargs = {\n \"data\": {\n \"theme\": \"\u4e2d\u79cb\u6708\u66f4\u5706\"\n }\n}\n\n# init Atn\natn = Atn(\n pk_file='