{"id":47340439,"url":"https://github.com/jegesh/python-random-access-file-reader","last_synced_at":"2026-03-17T22:46:01.675Z","repository":{"id":17478435,"uuid":"82065865","full_name":"jegesh/python-random-access-file-reader","owner":"jegesh","description":"Low memory usage random access reader for csv and general files","archived":false,"fork":false,"pushed_at":"2022-06-16T09:50:42.000Z","size":39,"stargazers_count":14,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-05T02:56:42.655Z","etag":null,"topics":["csv-parsing","fileio","python","random-access"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jegesh.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-15T13:53:42.000Z","updated_at":"2025-06-23T16:35:21.000Z","dependencies_parsed_at":"2022-09-06T13:11:24.007Z","dependency_job_id":null,"html_url":"https://github.com/jegesh/python-random-access-file-reader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jegesh/python-random-access-file-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jegesh%2Fpython-random-access-file-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jegesh%2Fpython-random-access-file-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jegesh%2Fpython-random-access-file-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jegesh%2Fpython-random-access-file-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jegesh","download_url":"https://codeload.github.com/jegesh/python-random-access-file-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jegesh%2Fpython-random-access-file-reader/sbom","scorecard":{"id":514524,"data":{"date":"2025-08-11","repo":{"name":"github.com/jegesh/python-random-access-file-reader","commit":"c5146b23754e371cdbf2a2dc8597bb10b02556a8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T01:27:44.752Z","repository_id":17478435,"created_at":"2025-08-20T01:27:44.752Z","updated_at":"2025-08-20T01:27:44.752Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv-parsing","fileio","python","random-access"],"created_at":"2026-03-17T22:45:59.646Z","updated_at":"2026-03-17T22:46:01.653Z","avatar_url":"https://github.com/jegesh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"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|\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\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\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjegesh%2Fpython-random-access-file-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjegesh%2Fpython-random-access-file-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjegesh%2Fpython-random-access-file-reader/lists"}