{ "info": { "author": "Maiganne", "author_email": "joe.maiganne@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Ontology Python SDK\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9078ef6584424280b8d6b75556976f94)](https://www.codacy.com/app/NashMiao/ontology-python-sdk?utm_source=github.com&utm_medium=referral&utm_content=ontio/ontology-python-sdk/&utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/9078ef6584424280b8d6b75556976f94)](https://www.codacy.com/app/NashMiao/ontology-python-sdk?utm_source=github.com&utm_medium=referral&utm_content=ontio/ontology-python-sdk/&utm_campaign=Badge_Coverage)\n[![Build Status](https://travis-ci.com/ontio/ontology-python-sdk.svg?branch=master)](https://travis-ci.com/ontio/ontology-python-sdk)\n[![pypi-w](https://img.shields.io/pypi/wheel/ontology-python-sdk.svg)](https://pypi.org/project/ontology-python-sdk/)\n[![docs](https://img.shields.io/badge/docs-yes-brightgreen.svg)](https://apidoc.ont.io/pythonsdk/#introduction)\n[![pypi-pyversions](https://img.shields.io/pypi/pyversions/ontology-python-sdk.svg)](https://pypi.org/project/ontology-python-sdk/)\n[![pypi-v](https://img.shields.io/pypi/v/ontology-python-sdk.svg)](https://pypi.org/project/ontology-python-sdk/)\n\n## Introduction\n\nThe Ontology official Python SDK is a comprehensive SDK which is based on `Python3.6`. Currently, it supports local wallet management, digital identity management, digital asset management, deployment and invoke for smart contract, the calling of OEP4, and communication with the Ontology blockchain. The future will also support more functions and applications.\n\n## Preparations\n\nInstallation requires a Python 3.7 or later environment.\n\n```bash\npip install ontology-python-sdk\n```\n\n## Interface\n\nRead more in the [ontology-python-sdk API document](https://apidoc.ont.io/pythonsdk/).\n\n### Network\n\nThis is an API set that allows you to interact with an Ontology nodes.\n\n| | Main Function |\n| :---: | :------------------------------------ |\n| 1 | get_version() |\n| 2 | get_balance() |\n| 3 | get_allowance() |\n| 4 | get_gas_price() |\n| 5 | get_network_id() |\n| 6 | get_node_count() |\n| 7 | get_block_count() |\n| 8 | get_block_height() |\n| 9 | get_block_by_hash() |\n| 10 | get_block_by_height() |\n| 11 | get_current_block_hash() |\n| 12 | get_block_hash_by_height() |\n| 13 | get_storage() |\n| 14 | get_smart_contract() |\n| 15 | get_smart_contract_event_by_tx_hash() |\n| 16 | get_smart_contract_event_by_height() |\n\n### Wallet\n\nThis is an API set that allows you to handle with wallet account in the form of `AccountData`.\n\n| | Main Function |\n| :---: | :--------------- |\n| 1 | add_account() |\n| 2 | remove_account() |\n\n**Note**: This package has **NOT** been audited and might potentially be unsafe. Take precautions to clear memory properly, store the private keys safely, and test transaction receiving and sending functionality properly before using in production!\n\n### Account\n\nThis is an API set that allows you to generate Ontology accounts and sign transactions and data.\n\n| | Main Function |\n| :---: | :--------------------------------- |\n| 1 | export_wif() |\n| 2 | get_signature_scheme() |\n| 3 | get_public_key_bytes() |\n| 4 | get_private_key_bytes() |\n| 5 | get_public_key_hex() |\n| 6 | get_public_key_bytes() |\n| 7 | get_private_key_from_wif() |\n| 8 | get_gcm_decoded_private_key() |\n| 9 | export_gcm_encrypted_private_key() |\n| 10 | get_address_hex() |\n| 11 | get_address_hex_reverse() |\n| 12 | get_address_base58() |\n| 13 | generate_signature() |\n\n**Note**: This package has **NOT** been audited and might potentially be unsafe. Take precautions to clear memory properly, store the private keys safely, and test transaction receiving and sending functionality properly before using in production!\n\n### Identity\n\nThis is an API set that allows you to generate **Ontology Digital Identity.**\n\n| | Main Function |\n| :---: | :----------------------------------- |\n| 1 | parse_ddo() |\n| 2 | send_get_ddo() |\n| 3 | new_get_ddo_transaction() |\n| 4 | new_add_recovery_transaction() |\n| 5 | new_add_attribute_transaction() |\n| 6 | new_add_public_key_transaction() |\n| 7 | new_remove_public_key_transaction() |\n| 8 | new_registry_ont_id_transaction() |\n| 9 | new_remove_attribute_transaction() |\n| 10 | send_add_recovery_transaction() |\n| 11 | send_add_attribute_transaction() |\n| 12 | send_add_public_key_transaction() |\n| 13 | send_registry_ont_id_transaction() |\n| 14 | remove_public_key() |\n| 15 | send_remove_attribute_transaction() |\n| 16 | send_add_public_key_by_recovery() |\n| 17 | sign_transaction() |\n| 18 | add_sign_transaction() |\n| 19 | add_multi_sign_transaction() |\n| 20 | get_merkle_proof() |\n| 21 | get_transaction_by_tx_hash() |\n| 22 | send_raw_transaction() |\n| 23 | send_raw_transaction_pre_exec() |\n\n**Note**: This package has **NOT** been audited and might potentially be unsafe. Take precautions to clear memory properly, store the private keys safely, and test transaction receiving and sending functionality properly before using in production!\n\n### AccountManager\n\nThis is an API set that allows you to manage your multiple account in an wallet file.\n\n| | Main Function |\n| :---: | :-------------------------------- |\n| 1 | import_account() |\n| 2 | create_account() |\n| 3 | create_account_from_private_key() |\n| 4 | get_account() |\n| 5 | get_accounts() |\n| 6 | get_default_account() |\n| 7 | get_default_account_address() |\n| 8 | set_default_account_by_index() |\n| 9 | set_default_account_by_address() |\n\n**Note**: This package has **NOT** been audited and might potentially be unsafe. Take precautions to clear memory properly, store the private keys safely, and test transaction receiving and sending functionality properly before using in production!\n\n### IdentityManager\n\nThis is an API set that allows you to manage your multiple identity in an wallet file.\n\n| | Main Function |\n| :---: | :--------------------------------- |\n| 1 | create_identity() |\n| 2 | import_identity() |\n| 3 | create_identity_from_private_key() |\n\n**Note**: This package has **NOT** been audited and might potentially be unsafe. Take precautions to clear memory properly, store the private keys safely, and test transaction receiving and sending functionality properly before using in production!\n\n### Asset\n\nThe `Asset` package allows you to interact with Ontology Native Digital Asset(ONT, ONG) easily.\n\n| | Main Function |\n| :---: | :------------------------------ |\n| 1 | query_name() |\n| 2 | query_symbol() |\n| 3 | query_balance() |\n| 4 | query_decimals() |\n| 5 | query_allowance() |\n| 6 | query_unbound_ong() |\n| 7 | get_asset_address() |\n| 8 | new_approve_transaction() |\n| 9 | new_transfer_transaction() |\n| 10 | new_transfer_from_transaction() |\n| 11 | new_withdraw_ong_transaction() |\n| 12 | send_transfer() |\n| 13 | send_approve() |\n| 14 | send_transfer_from() |\n| 15 | send_withdraw_ong_transaction() |\n\n### ABI\n\nThe `ABI` package allows you to interact with a deployed smart contract easily.\n\n| | Main Function |\n| :---: | :----------------- |\n| 1 | get_function]() |\n| 2 | get_parameter() |\n| 3 | set_params_value() |\n\n### OEP4\n\nThe `OEP4` package allows you to interact with an deployed Ontology OEP4 smart contract easily.\n\n| | Main Function |\n| :---: | :----------------- |\n| 1 | init() |\n| 2 | get_name() |\n| 3 | get_symbol() |\n| 4 | get_decimal() |\n| 5 | get_total_supply() |\n| 6 | approve() |\n| 7 | allowance() |\n| 8 | balance_of() |\n| 9 | transfer() |\n| 10 | transfer_multi() |\n| 11 | transfer_from() |\n\n**Note**: This package has **NOT** been audited and might potentially be unsafe. Take precautions to clear memory properly, store the private keys safely, and test transaction receiving and sending functionality properly before using in production!\n\n### Utils\n\nThe `Utils` package provides utility functions for `Ontology Dapps` and other `Ontology-Python-Sdk` packages.\n\n| | Main Function |\n| :---: | :------------------ |\n| 1 | get_random_hex_str() |\n| 2 | get_asset_address() |\n| 3 | get_random_bytes() |\n\n## Site\n\n* https://ont.io/\n\n## License\n\nThe Ontology library (i.e. all code outside of the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the License file.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "GNU Lesser General Public License v3 (LGPLv3)", "maintainer": "maiganne", "maintainer_email": "joe.maiganne@gmail.com", "name": "pyontio", "package_url": "https://pypi.org/project/pyontio/", "platform": "all", "project_url": "https://pypi.org/project/pyontio/", "project_urls": null, "release_url": "https://pypi.org/project/pyontio/0.0.7/", "requires_dist": [ "aiohttp (>=3.5.4)", "base58 (>=1.0.3)", "cryptography (>=2.6.1)", "ecdsa (>=0.13)", "mnemonic (>=0.18)", "pycryptodomex (>=3.7)", "requests (>=2.21.0)", "websockets (>=7.0)" ], "requires_python": ">=3.6", "summary": "Comprehensive Python library for the Ontology BlockChain.", "version": "0.0.7" }, "last_serial": 5281528, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "caeb2b367cb9224d13a25bd0055f386c", "sha256": "81d367993867705ba008b2bd6f2d3aa665c0e649c3f8497265ab03101743ddc9" }, "downloads": -1, "filename": "pyontio-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "caeb2b367cb9224d13a25bd0055f386c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 134760, "upload_time": "2019-05-13T15:51:50", "url": "https://files.pythonhosted.org/packages/90/93/ca24a1627c42284f1506aae441bfd0581f335e8a372092c75e3337907258/pyontio-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ee9046af5c009b03ae0a35813c1aab2", "sha256": "6d401026dd5ca07ae74a50e1f8945a2d2fcab4e91fd0c82e9c8239de454f5969" }, "downloads": -1, "filename": "pyontio-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1ee9046af5c009b03ae0a35813c1aab2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 62362, "upload_time": "2019-05-13T15:51:53", "url": "https://files.pythonhosted.org/packages/01/33/8257156bc5fd85520db1ebbc0f4cbad2f65c03a948ec8e7ca5f69173f55c/pyontio-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ce7aea68ee2676c1ad9eb133a4d0f216", "sha256": "4a924dc9c917cccb0d48581dc4e771e16eb1e7dea8536d9669ba84519abac3f4" }, "downloads": -1, "filename": "pyontio-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ce7aea68ee2676c1ad9eb133a4d0f216", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 137032, "upload_time": "2019-05-13T16:29:03", "url": "https://files.pythonhosted.org/packages/8c/34/ccd18f0fed4a6df66d03a8c699feebcd96f86ffd295378558276a2b121e4/pyontio-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1516c73ee46c64837b0aaddeebd9a0da", "sha256": "7a41b5e6ae96d86249fa92f142b955d6811bcf193dd1c218ca4b4ec1e1f6d2c8" }, "downloads": -1, "filename": "pyontio-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1516c73ee46c64837b0aaddeebd9a0da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 66753, "upload_time": "2019-05-13T16:29:06", "url": "https://files.pythonhosted.org/packages/71/fc/574340f80789532d7b3c9aa781ed0c21c451bdc31d58225100ebdd616d80/pyontio-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1e66dec6a23a6975c209bf9cae979804", "sha256": "56293d173f043261728de5960906d4433cbfc4047b3cd78fccb5b573ad25e91a" }, "downloads": -1, "filename": "pyontio-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1e66dec6a23a6975c209bf9cae979804", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 163642, "upload_time": "2019-05-14T02:07:19", "url": "https://files.pythonhosted.org/packages/98/cf/3dccd4e97e2e1826663b7b512d24a46e065e43dd30785758310e2ecd312a/pyontio-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72118f45bca142b7e1c38c80d68a3f08", "sha256": "e87b4df922468118179ad7afe22295c5d4a35957c7436219084fe4f104f1d0d4" }, "downloads": -1, "filename": "pyontio-0.0.3.tar.gz", "has_sig": false, "md5_digest": "72118f45bca142b7e1c38c80d68a3f08", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 62781, "upload_time": "2019-05-14T02:07:22", "url": "https://files.pythonhosted.org/packages/5b/2c/c1072e7e2cf4dc4467eec14641d278f86f84da777d2183eda7ea0b3b6c61/pyontio-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9a8b503df013101694a39bbefe87f5ff", "sha256": "bf56588672338cd404991689818f47e420bf617ef1cd79ef71d665bd3161fc99" }, "downloads": -1, "filename": "pyontio-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "9a8b503df013101694a39bbefe87f5ff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 163223, "upload_time": "2019-05-17T09:21:25", "url": "https://files.pythonhosted.org/packages/12/95/2e3d3b289fbd422d62eea0ab43dc679092d136fd7dcad2fd23e8730e69bd/pyontio-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78eafdaffcaa14a441febe878e4d17d7", "sha256": "73c13550c714c0cf5c79ca66904dc98f9ade5ddd19e9edb5eb3f7df6150125ba" }, "downloads": -1, "filename": "pyontio-0.0.4.tar.gz", "has_sig": false, "md5_digest": "78eafdaffcaa14a441febe878e4d17d7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 62412, "upload_time": "2019-05-17T09:21:27", "url": "https://files.pythonhosted.org/packages/a6/5c/dda9ed4a01b4e9d0501366a3e51248f945c81c5e5f1a83e5067ce6e66772/pyontio-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7be1485d62c3d0be6b0781ef377ebcb3", "sha256": "e2765e2eefed06e5438cc6b79daf3a826f386c534bf3b2b3dc0f514795611e9f" }, "downloads": -1, "filename": "pyontio-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7be1485d62c3d0be6b0781ef377ebcb3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 163225, "upload_time": "2019-05-17T09:38:48", "url": "https://files.pythonhosted.org/packages/b6/c7/8d70420cb68972177c1db4ea9e6834ab5a06bab3cbcac694e283f20ea32c/pyontio-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "639ae18e35bdbcdf4d4ffc0708ec55a2", "sha256": "02da21bb98b91e47f5ce22e0f387994c3e0a721939a9b487aaa187df0638cb98" }, "downloads": -1, "filename": "pyontio-0.0.5.tar.gz", "has_sig": false, "md5_digest": "639ae18e35bdbcdf4d4ffc0708ec55a2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 62404, "upload_time": "2019-05-17T09:38:50", "url": "https://files.pythonhosted.org/packages/81/f9/b7c186e1df7829cd8213f28622cad18e41a93b7e4d0efb2dc8ec8b0bed3d/pyontio-0.0.5.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "29ccc2f270ca98fbb7f6070d66ef06ad", "sha256": "97f5398b7cf7f150defa11cba483ce24e63c8354feb8906712b3ad094d8bb8ea" }, "downloads": -1, "filename": "pyontio-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "29ccc2f270ca98fbb7f6070d66ef06ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 162609, "upload_time": "2019-05-17T09:56:14", "url": "https://files.pythonhosted.org/packages/95/89/91d8f45e2c164a02c5bda4a70988b543c79c2fbf6b04592df09f6963580b/pyontio-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f4548938afca94b7f886ec05530dc2d", "sha256": "e6c9f9bb274530136dbb455fe1bdddf4cfceed45de5884d2ef46d11927e5ce21" }, "downloads": -1, "filename": "pyontio-0.0.7.tar.gz", "has_sig": false, "md5_digest": "7f4548938afca94b7f886ec05530dc2d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 62410, "upload_time": "2019-05-17T09:56:15", "url": "https://files.pythonhosted.org/packages/bf/98/919d29c9b78f8a930153a9567eca2c33d7dd1022de5ba01fa5eea2d6ec7e/pyontio-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29ccc2f270ca98fbb7f6070d66ef06ad", "sha256": "97f5398b7cf7f150defa11cba483ce24e63c8354feb8906712b3ad094d8bb8ea" }, "downloads": -1, "filename": "pyontio-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "29ccc2f270ca98fbb7f6070d66ef06ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 162609, "upload_time": "2019-05-17T09:56:14", "url": "https://files.pythonhosted.org/packages/95/89/91d8f45e2c164a02c5bda4a70988b543c79c2fbf6b04592df09f6963580b/pyontio-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f4548938afca94b7f886ec05530dc2d", "sha256": "e6c9f9bb274530136dbb455fe1bdddf4cfceed45de5884d2ef46d11927e5ce21" }, "downloads": -1, "filename": "pyontio-0.0.7.tar.gz", "has_sig": false, "md5_digest": "7f4548938afca94b7f886ec05530dc2d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 62410, "upload_time": "2019-05-17T09:56:15", "url": "https://files.pythonhosted.org/packages/bf/98/919d29c9b78f8a930153a9567eca2c33d7dd1022de5ba01fa5eea2d6ec7e/pyontio-0.0.7.tar.gz" } ] }