{"id":26262114,"url":"https://github.com/savonet/ocaml-metadata","last_synced_at":"2026-01-04T23:08:05.652Z","repository":{"id":82084459,"uuid":"534240231","full_name":"savonet/ocaml-metadata","owner":"savonet","description":"Library to read metadata from files in various formats.","archived":false,"fork":false,"pushed_at":"2025-04-07T11:41:33.000Z","size":924,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-07T12:32:19.947Z","etag":null,"topics":["library","metadata","ocaml"],"latest_commit_sha":null,"homepage":"http://www.liquidsoap.info/ocaml-metadata/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/savonet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2022-09-08T14:05:14.000Z","updated_at":"2025-04-07T11:41:37.000Z","dependencies_parsed_at":"2024-03-04T19:34:37.246Z","dependency_job_id":"b3048ed7-01f0-427b-8e7d-5175b750b4b1","html_url":"https://github.com/savonet/ocaml-metadata","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savonet%2Focaml-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savonet%2Focaml-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savonet%2Focaml-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savonet%2Focaml-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savonet","download_url":"https://codeload.github.com/savonet/ocaml-metadata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251674990,"owners_count":21625717,"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":["library","metadata","ocaml"],"created_at":"2025-03-14T00:17:39.587Z","updated_at":"2026-01-04T23:08:05.647Z","avatar_url":"https://github.com/savonet.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"The metadata library\n====================\n\nA pure OCaml library to read metadata from various formats. For now, are\nsupported:\n\n- audio formats: ID3v1 and ID3v2 (for mp3), ogg/vorbis, ogg/opus, flac and wav\n- image formats: jpeg and png\n- video formats: mp4 and avi\n- text formats: pdf\n\nUsage\n-----\n\nBasic usage is\n\n```ocaml\nlet () =\n  let metadata = Metadata.parse_file \"test.mp3\" in\n  List.iter (fun (k,v) -\u003e Printf.printf \"- %s: %s\\n\" k v) metadata\n```\n\nIn the above example, the function `Metadata.parse_file` takes a file name as\nargument and returns an association list describing its metadata. It consists of\npairs of strings being the name of the metadata and its value.\n\nInstalling\n----------\n\nThe preferred way is via opam:\n\n```bash\nopam install metadata\n```\n\nOther libraries\n---------------\n\n- [ocaml-taglib](https://github.com/savonet/ocaml-taglib): for tags from audio\n  files (mp3, ogg, etc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavonet%2Focaml-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavonet%2Focaml-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavonet%2Focaml-metadata/lists"}