mac-alias
Generate/parse macOS Alias records from Python
What it is and what it does
mac_alias is a pure-Python library for generating and parsing binary Alias and Bookmark records, which are macOS file reference formats. It lets you read metadata about file references and create new alias records programmatically from Python code. The package is macOS-specific; while written in pure Python, it relies on OS X-specific code paths to generate proper Alias or Bookmark records for files, making it unsuitable for cross-platform use.
The library has no runtime dependencies and installs cleanly as a wheel. It supports modern Python versions and is actively maintained, with recent repository activity. It is useful for tools that need to interact with macOS file aliases or bookmarks at the binary level, such as disk image builders or file management utilities.
Use it for:
- Build macOS disk images that include file aliases pointing to specific locations
- Parse existing Alias or Bookmark records to extract file reference metadata
- Programmatically create file shortcuts for macOS applications
- Integrate file alias handling into macOS-specific automation or installer scripts
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
mac_alias generates and reads binary Alias and Bookmark records for macOS files from Python code.
Yes, if you are working on macOS and need to generate or parse Alias or Bookmark records. The package is stable, has no dependencies, installs easily, carries a permissive MIT license, and is actively maintained. It is not useful on non-macOS platforms.
Install
mac-alias on PyPI
pip
pip install mac-aliasuv
uv add mac-aliaspoetry
poetry add mac-aliasInstalling mac-alias
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits and support for current Python versions.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal friction.
Quickstart
pip install mac-alias
import mac_alias
# Generate or read binary Alias and Bookmark records
macOS only; not portable to other platforms
Verify before relying
- Whether the package works on non-macOS systems despite documentation stating it is not portable to other platforms
- Performance characteristics when working with large numbers of alias or bookmark records
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 253 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 180,789/month — #10,141 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mac_alias-2.2.3-py3-none-any.whl
Keywords: mac_alias
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
ds-storeRead and modify macOS Finder .DS_Store files…
permissive · top 15,000 on PyPI
dmgbuilddmgbuild creates macOS disk images (.dmg files)…
permissive · top 15,000 on PyPI
pymarcpymarc reads, writes, and modifies MARC21…
unclear · top 15,000 on PyPI
ifaddrEnumerate network interfaces and their IP…
permissive · top 5,000 on PyPI
pyobjc-framework-MetricKitProvides Python bindings to macOS's MetricKit…
permissive · top 15,000 on PyPI
pyobjc-framework-CoreMIDIProvides Python bindings to macOS's CoreMIDI…
permissive · top 15,000 on PyPI
dbfreadReads DBF database files (dBase, Visual FoxPro,…
permissive · top 5,000 on PyPI
getmacRetrieves MAC addresses of local network…
permissive · top 15,000 on PyPI
pyobjc-framework-ContactsProvides Python bindings to macOS's Contacts…
permissive · top 15,000 on PyPI
SoundCardSoundCard plays and records audio across Linux,…
permissive · top 15,000 on PyPI