mirror of
https://github.com/andrewpetrochenkov/mac-tag.py.git
synced 2026-06-21 00:11:04 -06:00
🍎 📂 #️⃣ macOS Finder tags. github.com/jdberry/tag python implementation
- Python 100%
| .github/workflows | ||
| mac_tag | ||
| tests/mac-tag/examples | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
| UNLICENSE | ||
Installation
$ [sudo] pip install mac-tag
Requirements
$ brew install tag
Examples
>>> mac_tag.update(["Red","Blue"],["path1","path2"])
>>> mac_tag.add(["Green"],["path1","path2"])
>>> mac_tag.get(["path1"])
{'path1': ['Blue', 'Red', 'Green']}
>>> mac_tag.remove(["Red"],["path1","path2"])
>>> mac_tag.remove(["*"],["path1","path2"])