{"id":23221639,"url":"https://github.com/null-none/humansizes","last_synced_at":"2025-07-22T10:33:10.046Z","repository":{"id":268656228,"uuid":"875232290","full_name":"null-none/humansizes","owner":"null-none","description":"Parse human-readable filesizes into bytes","archived":false,"fork":false,"pushed_at":"2024-10-19T12:53:56.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T15:46:27.496Z","etag":null,"topics":["bytes","filesize","filesize-in-bytes","humansize","python"],"latest_commit_sha":null,"homepage":"","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/null-none.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":"2024-10-19T12:46:08.000Z","updated_at":"2024-10-19T12:53:59.000Z","dependencies_parsed_at":"2024-12-18T06:32:51.451Z","dependency_job_id":null,"html_url":"https://github.com/null-none/humansizes","commit_stats":null,"previous_names":["null-none/humansizes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/null-none/humansizes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fhumansizes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fhumansizes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fhumansizes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fhumansizes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null-none","download_url":"https://codeload.github.com/null-none/humansizes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fhumansizes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266475512,"owners_count":23934978,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bytes","filesize","filesize-in-bytes","humansize","python"],"created_at":"2024-12-18T22:18:04.423Z","updated_at":"2025-07-22T10:33:09.989Z","avatar_url":"https://github.com/null-none.png","language":"Python","readme":"# humansizes\n\n## Overview\nParse human-readable filesizes into bytes \n\n### Install\n\n```bash\npip install humansizes\n```\n\n### Example\n\n```python\n\nfrom humansizes.convert import Humansizes\n\n\nhumansizes = Humansizes()\n\nexample_strings = [\"1024b\", \"10.43 KB\", \"11 GB\", \"343.1 MB\", \"10.43KB\", \"11GB\", \"343.1MB\", \"10.43 kb\", \"11 gb\", \"343.1 mb\", \"10.43kb\", \"11gb\", \"343.1mb\"]\n\nfor example_string in example_strings:\n        print(example_string, humansizes.parse_size(example_string))\n```\n\n```bash\n('1024b', 1024)\n('10.43 KB', 10680)\n('11 GB', 11811160064)\n('343.1 MB', 359766425)\n('10.43KB', 10680)\n('11GB', 11811160064)\n('343.1MB', 359766425)\n('10.43 kb', 10680)\n('11 gb', 11811160064)\n('343.1 mb', 359766425)\n('10.43kb', 10680)\n('11gb', 11811160064)\n('343.1mb', 359766425)\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fhumansizes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull-none%2Fhumansizes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fhumansizes/lists"}