{"library":"mac-alias","title":"mac-alias","description":"Generate and parse macOS Alias records from Python. Version 2.2.3 supports Python >=3.10. Used by dmgbuild for creating macOS disk images. Stable release cadence, maintained as part of dmgbuild ecosystem.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install mac-alias"],"cli":null},"imports":["from mac_alias import Alias"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mac_alias import Alias\n\n# Create an Alias from a file path (requires macOS)\nalias = Alias.from_path('/Applications')\n# Serialize to bytes\nalias_bytes = alias.to_bytes()\n\n# Later, read alias and resolve\nalias2 = Alias.from_bytes(alias_bytes)\npath = alias2.to_path()\nprint(path)","lang":"python","description":"Create a macOS Alias from a file path, serialize to bytes, and resolve later.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}