Skip to main content

MacOS Finder color tags

Project description

Installation

$ [sudo] pip install mac-colors

Requirements

$ brew install tag

Functions

function __doc__
mac_colors.add(tags, path) add tags
mac_colors.get(path) return dictionary with path as key and tags as values
mac_colors.replace(tags, path) replace tags
mac_colors.rm(tags, path) remove tags

CLI

usage __doc__
python -m mac_colors.blue path ... set blue tag
python -m mac_colors.gray path ... set gray tag
python -m mac_colors.green path ... set green tag
python -m mac_colors.grey path ... set gray tag
python -m mac_colors.none path ... remove all color tags
python -m mac_colors.orange path ... set orange tag
python -m mac_colors.purple path ... set purple tag
python -m mac_colors.red path ... set red tag
python -m mac_colors.yellow path ... set yellow tag

Examples

>>> import mac_colors
>>> path = ["path/to/file"]
>>> mac_colors.red(path)

get

>>> mac_colors.get(path)
{'path/to/file':["red"]}

set multiple colors

>>> mac_colors.replace(["blue","red"],path)

remove colors

>>> mac_colors.none(path)

Links

readme-generator

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-colors-2019.3.22.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

mac_colors-2019.3.22-py2.py3-none-any.whl (92.0 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