{"id":15932599,"url":"https://github.com/victornpb/file-open-resume","last_synced_at":"2025-04-03T14:29:27.914Z","repository":{"id":75331171,"uuid":"317894431","full_name":"victornpb/file-open-resume","owner":"victornpb","description":"A substitute for open() that lets you resume from where you left off. Very useful for consuming large files, or running a ETL script.","archived":false,"fork":false,"pushed_at":"2021-11-22T02:21:05.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-09T03:26:32.218Z","etag":null,"topics":["etl","file-processing","file-reader","python","python3","script"],"latest_commit_sha":null,"homepage":"","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/victornpb.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-02T14:50:53.000Z","updated_at":"2021-11-22T02:21:08.000Z","dependencies_parsed_at":"2023-06-06T04:30:35.961Z","dependency_job_id":null,"html_url":"https://github.com/victornpb/file-open-resume","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victornpb%2Ffile-open-resume","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victornpb%2Ffile-open-resume/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victornpb%2Ffile-open-resume/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victornpb%2Ffile-open-resume/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victornpb","download_url":"https://codeload.github.com/victornpb/file-open-resume/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247018008,"owners_count":20869932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["etl","file-processing","file-reader","python","python3","script"],"created_at":"2024-10-07T02:02:46.520Z","updated_at":"2025-04-03T14:29:27.900Z","avatar_url":"https://github.com/victornpb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file-open-resume\n\n\nA substitute for `open()` that let you resume from where you left off.\n\nVery useful for consuming large files, or running a ETL script.\n\n\n# Example\n\n```py\nimport fileOpener\nimport time\n\nfilename = \"test.txt\"\nwith fileOpener.open_resume(filename) as f:\n    for line in f:\n\n        print(\"Processing line {}...\\t{}\".format(line['index'], line['text']))\n        \n        # Do something complicated with it\n        time.sleep(0.5)\n```\n\nIf your program crashes by a exception or you stop it by Killing or CTRL-C running it again will make sure it will resume from the failed line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictornpb%2Ffile-open-resume","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictornpb%2Ffile-open-resume","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictornpb%2Ffile-open-resume/lists"}