{"id":35051059,"url":"https://github.com/srbhp/h5stream","last_synced_at":"2026-05-21T01:02:08.599Z","repository":{"id":149045246,"uuid":"281932840","full_name":"srbhp/h5stream","owner":"srbhp","description":"C++ Header only library for HDF5 input/output","archived":false,"fork":false,"pushed_at":"2024-01-05T21:20:06.000Z","size":1888,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-28T23:27:17.707Z","etag":null,"topics":["cpp","hdf5"],"latest_commit_sha":null,"homepage":"","language":"C++","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/srbhp.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}},"created_at":"2020-07-23T11:27:32.000Z","updated_at":"2024-01-05T21:20:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"b82ade0c-e79b-4f3d-8a69-17e53889c8e3","html_url":"https://github.com/srbhp/h5stream","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.4545454545454546,"last_synced_commit":"2c2ac9eb152ef868cf596859d0f040a32d650408"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srbhp/h5stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbhp%2Fh5stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbhp%2Fh5stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbhp%2Fh5stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbhp%2Fh5stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srbhp","download_url":"https://codeload.github.com/srbhp/h5stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srbhp%2Fh5stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33283411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T15:12:43.734Z","status":"ssl_error","status_checked_at":"2026-05-20T15:12:42.300Z","response_time":356,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cpp","hdf5"],"created_at":"2025-12-27T09:15:33.633Z","updated_at":"2026-05-21T01:02:08.593Z","avatar_url":"https://github.com/srbhp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [h5stream](https://github.com/srbhp/h5stream)\nC++ Header only library for simple HDF5 input/output\n\n## How to use \n\nJust include the `h5stream.hpp` into your your main file.\n\n### Compile \n\n```\ng++ -lhdf5 -lhdf5_cpp -std=c++1z example.cpp\n```\n\n### Example\n\n#### Create File with a mode.\n\n\n- \"tr\":   Create file, truncate if exists, Default\n- \"r\":    Readonly, file must exist\n- \"rw\": Read/write, file must exist\n- \"x\":   Create file, fail if exists\n\n\n```\nh5stream::h5stream file(\"sample.h5\", \"tr\");\n// or \nh5stream::h5stream file(\"sample.h5\");\n```\n\n#### write and read `std::vector` \n\nCreate a vector and write it to the file\n\n\n```\nstd::vector\u003cdouble\u003e matrix { 1, 2, 3282, 932 };\nfile.write\u003cdouble\u003e(matrix, \"matrix\"); \n```\n\n\n#### write and read Metadata\n\nWrite Attributes( Metadata) to the to the same data space\n\n\n```\nauto dspace = file.get_dataspace(\"matrix\");\ndspace.write_atr\u003cdouble\u003e(1.2, \"Units\");\n```\n\n\n#### Read data from the file\n\n\n```\nauto xx = file.read_vector\u003cdouble\u003e(\"matrix\");\n//OR\nfile.read\u003cdouble\u003e(xx, \"matrix\");\n```\n\n\n#### Read Attribute (Metadata)\n```\ndouble x = 0;\ndspace.read_atr\u003cdouble\u003e(x, \"Units\");\nstd::cout \u003c\u003c \"Attribute : \" \u003c\u003c x \u003c\u003c std::endl;\nstd::cout \u003c\u003c \"HDF file size (MB): \" \u003c\u003c file.file_size() \u003c\u003c std::endl;\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrbhp%2Fh5stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrbhp%2Fh5stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrbhp%2Fh5stream/lists"}