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 details)
Built Distribution
File details
Details for the file mac-tag-0.0.1.tar.gz
.
File metadata
- Download URL: mac-tag-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d643bb000bf931e1e7bab306863500efc36cfac9506a10333279c2675ee4fe8f |
|
MD5 | e63a9ef5636ff28724e05e912875c688 |
|
BLAKE2b-256 | b0cf93d379e5d9584d6e6348d68e477926d6f2d03274470fcfb3804c1dda9c60 |
File details
Details for the file mac_tag-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: mac_tag-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf27e9fcadc6b3dbc5df613760fbd806e7b3be55ebb681fdaddfae5178416df |
|
MD5 | 5e6105c5bfef253213f4b639591309ef |
|
BLAKE2b-256 | ecb817862477ef047903ff1d26e75a491d9ade2e7dd60a7bbc50a2c1bf29bd26 |