Skip to main content

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

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 details)

Uploaded Source

Built Distribution

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

mac_colors-2019.3.22-py2.py3-none-any.whl (92.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for mac-colors-2019.3.22.tar.gz
Algorithm Hash digest
SHA256 b1b1c79a46c2be7f8eb16adba8a3ce56673907f0c626ff82d3fd74a058117438
MD5 29d78d9a952a6f95b89fd72690b94ec0
BLAKE2b-256 d9ebbd659895387e2ab138913e98fdca3673bca30d03b91063d2432ff7a054db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mac_colors-2019.3.22-py2.py3-none-any.whl
  • Upload date:
  • Size: 92.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for mac_colors-2019.3.22-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 15a0a6663deab2f82f833a3cd8a5c86f65c2258093645f6f348a33d10cabd47a
MD5 bc8f8d9bbf1413a9233e2f4d828cc070
BLAKE2b-256 8b80bfea51b8dfe011f044e591dfbc8ca2a356c824a661c80280220e82dcdcca

See more details on using hashes here.

Release history Release notifications | RSS feed

2020.12.3

1 file

2020.7.1

1 file

2019.4.13

1 file

This release

2019.3.22 This release

2 files

2018.11.19

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page