Skip to main content

Install

$ [sudo] pip install mac-colors

Requirements

$ brew install tag

Functions

function description
mac_colors.blue(path) set blue tag
mac_colors.get(path) return dictionary with path as key and tags as values
mac_colors.gray(path) set gray tag
mac_colors.green(path) set green tag
mac_colors.grey(path) set grey tag
mac_colors.none(path) remove all color tags
mac_colors.orange(path) set orange tag
mac_colors.purple(path) set purple tag
mac_colors.red(path) set red tag
mac_colors.replace(tags, path) replace tags
mac_colors.yellow(path) set yellow tag

CLI

usage description
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-md - README.md generator

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-2018.11.19.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mac_colors-2018.11.19-py2.py3-none-any.whl (22.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mac-colors-2018.11.19.tar.gz
  • Upload date:
  • Size: 2.3 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

Hashes for mac-colors-2018.11.19.tar.gz
Algorithm Hash digest
SHA256 01c35ccde89c299256a3b0c0223863a74c7e482043219dacb5cfb05106d47f62
MD5 97443b90350ecb5080494fe22e818ee1
BLAKE2b-256 37d34939dc5c14ab068e5fb579d258ca2db6f0c330dc963f4691a3d6474d1d33

See more details on using hashes here.

File details

Details for the file mac_colors-2018.11.19-py2.py3-none-any.whl.

File metadata

  • Download URL: mac_colors-2018.11.19-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.3 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

Hashes for mac_colors-2018.11.19-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29f4f841f071520212585f18d4fcfab3d8b3a0afa2330bd18fadf7ab4c5cdbaa
MD5 b39f5b2bc3d45b74c19d15ad0caa7ecc
BLAKE2b-256 68de68568f6a45be502f45db84823ab9f90994f241a00a17d7fc018c3d0a84ad

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