{"id":23951406,"url":"https://github.com/psteinb/pack5","last_synced_at":"2026-05-18T07:11:39.036Z","repository":{"id":145285200,"uuid":"206310159","full_name":"psteinb/pack5","owner":"psteinb","description":"python utility script to bundle multiple npz files into one hdf5","archived":false,"fork":false,"pushed_at":"2019-09-04T15:13:36.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T09:22:02.606Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psteinb.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":"2019-09-04T12:07:17.000Z","updated_at":"2019-09-04T15:13:38.000Z","dependencies_parsed_at":"2023-04-21T09:46:50.790Z","dependency_job_id":null,"html_url":"https://github.com/psteinb/pack5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psteinb/pack5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psteinb%2Fpack5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psteinb%2Fpack5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psteinb%2Fpack5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psteinb%2Fpack5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psteinb","download_url":"https://codeload.github.com/psteinb/pack5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psteinb%2Fpack5/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33168910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"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":[],"created_at":"2025-01-06T12:59:43.476Z","updated_at":"2026-05-18T07:11:39.032Z","avatar_url":"https://github.com/psteinb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pack5\n\npython utility script to bundle multiple npz files into one hdf5\n\n## Usage\n\nThis small script assumes that you have something like this:\n\n``` shell\n$ ls tests/*{json,npy}\ntests/data_000000.npy  tests/data_000007.npy  tests/pars000004.json\ntests/data_000001.npy  tests/data_000008.npy  tests/pars000005.json\ntests/data_000002.npy  tests/data_000009.npy  tests/pars000006.json\ntests/data_000003.npy  tests/pars000000.json  tests/pars000007.json\ntests/data_000004.npy  tests/pars000001.json  tests/pars000008.json\ntests/data_000005.npy  tests/pars000002.json  tests/pars000009.json\ntests/data_000006.npy  tests/pars000003.json\n```\n\nThe json files go as metadata with the `.npy` files. As mentioned it's the goal of this small script to pack the `.npy` files into a hdf5 compliant format. This can be done in 2 ways:\n\n- by using a wildcard expression   \n``` shell\n$ python3 ./pack5.py --output cli.h5 --numpy-wc \"./tests/data*.npy\" --json-wc \"./tests/pars*.json\"\n```\nThis will store are contents of the 10 `.npy` files inside `cli.h5` and attach the contents of the respective `pars*.json` as attributes (for more details, see [dataset attributes](http://docs.h5py.org/en/stable/high/attr.html).\n\n- by providing a list of files  \n``` shell\n$ python3 ./pack5.py --output cli.h5 --numpy-list numpy.list --json-list json.list\n```\nwhich in turn contain the full paths.\n\nThe tool is written such that it can store only chunks of the data inside a series of hdf5 files:\n\n``` shell\n$ python3 ./pack5.py --output cli.h5 --numpy-wc \"./tests/data*.npy\" --json-wc \"./tests/pars*.json\" --files-per-chunk 2\nWrote 5/5 .h5 files from 10 inputs\n```\n\nThis has created 5 .h5 files with 2 npy/json datasets inside each.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsteinb%2Fpack5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsteinb%2Fpack5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsteinb%2Fpack5/lists"}