{"id":18001674,"url":"https://github.com/magervalp/macmodelshelf","last_synced_at":"2025-07-25T04:02:18.994Z","repository":{"id":2364769,"uuid":"3328763","full_name":"MagerValp/MacModelShelf","owner":"MagerValp","description":"A small Python module that gives you nice human readable Macintosh model names, e.g. \"iMac (27-inch, Late 2009)\", when given a serial number or model code.","archived":false,"fork":false,"pushed_at":"2019-10-27T09:05:48.000Z","size":645,"stargazers_count":111,"open_issues_count":0,"forks_count":19,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-21T11:50:37.454Z","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":"tsundberg/A-Gradle-plugin-written-in-Java","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MagerValp.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-01T20:37:47.000Z","updated_at":"2025-03-21T08:20:53.000Z","dependencies_parsed_at":"2022-09-17T22:21:50.608Z","dependency_job_id":null,"html_url":"https://github.com/MagerValp/MacModelShelf","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/MagerValp%2FMacModelShelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagerValp%2FMacModelShelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagerValp%2FMacModelShelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagerValp%2FMacModelShelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MagerValp","download_url":"https://codeload.github.com/MagerValp/MacModelShelf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618588,"owners_count":20645026,"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-10-29T23:18:24.424Z","updated_at":"2025-03-26T08:30:53.812Z","avatar_url":"https://github.com/MagerValp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"MacModelShelf\n=============\n\nWhat?\n-----\n\nA small Python module that gives you nice human readable Macintosh model\nnames, e.g. \"iMac (27-inch, Late 2009)\", when given a serial number or model\ncode. It uses shelve to keep a persistent dictionary of model codes, and looks\nup unknown model codes from Apple's servers.\n\nHow?\n----\n\nIn your code:\n\n    import macmodelshelf\n    macmodelshelf.model_code(\"W12345825RU\") # Returns the model code \"5RU\"\n    macmodelshelf.model(\"5RU\")              # Returns \"iMac (27-inch, Late 2009)\"\n\nOn the commandline:\n\n    % ./macmodelshelf.py 5RU\n    iMac (27-inch, Late 2009)\n\nDump?\n-----\n\n    % ./macmodelshelf.py dump-json\n    macmodelshelfdump = {\n        \"000\": \"Power Mac G5\",\n        \"00W\": \"Xserve (Late 2006)\",\n        \"01P\": \"MacBook (13-inch, Late 2007)\",\n    ...\n    }\n    % ./macmodelshelf.py dump-markdown\n    Code | Model\n    :--- | :---\n    `000` | Power Mac G5\n    `00W` | Xserve (Late 2006)\n    `01P` | MacBook (13-inch, Late 2007)\n    ...\n\nFor a dump of all the models in the current cache, see [`dump.markdown`](dump.markdown).\n\n\nLicense\n-------\n\n    Copyright 2012-2018 Per Olofsson, University of Gothenburg. All rights reserved.\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n        http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagervalp%2Fmacmodelshelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagervalp%2Fmacmodelshelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagervalp%2Fmacmodelshelf/lists"}