MacOS Finder color tags
Project description
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
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for mac_colors-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29f4f841f071520212585f18d4fcfab3d8b3a0afa2330bd18fadf7ab4c5cdbaa |
|
MD5 | b39f5b2bc3d45b74c19d15ad0caa7ecc |
|
BLAKE2b-256 | 68de68568f6a45be502f45db84823ab9f90994f241a00a17d7fc018c3d0a84ad |