{ "info": { "author": "Michal Orsak", "author_email": "michal.o.socials@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", "Topic :: System :: Emulators", "Topic :: System :: Hardware", "Topic :: Utilities" ], "description": "# pyMathBitPrecise\n[![Build Status](https://travis-ci.org/Nic30/pyMathBitPrecise.svg?branch=master)](https://travis-ci.org/Nic30/pyMathBitPrecise)\n[![Coverage Status](https://coveralls.io/repos/github/Nic30/pyMathBitPrecise/badge.svg?branch=master)](https://coveralls.io/github/Nic30/pyMathBitPrecise?branch=master)\n[![PyPI version](https://badge.fury.io/py/pyMathBitPrecise.svg)](http://badge.fury.io/py/pyMathBitPrecise) \n[![Documentation Status](https://readthedocs.org/projects/pyMathBitPrecise/badge/?version=latest)](http://pyMathBitPrecise.readthedocs.io/en/latest/?badge=latest) \n[![](https://img.shields.io/github/license/Nic30/pyMathBitPrecise.svg)](https://github.com/Nic30/pyMathBitPrecise)\n[![Python version](https://img.shields.io/pypi/pyversions/pyMathBitPrecise.svg)](https://img.shields.io/pypi/pyversions/pyMathBitPrecise.svg)\n\nThis library contains number types of variable bit size and utils for bit manipulations.\nThre are also types which support tri state values etc. (Python equivalents of VHDL `std_logic_vector`, Verilog `wire`/`reg`.)\n\nThis may be usefull for tools which are simulating hardware or software which needs numbers of exact size.\n\n\n## Example\n\n```Python\nfrom pyMathBitPrecise.bits3t import Bits3t\n\n#3t means that bits can have values 1,0,x\nuint512_t = Bits3t(512, signed=False)\n\na = uint512_t.from_py(1)\n\n# indexing on bits\nassert a[0] == 1\nassert a[0]._dtype.bit_length() == 1\nassert a[1] == 0\nassert a[8:] == 1\nassert a[8:]._dtype.bit_length() == 8\n\n# arithmetic\nb = a + 1\nassert b == 2\nassert b._dtype == uint512_t\n\n# bitwise operations\nc = a >> 8\nassert c == 0\nassert c._dtype == uint512_t\n\n# casting\nd = int(a)\nassert d == 1 and isinstance(d, int)\n\nuint8_t = Bits3t(8, signed=False)\ne = a.cast(uint8_t)\nassert e._dtype == uint8_t\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/Nic30/pyMathBitPrecise", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyMathBitPrecise", "package_url": "https://pypi.org/project/pyMathBitPrecise/", "platform": "", "project_url": "https://pypi.org/project/pyMathBitPrecise/", "project_urls": { "Homepage": "https://github.com/Nic30/pyMathBitPrecise" }, "release_url": "https://pypi.org/project/pyMathBitPrecise/0.1/", "requires_dist": null, "requires_python": "", "summary": "number types of variable bit size and utils for bit manipulations", "version": "0.1" }, "last_serial": 5960944, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "44df080441dd7be2203d3dbd1ea899f6", "sha256": "50e44e8b04a3e30049550aa8364f05fe5295bfad9c58fdf2d68a356374fa005b" }, "downloads": -1, "filename": "pyMathBitPrecise-0.1.tar.gz", "has_sig": false, "md5_digest": "44df080441dd7be2203d3dbd1ea899f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10357, "upload_time": "2019-10-11T15:45:38", "url": "https://files.pythonhosted.org/packages/85/31/accfd562a635e4904b18e1a29776fac2d6e935fd0d961044743f1944469d/pyMathBitPrecise-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "44df080441dd7be2203d3dbd1ea899f6", "sha256": "50e44e8b04a3e30049550aa8364f05fe5295bfad9c58fdf2d68a356374fa005b" }, "downloads": -1, "filename": "pyMathBitPrecise-0.1.tar.gz", "has_sig": false, "md5_digest": "44df080441dd7be2203d3dbd1ea899f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10357, "upload_time": "2019-10-11T15:45:38", "url": "https://files.pythonhosted.org/packages/85/31/accfd562a635e4904b18e1a29776fac2d6e935fd0d961044743f1944469d/pyMathBitPrecise-0.1.tar.gz" } ] }