{"id":18885319,"url":"https://github.com/ruda/caf","last_synced_at":"2026-02-23T05:30:18.583Z","repository":{"id":139748347,"uuid":"140888308","full_name":"ruda/caf","owner":"ruda","description":"Read and write Core Audio Format (CAF) files.","archived":false,"fork":false,"pushed_at":"2022-01-25T00:06:55.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T04:41:51.689Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruda.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-07-13T20:02:16.000Z","updated_at":"2023-12-01T02:32:30.000Z","dependencies_parsed_at":"2023-06-26T00:14:40.237Z","dependency_job_id":null,"html_url":"https://github.com/ruda/caf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruda%2Fcaf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruda%2Fcaf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruda%2Fcaf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruda%2Fcaf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruda","download_url":"https://codeload.github.com/ruda/caf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239858631,"owners_count":19708856,"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":[],"created_at":"2024-11-08T07:17:50.689Z","updated_at":"2026-02-23T05:30:18.529Z","avatar_url":"https://github.com/ruda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python module for Core Audio Format (CAF) files.\nRudá Moura \u003cruda.moura@gmail.com\u003e\n\nINTRODUCTION\n\nThis is a very low level module to interact with Code Audio Format (CAF) files.\n\nUSAGE\n\nExample: extracting MIDI content from CAF file using chunks.\n\n---\nimport caf as caflib\n\ncaf = caflib.Reader('/Library/Audio/Apple Loops/Apple/13 Drummer/Zak - Intro.caf')\n\nfor chunk, data in caf:\n    if chunk.chunk_type == b'midi': break\nopen('Zak - Intro.mid', 'wb').write(data)\n---\n\nExample: navigating into the parts of CAF file.\n\n\u003e\u003e\u003e import caf\n\u003e\u003e\u003e f = caf.open('/Library/Audio/Apple Loops/Apple/13 Drummer/Zak - Intro.caf')\n\u003e\u003e\u003e i = iter(f)\n\u003e\u003e\u003e o = next(i) ; print(o)\nCAFdesc(sample_rate=44100.0, format_id=b'aac ', format_flags=0, bytes_per_packet=0, frames_per_packet=1024, channels_per_frame=2, bits_per_channel=0)\n\u003e\u003e\u003e print(o.sample_rate)\n44100.0\n\u003e\u003e\u003e o = next(i) ; print(o)\nCAFkuki(cookie_data=b'\\x03\\x80\\x80\\x80\"\\x00\\x00\\x00\\x04\\x80\\x80\\x80\\x14@\\x15\\x00\\x18\\x00\\x00\\x02/\\xf0\\x00\\x01\\xf4\\x00\\x05\\x80\\x80\\x80\\x02\\x12\\x10\\x06\\x80\\x80\\x80\\x01\\x02')\n\u003e\u003e\u003e o = next(i) ; print(o)\nCAFinfo(key=1, value=b'comments\\x00Creator: Logic\\x00')\n\u003e\u003e\u003e print(type(o))\n\u003cclass 'caf.codec.CAFinfo'\u003e\n\u003e\u003e\u003e print(type(o) == caf.codec.CAFinfo)\nTrue\n\nBUGS\n\nMany, this module is incomplete.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruda%2Fcaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruda%2Fcaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruda%2Fcaf/lists"}