{ "info": { "author": "Joshua Karns", "author_email": "jkarns275@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# lineparser\n*lineparser* is a small library with one goal: parse fixed-width formatted files extremely quickly.\nIn order to achieve this, *lineparser* uses **Cython** to obtain the speed offered by good old\n**C** code and the convenience of **Python**.\n\nDocumentation can be found [here](https://jkarns275.github.io/lineparser/).\n\n# Installing\nYou should be able to install *lineparser* via pip if you are on a Windows or Linux 64 bit machine.\n\n```\n$ pip3 install lineparser\n```\n\n# Example\n\ndemo.py:\n```python\nimport lineparser\nimport time\n\nfields = [(lineparser.Float64, 12), (lineparser.Float64, 10), (lineparser.Float64, 12), \n (lineparser.String, 6), (lineparser.String, 6), (lineparser.String, 14),\n (lineparser.String, 14), (lineparser.Float64, 6)]\n\ntry:\n start = time.time()\n\n # On a successfull parse, result will be a list of lists and numpy arrays (strings will be in \n # lists, and numbers will be in numpy arrays). \n result = lineparser.parse(fields, b'data/small_data.par')\n\n end = time.time()\n\n print(f\"Took {end - start} seconds to parse\")\nexcept lineparser.LineParsingError as e:\n print(f\"Encountered the following error while trying to parse:\\n {str(e)}\")\n\n```\n\ndata/small_data.par\n```\n 31.43339 6.531E-28 31.442390 3 2 0.00048 0.00000 100\n 41.89467 1.415E-26 62.878170 4 3 0.00065 0.00000 100\n 41.89786 3.538E-27 62.876840 4 3 0.00064 0.00000 100\n ...\n```\n\nRunning the example: `python3 demo.py`\n\n# Installing from Source\nInstalling from source is also easy. You must have GCC installed on your machine, and you must have\n**Cython** installed only if you want to modify the library. Then run this command:\n\n```\n$ python3 setup.py install\n```\n# Building\n*lineparser* is simple to build, and should only require one command:\n\n```\n$ python3 setup.py build_ext --inplace\n```\n\nYou should then be able to import it in a python interpreter (in the build directory):\n\n```\n$ python3 setup.py build_ext --inplace\n$ python3 \nPython 3.6.7 (default, Oct 22 2018, 11:32:17)\n[GCC 8.2.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import lineparser\n>>> ...\n```\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/jkarns275/lineparser", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lineparser", "package_url": "https://pypi.org/project/lineparser/", "platform": "", "project_url": "https://pypi.org/project/lineparser/", "project_urls": { "Homepage": "https://github.com/jkarns275/lineparser" }, "release_url": "https://pypi.org/project/lineparser/0.0.0.dev7/", "requires_dist": null, "requires_python": "", "summary": "Fast parser for fixed-column line data files", "version": "0.0.0.dev7" }, "last_serial": 5558404, "releases": { "0.0.0.dev6": [ { "comment_text": "", "digests": { "md5": "b2668efe811bec8e53a0ecdc8665a251", "sha256": "737a23384ce10cc80a5dcf3184eb20e6c8bbe547cc228b1cb8d00492ed84001b" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp34-cp34m-manylinux1_x86_64.whl", "has_sig": false, "md5_digest": "b2668efe811bec8e53a0ecdc8665a251", "packagetype": "bdist_wheel", "python_version": "cp34", "requires_python": null, "size": 458908, "upload_time": "2019-07-01T16:05:16", "url": "https://files.pythonhosted.org/packages/07/93/60b8c7ce27c08e0c5730dab2cfbe5f1e8879c2a98da3079d54d7f31ce231/lineparser-0.0.0.dev6-cp34-cp34m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "5281537343612ebb802c2dc08fdf495c", "sha256": "0a5ce0b96b4db42b874d956ef7cb76706dbfe64c2a40807a0212c0c24b945904" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp35-cp35m-manylinux1_x86_64.whl", "has_sig": false, "md5_digest": "5281537343612ebb802c2dc08fdf495c", "packagetype": "bdist_wheel", "python_version": "cp35", "requires_python": null, "size": 455788, "upload_time": "2019-07-01T16:05:19", "url": "https://files.pythonhosted.org/packages/ec/79/9cce2080be54042c5996d6a999aadce570b394c8992b76aba6a378d14c41/lineparser-0.0.0.dev6-cp35-cp35m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "d7e038ab3de94a23ec24b9723ca712c2", "sha256": "074f91b55ec7fc52ee5c7c39eebd967a4747e2b51f9e3e6a680fcc4c6c6b8254" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp36-cp36m-manylinux1_x86_64.whl", "has_sig": false, "md5_digest": "d7e038ab3de94a23ec24b9723ca712c2", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 468742, "upload_time": "2019-07-01T16:05:20", "url": "https://files.pythonhosted.org/packages/19/e5/0d5d448e9037e36814c2b9c94025a22425bf776ba4dad759867bd4b6ba4c/lineparser-0.0.0.dev6-cp36-cp36m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "bcb6a7dd55a3b542bbd25c865595d089", "sha256": "52f28eac99ccfe971882f4a8b614562d039f7e4353e7f28913051dadbb2d49ab" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp36-cp36m-win_amd64.whl", "has_sig": false, "md5_digest": "bcb6a7dd55a3b542bbd25c865595d089", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 103119, "upload_time": "2019-07-10T17:30:18", "url": "https://files.pythonhosted.org/packages/df/18/845a80d61779d45a026d38204d57096c7f7ca0329cf7ebc6dae6a3888c05/lineparser-0.0.0.dev6-cp36-cp36m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "44c0b56e9cfcf9df163444f96aa9516b", "sha256": "1f7936633afbf26f8a0fd567a7e2a8fb5df5aaf40334be80a048f5622ca19378" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp37-cp37m-manylinux1_x86_64.whl", "has_sig": false, "md5_digest": "44c0b56e9cfcf9df163444f96aa9516b", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 462544, "upload_time": "2019-07-01T16:05:22", "url": "https://files.pythonhosted.org/packages/10/41/a6240b0c567fdcaf9c03ba7f10aba4d0c273c7b9fde10c55d1a17e2de9fa/lineparser-0.0.0.dev6-cp37-cp37m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "e36ec7f1ba6ce862ed9791ca4a464642", "sha256": "60317148a5705e54b23218ad2a5f257351c98c8866efb2215431670d5f9019fd" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp37-cp37m-win32.whl", "has_sig": false, "md5_digest": "e36ec7f1ba6ce862ed9791ca4a464642", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 84449, "upload_time": "2019-07-11T17:48:54", "url": "https://files.pythonhosted.org/packages/3b/ec/4b8a87d1bcee089be6178e58fb7777c45f65751007b0a836696561604073/lineparser-0.0.0.dev6-cp37-cp37m-win32.whl" }, { "comment_text": "", "digests": { "md5": "fb4ad8146de423c6814b78d529a97988", "sha256": "4bc04f6ba584da06a5178331e428ed57c79258a8fb5c8a0c1ab9d405845b2757" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6-cp37-cp37m-win_amd64.whl", "has_sig": false, "md5_digest": "fb4ad8146de423c6814b78d529a97988", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 116756, "upload_time": "2019-07-19T19:17:25", "url": "https://files.pythonhosted.org/packages/7c/71/a4509dfea7ffcc3652c00a44e8c7bc16d15c3e57f10c670fff9d326438e7/lineparser-0.0.0.dev6-cp37-cp37m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "07f2714a4914e60c42ba91e8af316662", "sha256": "b5d37e0d08154d643aa7c0b03c68601dceaf07b3d7d6ee25cf67dc9f03076ae4" }, "downloads": -1, "filename": "lineparser-0.0.0.dev6.win32.zip", "has_sig": false, "md5_digest": "07f2714a4914e60c42ba91e8af316662", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84835, "upload_time": "2019-07-11T17:32:26", "url": "https://files.pythonhosted.org/packages/cc/c8/ce8dcb36fb4b49212a9c43b321dba6589c7ac93eca472d682511ff05a0f3/lineparser-0.0.0.dev6.win32.zip" } ], "0.0.0.dev7": [ { "comment_text": "", "digests": { "md5": "0aca2ac31b913c95fc1d579002dbc9c4", "sha256": "a3bacf687adaf3d76ada444f365bcc7ad380dbd3a2406f728cff7a6b86b5082e" }, "downloads": -1, "filename": "lineparser-0.0.0.dev7-cp36-cp36m-win_amd64.whl", "has_sig": false, "md5_digest": "0aca2ac31b913c95fc1d579002dbc9c4", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 115735, "upload_time": "2019-07-19T21:08:34", "url": "https://files.pythonhosted.org/packages/29/30/6e567227a37c7f79be12f8c801738d2d107d6efac95712f3eb66c6a8f6c9/lineparser-0.0.0.dev7-cp36-cp36m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "8a87a5e21d7ee2e4bfa72bc225bcc025", "sha256": "2671e11cdf7764dd5c78b993d359d22507ce3d960248d87c17e47504d161b5d3" }, "downloads": -1, "filename": "lineparser-0.0.0.dev7-cp37-cp37m-win_amd64.whl", "has_sig": false, "md5_digest": "8a87a5e21d7ee2e4bfa72bc225bcc025", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 116757, "upload_time": "2019-07-19T19:17:59", "url": "https://files.pythonhosted.org/packages/52/cd/a3854cf7d8a95892a0ee9478c71129fadcaa51933f2a317e85c240b865e7/lineparser-0.0.0.dev7-cp37-cp37m-win_amd64.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0aca2ac31b913c95fc1d579002dbc9c4", "sha256": "a3bacf687adaf3d76ada444f365bcc7ad380dbd3a2406f728cff7a6b86b5082e" }, "downloads": -1, "filename": "lineparser-0.0.0.dev7-cp36-cp36m-win_amd64.whl", "has_sig": false, "md5_digest": "0aca2ac31b913c95fc1d579002dbc9c4", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 115735, "upload_time": "2019-07-19T21:08:34", "url": "https://files.pythonhosted.org/packages/29/30/6e567227a37c7f79be12f8c801738d2d107d6efac95712f3eb66c6a8f6c9/lineparser-0.0.0.dev7-cp36-cp36m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "8a87a5e21d7ee2e4bfa72bc225bcc025", "sha256": "2671e11cdf7764dd5c78b993d359d22507ce3d960248d87c17e47504d161b5d3" }, "downloads": -1, "filename": "lineparser-0.0.0.dev7-cp37-cp37m-win_amd64.whl", "has_sig": false, "md5_digest": "8a87a5e21d7ee2e4bfa72bc225bcc025", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 116757, "upload_time": "2019-07-19T19:17:59", "url": "https://files.pythonhosted.org/packages/52/cd/a3854cf7d8a95892a0ee9478c71129fadcaa51933f2a317e85c240b865e7/lineparser-0.0.0.dev7-cp37-cp37m-win_amd64.whl" } ] }