{"id":22614693,"url":"https://github.com/romanin-rf/pychunker","last_synced_at":"2025-03-29T00:27:19.419Z","repository":{"id":181050626,"uuid":"666155019","full_name":"romanin-rf/pychunker","owner":"romanin-rf","description":"Python module for reading/writing a chunk file.","archived":false,"fork":false,"pushed_at":"2024-01-06T04:00:38.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T01:35:27.183Z","etag":null,"topics":["chunk","chunkfile","file-like","io","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pychunker","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/romanin-rf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-13T21:00:27.000Z","updated_at":"2023-08-13T04:18:20.000Z","dependencies_parsed_at":"2024-12-08T18:11:41.572Z","dependency_job_id":null,"html_url":"https://github.com/romanin-rf/pychunker","commit_stats":null,"previous_names":["romanin-rf/chunker","romanin-rf/pychunker"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Fpychunker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Fpychunker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Fpychunker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanin-rf%2Fpychunker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romanin-rf","download_url":"https://codeload.github.com/romanin-rf/pychunker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246120422,"owners_count":20726579,"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":["chunk","chunkfile","file-like","io","python","python3"],"created_at":"2024-12-08T18:11:38.983Z","updated_at":"2025-03-29T00:27:19.390Z","avatar_url":"https://github.com/romanin-rf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chunker\n## Description\nModule for reading/writing chunk files.\n\n## Installation\n```\npip install pychunker\n```\n\n## Using\n- `example.py`:\n```python\nimport pychunker\n\nwith pychunker.open(\"chunkfile.bin\", \"w\") as cf:\n    # The chunk can be used via `with'.\n    with cf.chunk(\"DDAT\") as ddat:\n        ddat.write(b'1234567890')\n    \n    # Or by contacting the key (name of the chunk).\n    cf[\"SDAT\"].write(b'Hello World!')\n\n# !!! Attention !!!\n# Both types of treatment use the same methods,\n# namely that if you open a chunk file in read-only mode,\n# and if the chunk is not in the chunk file,\n# he will try to create a chunk,\n# but he will not be able to do this and will give a `IONotWritableError`.\n\nwith pychunker.open(\"chunkfile.bin\") as cf:\n    print(cf.chunks)\n```\n\n- `Output`:\n```python\n[Chunk(name='DDAT', mode='r', size=10), Chunk(name='SDAT', mode='r', size=12)]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanin-rf%2Fpychunker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanin-rf%2Fpychunker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanin-rf%2Fpychunker/lists"}