{"id":23327830,"url":"https://github.com/storaged-project/libbytesize","last_synced_at":"2026-03-10T16:19:58.852Z","repository":{"id":37484477,"uuid":"43051127","full_name":"storaged-project/libbytesize","owner":"storaged-project","description":"A tiny library providing a C \"class\" for working with arbitrary big sizes in bytes","archived":false,"fork":false,"pushed_at":"2026-03-02T11:37:19.000Z","size":660,"stargazers_count":25,"open_issues_count":0,"forks_count":23,"subscribers_count":10,"default_branch":"main","last_synced_at":"2026-03-02T15:26:12.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/storaged-project.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.rst","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-09-24T07:16:27.000Z","updated_at":"2026-03-02T11:37:15.000Z","dependencies_parsed_at":"2025-12-12T02:05:28.093Z","dependency_job_id":null,"html_url":"https://github.com/storaged-project/libbytesize","commit_stats":{"total_commits":323,"total_committers":26,"mean_commits":"12.423076923076923","dds":0.4767801857585139,"last_synced_commit":"9aa2b37aa57caa65393b4f1f2609bdc378f6c3e2"},"previous_names":["rhinstaller/libbytesize"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/storaged-project/libbytesize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storaged-project%2Flibbytesize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storaged-project%2Flibbytesize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storaged-project%2Flibbytesize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storaged-project%2Flibbytesize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/storaged-project","download_url":"https://codeload.github.com/storaged-project/libbytesize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storaged-project%2Flibbytesize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30342165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-12-20T20:33:56.225Z","updated_at":"2026-03-10T16:19:58.831Z","avatar_url":"https://github.com/storaged-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Translation](https://translate.fedoraproject.org/widgets/blivet/-/libbytesize/svg-badge.svg)](https://translate.fedoraproject.org/engage/blivet/)\n### CI status\n\n\u003cimg alt=\"CI status\" src=\"https://fedorapeople.org/groups/storage_apis/statuses/libbytesize-master.svg\" width=\"100%\" height=\"400ex\" /\u003e\n\n\n### Introduction\n\nThe goal of this project is to provide a tiny library that would facilitate the\ncommon operations with sizes in bytes. Many projects need to work with sizes in\nbytes (be it sizes of storage space, memory,...) and all of them need to deal\nwith the same issues like:\n\n* How to get a human-readable string for the given size?\n* How to store the given size so that no significant information is lost?\n* If we store the size in bytes, what if the given size gets over the ``MAXUINT64``\n  value?\n* How to interpret sizes entered by users according to their locale and typing\n  conventions?\n* How to deal with the decimal/binary units (*MB* vs. *MiB*) ambiguity?\n\nSome projects have all the above questions/concerns addressed well, some have\nthem addressed partially some simply don't care. However, having (partial)\nsolutions implemented in multiple places every time with a different set of\nbugs, differences in behaviour and this or that missing is a waste of time and\neffort. We need a generally usable solution that could be used by every project\nthat needs to deal with sizes in bytes.\n\nSince the goal is to provide a solution as much generally usable as possible the\nimplementation has to be small, fast and written in a language that can be\neasily interfaced from other languages. The current obvious choice is the *C*\nlanguage with thin bindings for other languages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoraged-project%2Flibbytesize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstoraged-project%2Flibbytesize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoraged-project%2Flibbytesize/lists"}