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 details)
Built Distribution
File details
Details for the file mac-tag-0.0.0.tar.gz
.
File metadata
- Download URL: mac-tag-0.0.0.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 | d57426a710a88d43c52cde44691747abd98fe777af052a0f094f500e30adb274 |
|
MD5 | 0973d5174a8e23bad7e95d01a1f48045 |
|
BLAKE2b-256 | d05cfc4fc1cae5a63e85e36437c2efb2904c5bf00210edd87db2ab917a69ccef |
File details
Details for the file mac_tag-0.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mac_tag-0.0.0-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 | a39abce9f09a352dcf3775ac0cf7d8b418f1e20f0e1b55f76e708d5b37905abe |
|
MD5 | bdc3a0eda946408c76cc86694452f23a |
|
BLAKE2b-256 | cd574268f4a4e5aaa6c27af485fbc3731ce4e1a2d37bbfe94fbe09e2d9ed8de7 |