{ "info": { "author": "Jaideep Sagar", "author_email": "jaideep.mcs17.du@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "# bitsy\n\nThis project provides a Python library to access/modify a numpy array bit-wise, like a stream of bits which can be accessed in FIFO manner only.\n\n## Getting Started\n\n\n### Prerequisites\n\nThe prerequisites are :\n* Python 3 (or more)\n* Numpy\n\nYou can download python from [here](https://www.python.org/downloads/). And to install numpy run the following command in command prompt.\n```\npip intall numpy\n```\n\n### Installing\n\nTo install the package on your machine use the following command.\n\n```\npip install bitsy\n```\n\n\n## Examples\n\nTo use the library you need to import it. And then you can declare an empty bitstream object or instantiate it with a numpy array.\n```\nimport numpy \nimport bitsy \n```\n\nThe numpy array used must be of dtype = 'uint8'/ 'uint16'/ 'uint32'.\n```\narr = numpy.array([255,5,31], dtype='uint8')\n```\n\nDeclare the bit streams.\n```\nbs = bitsy.bitstream(arr) #bitstream initialized with arr\nbs2 = bitsy.bitstream() #empty bitstream\n```\n\nPrint the bit streams.\n```\nbs.show()\n```\n\nOutput :\n```\n0b11111111\n0b101\n0b11111\n```\n\nRead from bitstream and write in other.\n```\nfive_bits = bs.read(5)\nprint(bin(five_bits))\nbs2.write(5,five_bits)\n```\n\nOutput :\n```\n0b11111\n```\n\nNow the bit streams are : \n```\nbs.show()\nprint(\" \")\nbs2.show()\n```\n\nOutput:\n```\n0b111\n0b101\n0b11111\n\n0b11111\n```\n\n\n\n## Authors\n\n* **Jaideep Sagar** [Here.](https://github.com/JaideepSagar1997)\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\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/JaideepSagar1997/bitsy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "bitsy", "package_url": "https://pypi.org/project/bitsy/", "platform": "", "project_url": "https://pypi.org/project/bitsy/", "project_urls": { "Homepage": "https://github.com/JaideepSagar1997/bitsy" }, "release_url": "https://pypi.org/project/bitsy/0.0.1/", "requires_dist": [ "numpy" ], "requires_python": "", "summary": "A Python tool to access 1D data bit wise.", "version": "0.0.1" }, "last_serial": 5471054, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "97b1dad8033d9faf7388fc6617b1102b", "sha256": "4ef1dc5eebc0e2b8988bea7dd0b91aaec8b50a820b7b46341c8cd957d5e78a09" }, "downloads": -1, "filename": "bitsy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "97b1dad8033d9faf7388fc6617b1102b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4926, "upload_time": "2019-07-01T13:20:39", "url": "https://files.pythonhosted.org/packages/51/b5/506dee9761012c35c88fbb5ad8036ab130e7faf3f37b9b410acef0e456f2/bitsy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1609a1ac9f337f564d94696c5e63c54", "sha256": "2bb4ad7b586092c8d3a24febae19570d94477d40badf91ab7bb7ca0b23a69211" }, "downloads": -1, "filename": "bitsy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f1609a1ac9f337f564d94696c5e63c54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3955, "upload_time": "2019-07-01T13:20:42", "url": "https://files.pythonhosted.org/packages/96/ee/04331eb87a21e42a134708773abaf869e7bddab3aeadb6ca77d747f051b7/bitsy-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97b1dad8033d9faf7388fc6617b1102b", "sha256": "4ef1dc5eebc0e2b8988bea7dd0b91aaec8b50a820b7b46341c8cd957d5e78a09" }, "downloads": -1, "filename": "bitsy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "97b1dad8033d9faf7388fc6617b1102b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4926, "upload_time": "2019-07-01T13:20:39", "url": "https://files.pythonhosted.org/packages/51/b5/506dee9761012c35c88fbb5ad8036ab130e7faf3f37b9b410acef0e456f2/bitsy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1609a1ac9f337f564d94696c5e63c54", "sha256": "2bb4ad7b586092c8d3a24febae19570d94477d40badf91ab7bb7ca0b23a69211" }, "downloads": -1, "filename": "bitsy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f1609a1ac9f337f564d94696c5e63c54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3955, "upload_time": "2019-07-01T13:20:42", "url": "https://files.pythonhosted.org/packages/96/ee/04331eb87a21e42a134708773abaf869e7bddab3aeadb6ca77d747f051b7/bitsy-0.0.1.tar.gz" } ] }