MacOS tags
Project description
Install
$ [sudo] pip install mac-tag
Requirements
$ brew install tag
Examples
add, set
>>> mac_tag.add(["red","blue"],["path1","path2"])
>>> mac_tag.set(["red","blue"],["path1","path2"])
remove(tags,path)
- Remove tags from file
>>> mac_tag.remove(["red"],["path1","path2"])
>>> mac_tag.remove(["*"],["path1","path2"])
list(path)
- List the tags on file
>>> mac_tag.list(["path1"])
{'path1': ['blue', 'red']}
match(tags,path)
- Display files with matching tags
>>> mac_tag.match(["red","blue"],["path1"])
{'path': ['blue', 'red']}
find(tags,path)
- Find all files with tags, limited to paths if present
>>> mac_tag.find(["red"])
["path1","path2"]
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mac-tag-0.0.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for mac_tag-0.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a39abce9f09a352dcf3775ac0cf7d8b418f1e20f0e1b55f76e708d5b37905abe |
|
MD5 | bdc3a0eda946408c76cc86694452f23a |
|
BLAKE2b-256 | cd574268f4a4e5aaa6c27af485fbc3731ce4e1a2d37bbfe94fbe09e2d9ed8de7 |