{"id":19446051,"url":"https://github.com/stitchfix/splits","last_synced_at":"2025-10-19T03:09:16.128Z","repository":{"id":19420653,"uuid":"22663120","full_name":"stitchfix/splits","owner":"stitchfix","description":"A Python library for dealing with splittable files","archived":false,"fork":false,"pushed_at":"2019-12-10T18:57:12.000Z","size":40,"stargazers_count":42,"open_issues_count":6,"forks_count":8,"subscribers_count":158,"default_branch":"master","last_synced_at":"2025-04-16T21:25:24.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stitchfix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-05T23:39:23.000Z","updated_at":"2022-11-29T22:34:21.000Z","dependencies_parsed_at":"2022-09-26T22:11:16.019Z","dependency_job_id":null,"html_url":"https://github.com/stitchfix/splits","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Fsplits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Fsplits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Fsplits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Fsplits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stitchfix","download_url":"https://codeload.github.com/stitchfix/splits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250738075,"owners_count":21479129,"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":[],"created_at":"2024-11-10T16:12:42.483Z","updated_at":"2025-10-19T03:09:11.070Z","avatar_url":"https://github.com/stitchfix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Splits\n\nSplits is a library for reading and writing files in splittable chunks.\nIt works on any file-like object.\nThere is built in support for writing and reading split files from S3.\nIt also has built in support for gzip.\n\n## Installation\n\n```\n  $ pip install splits\n```\n\n## Usage\n\n```python\nfrom splits import SplitWriter, SplitReader\nfrom splits.s3 import S3File, GzipS3File\n\nif __name__ == '__main__':\n\n    with SplitWriter('s3://test-bucket/test-multifile',\n                     suffix='.txt', lines_per_file=100,\n                     fileClass=GzipS3File) as w:\n        w.writelines([str(x) for x in range(0, 1000)])\n\n    with SplitReader('s3://test-bucket/test-multifile',\n                     fileClass=GzipS3File) as r:\n        for line in r:\n            print line\n\n```\n\n## Tests\n\n```\n $ pip install tox\n```\n\nTo run the tests in both Python2 and Python3 run,\n\n```\n $ tox\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstitchfix%2Fsplits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstitchfix%2Fsplits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstitchfix%2Fsplits/lists"}