Skip to main content

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


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)

Uploaded Source

Built Distribution

mac_tag-0.0.0-py2.py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page