No project description provided
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.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for mac_tag-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf27e9fcadc6b3dbc5df613760fbd806e7b3be55ebb681fdaddfae5178416df |
|
MD5 | 5e6105c5bfef253213f4b639591309ef |
|
BLAKE2b-256 | ecb817862477ef047903ff1d26e75a491d9ade2e7dd60a7bbc50a2c1bf29bd26 |