{ "info": { "author": "Yaakov Gesher", "author_email": "yaakov@gesher.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "Random Access File Reader\n-------------------------\n\n| This is a small library that allows for reading any given line in a file without having to read all the lines before it\n or load the entire file into memory. Only the line indexes and lengths are held in memory, which enables random\n access even on very large files for a very minuscule memory cost.\n\nInstallation\n============\n``pip install random-access-file-reader``\n\nUsage\n=====\n\n| Usage is very straightforward, and standard csv line endings (newline character), value delimiter (comma), and\n quotation character (double quote) are the defaults. These can be changed in the constructor.\n|\n| The ``get_line()`` and ``get_line_dicts()`` methods return a list of rows.\n| Plain text file example:\n\n::\n\n from randomAccessReader import RandomAccessReader\n\n reader = RandomAccessReader('~/myfile.txt')\n\n # single line\n line = reader.get_lines(2)[0]\n print line\n\n # multiple lines\n lines = reader.get_lines(3, 3)\n for l in lines:\n print l\n\n| Optional arguments in the constructor:\n - ``endline_character`` - self-explanatory (default is endline character ``\\\\n``)\n - ``ignore_blank_lines`` - if set to ``True``, blank lines in the file will not be read or indexed (default is ``False``)\n\n|\n| Csv example:\n\n::\n\n from randomAccessReader import CsvRandomAccessReader\n reader = CsvRandomAccessReader('~/myfile.csv')\n\n # single line\n line = reader.get_line_dicts(5)[0]\n for x in line:\n print x + \" = \" line[x]\n\n # multiple lines\n lines = reader.get_line_dicts(6, 6)\n for l in lines:\n for x in l:\n print x + \" = \" l[x]\n\n| Optional arguments in the constructor:\n - ``endline_character`` - self-explanatory (default is endline character ``\\\\n``)\n - ``ignore_blank_lines`` - if set to ``True``, blank lines in the file will not be read or indexed (default is ``True``)\n - ``values_delimiter`` - character used by the csv to separate values within a line (default is ``,``)\n - ``quotechar`` - character used by the csv to surround values that contain the value delimiting character (default is ``\"``)\n - ``ignore_corrupt`` - if set to ``True``, lines with an invalid length will return blank instead of raising an exception (default is ``False``)\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jegesh/python-random-access-file-reader", "keywords": "", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "random-access-file-reader", "package_url": "https://pypi.org/project/random-access-file-reader/", "platform": "", "project_url": "https://pypi.org/project/random-access-file-reader/", "project_urls": { "Homepage": "https://github.com/jegesh/python-random-access-file-reader" }, "release_url": "https://pypi.org/project/random-access-file-reader/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "A python random access file reader", "version": "0.3.0" }, "last_serial": 2689051, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "d88d3b0934d4134c589586967bf223d3", "sha256": "a6fe15246d02049941b9a87f6536b203dc2a3b10f693655263811232524b9210" }, "downloads": -1, "filename": "random_access_file_reader-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d88d3b0934d4134c589586967bf223d3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4997, "upload_time": "2017-02-16T11:07:43", "url": "https://files.pythonhosted.org/packages/b0/7c/d4d6ab7540ee5a5c683cfb6deb6001f8dc2c9089bd1ee535099b65f8a598/random_access_file_reader-0.2.0-py2.py3-none-any.whl" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "fc0e6a91c050b1a3e2bb131741fa324d", "sha256": "3c8894edcdafa52fc98ee2fbfd2e53a74482c72f1ae138954f1d7938d274bdc9" }, "downloads": -1, "filename": "random_access_file_reader-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fc0e6a91c050b1a3e2bb131741fa324d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5050, "upload_time": "2017-02-16T11:16:50", "url": "https://files.pythonhosted.org/packages/d6/94/6df2369ddedc1c3b373fe1fe68848f9c1be5b7b25296ae9fedb7dfd2cc61/random_access_file_reader-0.2.1-py2.py3-none-any.whl" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "603ed37ef0d60c4f86b8c128907b2696", "sha256": "1d3f066878434747373219c44a1c5d3ad40b5519eeea0e4b19d1ff4f10208a08" }, "downloads": -1, "filename": "random_access_file_reader-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "603ed37ef0d60c4f86b8c128907b2696", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5048, "upload_time": "2017-02-19T07:49:17", "url": "https://files.pythonhosted.org/packages/76/2f/1490ad1cd71511970d9bed92210cd0876f6e19d3a0a809d7fd2584f82b54/random_access_file_reader-0.2.2-py2.py3-none-any.whl" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "40c81c9b77f30f014294228ccdfda7e4", "sha256": "80006dba064ce338923113de44664d924326bfa6291170415845b935dda34ca1" }, "downloads": -1, "filename": "random_access_file_reader-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "40c81c9b77f30f014294228ccdfda7e4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5047, "upload_time": "2017-02-19T07:54:36", "url": "https://files.pythonhosted.org/packages/30/dc/8237546429a92d523ba71693e33c7af8b20eb5116b28593a455f998e719e/random_access_file_reader-0.2.3-py2.py3-none-any.whl" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "cbeea0ee3762c982cb0cf631ea1b453c", "sha256": "f3f66099db4b479cfb40b84852dbcfed87a28c3c754db4591f1eaf6501dba250" }, "downloads": -1, "filename": "random_access_file_reader-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cbeea0ee3762c982cb0cf631ea1b453c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5060, "upload_time": "2017-02-19T08:24:12", "url": "https://files.pythonhosted.org/packages/38/dc/a8a6dc949137de39b3e3866f2912395749fea3b4c88769676815b9aa8528/random_access_file_reader-0.2.4-py2.py3-none-any.whl" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "b48e0feaf47f2734ebfc85fc5cc41f11", "sha256": "808c6e2975688ccefd332249059e52ee1c64110e1b7802f10eef999285c9085d" }, "downloads": -1, "filename": "random_access_file_reader-0.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b48e0feaf47f2734ebfc85fc5cc41f11", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5066, "upload_time": "2017-03-07T11:39:49", "url": "https://files.pythonhosted.org/packages/e4/aa/8c993eafead06014d5b58c880f88319b161beae9eea765a57cfdfa80dc41/random_access_file_reader-0.2.5-py2.py3-none-any.whl" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "be5eee9101d77d21e82c061dee63ab47", "sha256": "16306cafc19777a315ee6aa76c4979436841ad9afd79574100e7db44215eba5b" }, "downloads": -1, "filename": "random_access_file_reader-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "be5eee9101d77d21e82c061dee63ab47", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5724, "upload_time": "2017-03-07T15:27:08", "url": "https://files.pythonhosted.org/packages/0d/27/71531b7eb10e3dabd1dd3830faebdb75a22213b90b9dd6e2140e68b8453e/random_access_file_reader-0.3.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be5eee9101d77d21e82c061dee63ab47", "sha256": "16306cafc19777a315ee6aa76c4979436841ad9afd79574100e7db44215eba5b" }, "downloads": -1, "filename": "random_access_file_reader-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "be5eee9101d77d21e82c061dee63ab47", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5724, "upload_time": "2017-03-07T15:27:08", "url": "https://files.pythonhosted.org/packages/0d/27/71531b7eb10e3dabd1dd3830faebdb75a22213b90b9dd6e2140e68b8453e/random_access_file_reader-0.3.0-py2.py3-none-any.whl" } ] }