{ "info": { "author": "Chris (Someguy123) @ Privex", "author_email": "chris@privex.io", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8" ], "description": "# Privex's GOLOS Python Library\n\n[![Documentation Status](https://readthedocs.org/projects/golos-python/badge/?version=latest)](https://golos-python.readthedocs.io/en/latest/?badge=latest) \n[![Build Status](https://travis-ci.com/Privex/golos-python.svg?branch=master)](https://travis-ci.com/Privex/golos-python) \n[![Codecov](https://img.shields.io/codecov/c/github/Privex/golos-python)](https://codecov.io/gh/Privex/golos-python) \n[![PyPi Version](https://img.shields.io/pypi/v/golos-python.svg)](https://pypi.org/project/golos-python/)\n![License Button](https://img.shields.io/pypi/l/golos-python) \n![PyPI - Downloads](https://img.shields.io/pypi/dm/golos-python)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/golos-python) \n![GitHub last commit](https://img.shields.io/github/last-commit/Privex/golos-python)\n\nThis is a Python 3 library designed for GOLOS Classic (may work with other GOLOS forks) developed and published by\n[Privex Inc.](https://www.privex.io/)\n\nA large portion of the code was originally sourced from [@ksantoprotein](https://golos.io/@ksantoprotein), while we've\ncleaned it up, made some improvements, added unit tests, and packaged it into a PyPi package.\n\n```\n +===================================================+\n | \u00a9 2019 Privex Inc. |\n | https://www.privex.io |\n +===================================================+\n | |\n | Originally Developed by Privex Inc. |\n | |\n | Core Developer(s): |\n | |\n | (+) Chris (@someguy123) [Privex] |\n | |\n +===================================================+\n```\n\n# Install\n\n### Download and install from PyPi using pip (recommended)\n\n```sh\npip3 install golos-python\n```\n\n### (Alternative) Manual install from Git\n\n**Option 1 - Use pip to install straight from Github**\n\n```sh\npip3 install git+https://github.com/Privex/golos-python\n```\n\n**Option 2 - Clone and install manually**\n\n```bash\n# Clone the repository from Github\ngit clone https://github.com/Privex/golos-python\ncd golos-python\n\n# RECOMMENDED MANUAL INSTALL METHOD\n# Use pip to install the source code\npip3 install .\n\n# ALTERNATIVE MANUAL INSTALL METHOD\n# If you don't have pip, or have issues with installing using it, then you can use setuptools instead.\npython3 setup.py install\n```\n\n\n# License\n\nThis Python module was created by [Privex Inc. of Belize City](https://www.privex.io), and licensed under the X11/MIT License.\nSee the file [LICENSE](https://github.com/Privex/golos-python/blob/master/LICENSE) for the license text.\n\n**TL;DR; license:**\n\nWe offer no warranty. You can copy it, modify it, use it in projects with a different license, and even in commercial (paid for) software.\n\nThe most important rule is - you **MUST** keep the original license text visible (see `LICENSE`) in any copies.\n\n# Example uses\n\n```python\n\nfrom golos import Api\nfrom decimal import Decimal\n\ngolos = Api(nodes=['wss://golosd.privex.io', 'wss://api.golos.blckchnd.com/ws'])\n\n###\n# Get account information + balances\n###\n\naccounts = golos.get_accounts(['someguy123'])\nacc = accounts[0]\nprint(acc['owner'])\n# 'someguy123'\n\nprint('GOLOS:', acc['GOLOS'], 'GBG:', acc['GBG'])\n# GOLOS: 157560.231 GBG: 6420.916\n\n###\n# Get witness information\n###\n\nwitness = golos.get_witness_by_account(account='someguy123')\nprint(witness['url'])\n# 'https://golos.io/ru--delegaty/@someguy123/delegat-someguy123'\n\n###\n# Get account history\n###\n\nhistory = golos.get_account_history(account='someguy123')\n\nprint(history[0])\n# {'account': 'huso', 'witness': 'someguy123', 'approve': False, 'number': 127286, 'block': 30494335, \n# 'timestamp': '2019-09-17T14:20:21', 'type_op': 'account_witness_vote'}\n\n###\n# Transfer GOLOS / GBG to another account\n#\n# WARNING: To reduce the risk of rounding errors, pass the amount as either a string or a Decimal() - avoid float's!\n###\n\ntf = golos.transfer(\n to='ksantoprotein', amount='0.1', asset='GOLOS', from_account='someguy123',\n wif='5Jq19TeeVmGrBFnu32oxfxQMiipnSCKmwW7fZGUVLAoqsKJ9JwP', memo='this is an example transfer'\n)\n\nprint('TXID:', tf['id'], 'Block:', tf['block_num'])\n# TXID: c901c52daf57b60242d9d7be67f790e023cf2780 Block: 30895436\n\n```\n# Contributing\n\nWe're happy to accept pull requests, no matter how small.\n\nPlease make sure any changes you make meet these basic requirements:\n\n - Any code taken from other projects should be compatible with the MIT License\n - This is a new project, and as such, supporting Python versions prior to 3.4 is very low priority.\n - However, we're happy to accept PRs to improve compatibility with older versions of Python, as long as it doesn't:\n - drastically increase the complexity of the code\n - OR cause problems for those on newer versions of Python.\n\n**Legal Disclaimer for Contributions**\n\nNobody wants to read a long document filled with legal text, so we've summed up the important parts here.\n\nIf you contribute content that you've created/own to projects that are created/owned by Privex, such as code or \ndocumentation, then you might automatically grant us unrestricted usage of your content, regardless of the open source \nlicense that applies to our project.\n\nIf you don't want to grant us unlimited usage of your content, you should make sure to place your content\nin a separate file, making sure that the license of your content is clearly displayed at the start of the file \n(e.g. code comments), or inside of it's containing folder (e.g. a file named LICENSE). \n\nYou should let us know in your pull request or issue that you've included files which are licensed\nseparately, so that we can make sure there's no license conflicts that might stop us being able\nto accept your contribution.\n\nIf you'd rather read the whole legal text, it should be included as `privex_contribution_agreement.txt`.\n\n\n# Thanks for reading!\n\n**If this project has helped you, consider [grabbing a VPS or Dedicated Server from Privex](https://www.privex.io) -** \n**prices start at as little as US$8/mo (we take cryptocurrency!)**\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": "https://github.com/Privex/golos-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "golos-python", "package_url": "https://pypi.org/project/golos-python/", "platform": "", "project_url": "https://pypi.org/project/golos-python/", "project_urls": { "Homepage": "https://github.com/Privex/golos-python" }, "release_url": "https://pypi.org/project/golos-python/1.0.3/", "requires_dist": [ "websocket-client", "urllib3", "privex-helpers", "ecdsa (>=0.13)" ], "requires_python": "", "summary": "Golos Python API by Privex Inc", "version": "1.0.3" }, "last_serial": 5926115, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "c99394e693b51fea0c6c0629e10593c1", "sha256": "253b79100cd52ff17c41e7b9216620a0c6c7f977a48eecb37585197175041a0f" }, "downloads": -1, "filename": "golos_python-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c99394e693b51fea0c6c0629e10593c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 32388, "upload_time": "2019-10-01T13:00:03", "url": "https://files.pythonhosted.org/packages/c4/bd/ddf5b6e1b0285365604d938020f674f340a0063e13ba65ec85e9b5624a5e/golos_python-0.9.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b92c9418de74af0475be7e6d546ff81", "sha256": "f16f79e88d62cc465210807d806392e58cb5f948934ad297bd6957e302d0a92a" }, "downloads": -1, "filename": "golos-python-0.9.0.tar.gz", "has_sig": false, "md5_digest": "4b92c9418de74af0475be7e6d546ff81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29761, "upload_time": "2019-10-01T13:00:07", "url": "https://files.pythonhosted.org/packages/a5/b8/887bd10b4ff7340b2bbdd0a956187998e479f422bb7936edf7326a2b2698/golos-python-0.9.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "6b50a47eb0cc6221203ee12e359071b9", "sha256": "3ce3873419f9830663b6fe8bd4f6874d48cbd93a89396ca0e72d58bd4db3780c" }, "downloads": -1, "filename": "golos_python-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6b50a47eb0cc6221203ee12e359071b9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 37584, "upload_time": "2019-10-01T17:45:22", "url": "https://files.pythonhosted.org/packages/c7/30/603d2ae2cd796547a0f4361e03f956365f64a67a1f14d90c1c97e7647578/golos_python-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f2e09989a430aa43fd8f20dd7632851b", "sha256": "962c9cd0d4079f66565289ebe33f291e7d75c49a339f6a55e00e9754c802103b" }, "downloads": -1, "filename": "golos-python-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f2e09989a430aa43fd8f20dd7632851b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35055, "upload_time": "2019-10-01T17:45:24", "url": "https://files.pythonhosted.org/packages/4a/84/5e725e52b6aeeee6125638a800755bcf0c0ad8382050f0ad9055895d913e/golos-python-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "23a11607c5a22c7033ff9ee0464844ae", "sha256": "7b9010a50d495a7bef66907aa9c21777830d52a29ea0005ba1f093683ea79071" }, "downloads": -1, "filename": "golos_python-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "23a11607c5a22c7033ff9ee0464844ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 37958, "upload_time": "2019-10-01T17:45:42", "url": "https://files.pythonhosted.org/packages/68/ba/aea3648e1b3919244fef560dfc513ecafe4e595987677894e68266eb879a/golos_python-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2206b9d9727d9dda295ad9e9fc94496", "sha256": "dc4288b786654a261ac619fe414513f21b37cf856b91125ec3575de612495243" }, "downloads": -1, "filename": "golos-python-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b2206b9d9727d9dda295ad9e9fc94496", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35287, "upload_time": "2019-10-01T17:45:46", "url": "https://files.pythonhosted.org/packages/5b/80/ea26272565a8165d96c0430f48cad0a071efd462b2960c617ab50a5396eb/golos-python-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a931bfc8b895582049bd91d2ba4ff254", "sha256": "3dca50dd3517c6b09b7b7238b0eec5c3aa43bc9a77a3a7de2a316e04b3fe2d0b" }, "downloads": -1, "filename": "golos_python-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a931bfc8b895582049bd91d2ba4ff254", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 39973, "upload_time": "2019-10-01T20:51:17", "url": "https://files.pythonhosted.org/packages/00/bd/965d507fd18e6daba95cd8cd924707e2e406a740594ff0edd238585b0a5f/golos_python-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0e9a52c30ba96ecb8db545abbd26346", "sha256": "f7a9ce6cc9b09c56df9519dc57f3037a0a029e6a44355c3e568ed18ff3a38741" }, "downloads": -1, "filename": "golos-python-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f0e9a52c30ba96ecb8db545abbd26346", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37087, "upload_time": "2019-10-01T20:51:21", "url": "https://files.pythonhosted.org/packages/77/3b/23f87128812bfaae9762f5650e1446dfdf02163e0877a38bea7bbf5efe68/golos-python-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "12736d11b2cc3b556fdd4eb03f876a3b", "sha256": "d83032560a640c5c3cb9005bbf212d39473511882a12f5675ebbe19617c480a3" }, "downloads": -1, "filename": "golos_python-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "12736d11b2cc3b556fdd4eb03f876a3b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 41962, "upload_time": "2019-10-04T00:58:25", "url": "https://files.pythonhosted.org/packages/20/15/4988d6c70d6358d1131604734a8f6ceb028a2eee16043293c255c18641f3/golos_python-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0f7f30f8a87d4808b92ac8c0b4b4d91", "sha256": "03e3d3205ccd0d7e749070f755f9812016332960faf06f68e325de589b57dc25" }, "downloads": -1, "filename": "golos-python-1.0.3.tar.gz", "has_sig": false, "md5_digest": "b0f7f30f8a87d4808b92ac8c0b4b4d91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38967, "upload_time": "2019-10-04T00:58:32", "url": "https://files.pythonhosted.org/packages/4b/d5/d78da641e5ed7b8c9e31d7893bb4bf3ac3062083f85740b7ce465fd295b9/golos-python-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "12736d11b2cc3b556fdd4eb03f876a3b", "sha256": "d83032560a640c5c3cb9005bbf212d39473511882a12f5675ebbe19617c480a3" }, "downloads": -1, "filename": "golos_python-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "12736d11b2cc3b556fdd4eb03f876a3b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 41962, "upload_time": "2019-10-04T00:58:25", "url": "https://files.pythonhosted.org/packages/20/15/4988d6c70d6358d1131604734a8f6ceb028a2eee16043293c255c18641f3/golos_python-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0f7f30f8a87d4808b92ac8c0b4b4d91", "sha256": "03e3d3205ccd0d7e749070f755f9812016332960faf06f68e325de589b57dc25" }, "downloads": -1, "filename": "golos-python-1.0.3.tar.gz", "has_sig": false, "md5_digest": "b0f7f30f8a87d4808b92ac8c0b4b4d91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38967, "upload_time": "2019-10-04T00:58:32", "url": "https://files.pythonhosted.org/packages/4b/d5/d78da641e5ed7b8c9e31d7893bb4bf3ac3062083f85740b7ce465fd295b9/golos-python-1.0.3.tar.gz" } ] }