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

Executable modules

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

python-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.4.13.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file mac-colors-2019.4.13.tar.gz.

File metadata

  • Download URL: mac-colors-2019.4.13.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for mac-colors-2019.4.13.tar.gz
Algorithm Hash digest
SHA256 72d3e0d36a706944c5c1d44475d49198b0d918b61341a8adaa4527fd01aa44b1
MD5 877ff07a6efe3139a3716d043cdf54a9
BLAKE2b-256 7f9009586cc3bd392728bb502b53f8080990c7fe13a84ca895bfa5938aac1d93

See more details on using hashes here.

Supported by

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