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
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-2019.4.13.tar.gz
(2.6 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72d3e0d36a706944c5c1d44475d49198b0d918b61341a8adaa4527fd01aa44b1
|
|
| MD5 |
877ff07a6efe3139a3716d043cdf54a9
|
|
| BLAKE2b-256 |
7f9009586cc3bd392728bb502b53f8080990c7fe13a84ca895bfa5938aac1d93
|