{ "info": { "author": "Kaze Blockchain", "author_email": "development@Kazesolutions.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://kaze.solutions/content/static/img/general/logo.svg\n :alt: kaze logo\n\nLibrary for working with KAZE related data in Python, without database dependencies.\n----------\n\n.. image:: https://travis-ci.org/KAZEBLOCKCHAIN/kaze-python-core.svg?branch=master\n :target: https://travis-ci.org/KAZEBLOCKCHAIN/kaze-python-core\n\n.. image:: https://coveralls.io/repos/github/KAZEBLOCKCHAIN/kaze-python-core/badge.svg\n :target: https://coveralls.io/github/KAZEBLOCKCHAIN/kaze-python-core\n\n.. image:: https://readthedocs.org/projects/kaze-python-core/badge/?version=latest\n :target: https://kaze-python-core.readthedocs.io/\n :alt: ReadTheDocs\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg\n :target: https://github.com/KAZEBLOCKCHAIN/kaze-python-core/blob/master/LICENSE.md\n :alt: MIT\n\n* Datatypes like ``UInt160``, ``KeyPair``, ``BigInteger`` and basic string to address and address to ``UInt160`` methods\n* Includes a useful cli-tool ``np-utils`` (see help with ``np-utils -h``)\n* Compatible with Python 3.5+\n* Used by `kaze-python `_\n* https://pypi.python.org/pypi/kazecore\n\n``np-utils`` examples:\n\n.. code-block:: console\n\n $ np-utils -h\n usage: np-utils [-h] [--version] [--address-to-scripthash address]\n [--scripthash-to-address scripthash] [--create-wallet]\n\n optional arguments:\n -h, --help show this help message and exit\n --version show program's version number and exit\n --address-to-scripthash address\n Convert an address to scripthash\n --scripthash-to-address scripthash\n Convert scripthash to address\n --create-wallet Create a wallet\n\n $ np-utils --create-wallet\n {\n \"private_key\": \"KwJqCbjsmGUCqbkp83Nxi9MJ9mA7F8EN4tebJVWjYZBEoWCNxCaF\",\n \"address\": \"KHVvg26CNz1vxteJfeHy4R8P4VN8SydCM6\"\n }\n\n $ np-utils --address-to-scripthash AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y\n Scripthash big endian: 0xe9eed8dc39332032dc22e5d6e86332c50327ba23\n Scripthash little endian: 23ba2703c53263e8d6e522dc32203339dcd8eee9\n Scripthash kaze-python format: b'#\\xba\\'\\x03\\xc52c\\xe8\\xd6\\xe5\"\\xdc2 39\\xdc\\xd8\\xee\\xe9'\n\n $ np-utils --scripthash-to-address 0xe9eed8dc39332032dc22e5d6e86332c50327ba23\n KHVvg26CNz1vxteJfeHy4R8P4VN8SydCM6\n\n $ np-utils --scripthash-to-address 23ba2703c53263e8d6e522dc32203339dcd8eee9\n Detected little endian scripthash. Converting to big endian for internal use.\n Big endian scripthash: 0xe9eed8dc39332032dc22e5d6e86332c50327ba23\n KHVvg26CNz1vxteJfeHy4R8P4VN8SydCM6\n\n\nGetting started\n---------------\n\nYou need Python 3.5 or higher!\n\nYou can install `kazecore` from PyPI with ``easy_install`` or ``pip``:\n\n.. code-block:: console\n\n $ pip install -U kazecore\n\nAlternatively, if you want to work on the code, clone this repository and setup your venv:\n\n* Clone the repo: ``git clone https://github.com/KAZEBLOCKCHAIN/kaze-python-core.git``\n* Create a Python 3 virtual environment and activate it:\n\n.. code-block:: console\n\n $ python3 -m venv venv\n $ source venv/bin/activate\n\n* Then install the requirements:\n\n.. code-block:: console\n\n $ pip install -e .\n $ pip install -r requirements_dev.txt\n\n\nUseful commands\n^^^^^^^^^^^^^^^\n\n.. code-block:: console\n\n $ make lint\n $ make test\n $ make coverage\n\n\nRelease checklist\n^^^^^^^^^^^^^^^^^\n\n(Only for admins)\n\nReleasing a new version on GitHub automatically uploads this release to PyPI.\nThis is a checklist for releasing a new version:\n\n.. code-block:: console\n\n # Only in case you want to increase the version number again (eg. scope changed from patch to minor):\n bumpversion --no-tag minor|major\n\n # Update ``HISTORY.rst`` with the new version number and the changes and commit this\n vi HISTORY.rst\n git commit -m \"Updated HISTORY.rst\" HISTORY.rst\n\n # Set the release version number and create the tag\n bumpversion release\n\n # Increase patch number and add `-dev`\n bumpversion --no-tag patch\n\n # Push to GitHub, which also updates the PyPI package\n git push && git push --tags\n\n\n=======\nHistory\n=======\n\n0.5.4-dev in progress\n---------------------\n* ...\n\n\n0.5.3 2019-10-02\n----------------\n* Updated the dependencies\n\n\n0.5.2 (2018-08-28)\n------------------\n* `Fixed8.TryParse` fix for zero\n* Updated dependencies\n\n\n0.5.1 (2018-08-23)\n------------------\n* Change BigInteger divisor operation to use floordiv rather than truediv\n\n\n0.5.0 (2018-08-21)\n------------------\n* `np-utils --address-to-scripthash` outputs now little-endian and big-endian scripthashes\n* `np-utils --scripthash-to-address` detects input endianness and converts accordingly\n* Updated dependencies\n\n\n0.4.11 (2018-07-05)\n-------------------\n* Added ``Size()`` method to `ECPoint` and `Fixed8` class.\n\n\n0.4.10 (2018-06-25)\n-------------------\n* Updated requirements: pycryptome\n\n\n0.4.9 (2018-06-08)\n------------------\n* Updated dependencies, especially base58\n\n\n0.4.8 (2018-05-31)\n----------------------------\n* Create wallets with ``np-utils --create-wallet``\n\n\n0.4.7 (2018-05-30)\n------------------\n* ``BigInteger(0)`` now is ``b'\\x00'`` (`PR #50 `_)\n\n\n0.4.6 (2018-04-30)\n------------------\n* make unhexlify in Crypto.VerifySignature optional (`PR #48 `_)\n\n\n0.4.2 (2018-04-26)\n------------------\n* ``np-utils`` now supports ``--scripthash-to-address`` (thx @belane)\n\n\n0.4.1 (2018-04-26)\n-----------------------------\n* ``np-utils`` cli tool (see ``cli.py``, `PR #40 `_)\n* alter initialization of Crypto signature curve\n\n\n0.3.10 (2018-03-21)\n----------------------------\n* Fix formatting of ``ToKazeJsonString()`` which was cutting off trailing zeroes from integers.\n\n\n0.3.8 (2018-03-14)\n------------------\n* Fix travis deploy to be compatible with recent kaze-python changes\n* Update scrypt and logzero dependency versions\n\n\n0.3.6 (2018-02-26)\n------------------\n* Enabled Python >= 3.4 in setup.py\n\n\n0.3.5 (2018-02-15)\n------------------\n* Bugfix: Dont unhex when writing var bytes (`PR #36 `_)\n\n\n0.3.4 (2018-01-25)\n------------------\n* Added ``ParseString`` method to UInt160/UInt256 (`PR #35 `_)\n\n\n0.3.3 (2018-01-25)\n------------------\n* Added ``Fixed8.ToJsonString()`` (`PR #33 `_)\n\n\n0.3.2 (2018-01-23)\n------------------\n* Added UInt ``To0xString`` method\n\n\n0.3.1 (2018-01-09)\n------------------\n* Documentation update\n* Moved the ``cryptography`` dependency to ``requirements_dev.txt``\n\n\n0.3.0 (2018-01-09)\n------------------\n* Added ``kaze.Cryptography`` and ``KeyPair``\n* Changed signature of ``kazecore.Cryptography.Crypto.Sign()`` to remove unused ``public_key`` argument\n* Removed redundant ``kazecore.Cryptography.Helper.hash_to_wallet_address()`` function, use ``kazecore.Cryptography.Helper.scripthash_to_address()`` instead.\n* Removed unused ``kazecore.Cryptography.Helper`` functions: ``random_string``, ``bytes_to_hex_string``, ``bin_sha256``, ``sha256``, ``random_key``.\n\n\n0.2.4 + 0.2.5 (2018-01-03)\n--------------------------\n* Bugfix for deploying from Travis to PyPI/kazecore\n\n\n0.2.3 (2018-01-03)\n------------------\n* Bugfix for BinaryWriter (`PR #13 `_)\n\n\n0.2.1 (2018-01-02)\n------------------\n* Added UInt*, Fixed8 and kaze.IO.Binary* (`PR #9 `_)\n\n\n0.1.1 - 0.1.2 (2017-12-30)\n--------------------------\n* Testing of releases on PyPI with Travis CI.\n\n\n0.1.0 (2017-12-28)\n------------------\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/KAZEBLOCKCHAIN/kaze-python-core", "keywords": "kazecore,kaze,python,node", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "kazecore", "package_url": "https://pypi.org/project/kazecore/", "platform": "", "project_url": "https://pypi.org/project/kazecore/", "project_urls": { "Homepage": "https://github.com/KAZEBLOCKCHAIN/kaze-python-core" }, "release_url": "https://pypi.org/project/kazecore/0.6.8/", "requires_dist": [ "base58 (==1.0.2)", "bitcoin (==1.1.42)", "ecdsa (==0.13)", "logzero (==1.5.0)", "mpmath (==1.0.0)", "pycryptodome (==3.6.6)", "scrypt (==0.8.6)" ], "requires_python": ">=3.4", "summary": "Core functionality of kaze-python", "version": "0.6.8" }, "last_serial": 4339862, "releases": { "0.6.1": [ { "comment_text": "", "digests": { "md5": "0917405c1c141b83ec7294567dd37a28", "sha256": "85adb8ab594b0ce3f7671ff563aa37d5ee62a585622797b0692d5ba56bdbbc6f" }, "downloads": -1, "filename": "kazecore-0.6.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0917405c1c141b83ec7294567dd37a28", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.4", "size": 28364, "upload_time": "2018-08-26T20:14:05", "url": "https://files.pythonhosted.org/packages/24/77/e408832d085e9fc07405cfc9c52277bfd2a29dbb67e121d0ab89b12f9711/kazecore-0.6.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "180644aaecdd4065fcb722e29b89c1d5", "sha256": "a683a940e33150df5776e0c4607558023fe6f146cb0d103947be6c629ec9cfa5" }, "downloads": -1, "filename": "kazecore-0.6.1.tar.gz", "has_sig": false, "md5_digest": "180644aaecdd4065fcb722e29b89c1d5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 41637, "upload_time": "2018-08-26T20:14:07", "url": "https://files.pythonhosted.org/packages/0f/9f/243f36edc14b409ccd72dfa09423698fe84bdfd5162d375b96ac3ce790d4/kazecore-0.6.1.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "913aa6cd79077ed9329f6dec4e7dd1e3", "sha256": "9df93f79bf72e57d3e94d443d0c18c754f8f6c96569f3453754e9153dabcd79d" }, "downloads": -1, "filename": "kazecore-0.6.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "913aa6cd79077ed9329f6dec4e7dd1e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.4", "size": 29351, "upload_time": "2018-10-04T10:27:37", "url": "https://files.pythonhosted.org/packages/27/88/dba0cee0950bd7d62c148cc351e061a9640a516dc7447d800e4f07da80a1/kazecore-0.6.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9293044ae0cc635554902497af653700", "sha256": "85895d8fb8fac0790b9eaf89bbed74d52eed0fff3d5601b7b7cb47ecebe7acae" }, "downloads": -1, "filename": "kazecore-0.6.4.tar.gz", "has_sig": false, "md5_digest": "9293044ae0cc635554902497af653700", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 46119, "upload_time": "2018-10-04T10:27:39", "url": "https://files.pythonhosted.org/packages/53/42/11752e609e2c2e9b3271a309f86a2735be1400261d27d6e425e35ab5672d/kazecore-0.6.4.tar.gz" } ], "0.6.8": [ { "comment_text": "", "digests": { "md5": "07637806716e4f4140efb2c3791c2f9f", "sha256": "be045eb9009f11188bb514c4fd1b2e07da2f0667217501a2a13698af8547b165" }, "downloads": -1, "filename": "kazecore-0.6.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07637806716e4f4140efb2c3791c2f9f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.4", "size": 29348, "upload_time": "2018-10-04T11:15:47", "url": "https://files.pythonhosted.org/packages/a2/42/c6b43217e3f20abe1908f4a0d481fc13b65953b850a38d0205c56c54298e/kazecore-0.6.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b83049240c2384400d7e3f1076841af", "sha256": "5fb2707253ff3591aad220c9de01c295462b921caef732de430b54863c1c6b48" }, "downloads": -1, "filename": "kazecore-0.6.8.tar.gz", "has_sig": false, "md5_digest": "8b83049240c2384400d7e3f1076841af", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 34502, "upload_time": "2018-10-04T11:15:48", "url": "https://files.pythonhosted.org/packages/5e/18/c5bc004a6468c58616cd9b53e3ecdff4ff24caa16f7a2ada81a52c90d485/kazecore-0.6.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07637806716e4f4140efb2c3791c2f9f", "sha256": "be045eb9009f11188bb514c4fd1b2e07da2f0667217501a2a13698af8547b165" }, "downloads": -1, "filename": "kazecore-0.6.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07637806716e4f4140efb2c3791c2f9f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.4", "size": 29348, "upload_time": "2018-10-04T11:15:47", "url": "https://files.pythonhosted.org/packages/a2/42/c6b43217e3f20abe1908f4a0d481fc13b65953b850a38d0205c56c54298e/kazecore-0.6.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b83049240c2384400d7e3f1076841af", "sha256": "5fb2707253ff3591aad220c9de01c295462b921caef732de430b54863c1c6b48" }, "downloads": -1, "filename": "kazecore-0.6.8.tar.gz", "has_sig": false, "md5_digest": "8b83049240c2384400d7e3f1076841af", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 34502, "upload_time": "2018-10-04T11:15:48", "url": "https://files.pythonhosted.org/packages/5e/18/c5bc004a6468c58616cd9b53e3ecdff4ff24caa16f7a2ada81a52c90d485/kazecore-0.6.8.tar.gz" } ] }