{"id":20287627,"url":"https://github.com/rhettbull/macos_mditem_metadata","last_synced_at":"2025-04-11T09:45:49.195Z","repository":{"id":60612129,"uuid":"540897293","full_name":"RhetTbull/macos_mditem_metadata","owner":"RhetTbull","description":"Access macOS Spotlight metadata on files from Python. Also includes JSON data for all common metadata keys.","archived":false,"fork":false,"pushed_at":"2022-11-11T03:54:44.000Z","size":26,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T06:41:40.468Z","etag":null,"topics":["apple","macos","metadata","spotlight"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RhetTbull.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}},"created_at":"2022-09-24T16:41:01.000Z","updated_at":"2023-08-22T13:18:09.000Z","dependencies_parsed_at":"2023-01-21T15:47:03.309Z","dependency_job_id":null,"html_url":"https://github.com/RhetTbull/macos_mditem_metadata","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/RhetTbull%2Fmacos_mditem_metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RhetTbull%2Fmacos_mditem_metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RhetTbull%2Fmacos_mditem_metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RhetTbull%2Fmacos_mditem_metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RhetTbull","download_url":"https://codeload.github.com/RhetTbull/macos_mditem_metadata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248369609,"owners_count":21092629,"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":["apple","macos","metadata","spotlight"],"created_at":"2024-11-14T14:41:06.833Z","updated_at":"2025-04-11T09:45:49.169Z","avatar_url":"https://github.com/RhetTbull.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Common Metadata Attributes accessible on macOS via MDItemCopyAttribute\n\nThis repository contains a set of JSON files that describe the metadata attributes that are accessible on macOS via the [MDItemCopyAttribute](https://developer.apple.com/documentation/coreservices/1427080-mditemcopyattribute?language=objc) function. The JSON files are generated by the `copy_attributes.py` file in this repository.\n\nThe JSON files contain a list of dictionaries, each dictionary representing a metadata attribute. The dictionary contains the following keys:\n\n```json\n    {\n        \"name\": \"kMDItemAppleLoopDescriptors\",\n        \"description\": \"Specifies multiple pieces of descriptive information about a loop.\",\n        \"type\": \"CFArray of CFStrings\",\n        \"version\": \"macOS 10.4+\"\n    }\n```\n\nThe `name` key is the name of the attribute as it appears in the CoreServices framework. The `description` key is a description of the attribute as it appears in the Apple documentation. The `type` key is the type of the attribute. The `version` key is the version of macOS that the attribute was introduced in. Deprecated attributes are not included.\n\nThe file `nsurl_resource_keys.json` contains the [NSURLResourceKey](https://developer.apple.com/documentation/foundation/nsurlresourcekey) values that are accessible via the [NSURL getResourceValue:forKey:error:](https://developer.apple.com/documentation/foundation/nsurl/1408874-getresourcevalue?language=objc) method.  This file was generated by `copy_nsurl_keys.py`.\n\nThe data was last collected on 2024-09-24.\n\nThe included `getmd.py` and `setmd.py` show how to get and set metadata attributes using the [CoreServices](https://developer.apple.com/documentation/coreservices?language=objc) framework called from Python through the [pyobjc](https://pyobjc.readthedocs.io/en/latest/) bridge. `setmd.py` shows how to use the undocumented `MDItemSetAttribute` function to set metadata attributes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhettbull%2Fmacos_mditem_metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhettbull%2Fmacos_mditem_metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhettbull%2Fmacos_mditem_metadata/lists"}