Metadata-Version: 2.1
Name: mac-tag
Version: 2020.3.25
Summary: macOS Finder tags. github.com/jdberry/tag python implementation
Home-page: https://github.com/andrewp-as-is/mac-tag.py
License: Unlicense
Description: <!--
        https://pypi.org/project/readme-generator/
        https://pypi.org/project/python-readme-generator/
        -->
        
        [![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
        [![](https://img.shields.io/pypi/pyversions/mac-tag.svg?longCache=True)](https://pypi.org/project/mac-tag/)
        [![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
        
        #### Installation
        ```bash
        $ [sudo] pip install mac-tag
        ```
        
        #### Requirements
        ```bash
        $ brew install tag
        ```
        
        #### Functions
        function|`__doc__`
        -|-
        `mac_tag.add(tags, path)` |add tags to path(s)
        `mac_tag.find(tags, path=None)` |return a list of all paths with tags, limited to path(s) if present
        `mac_tag.get(path)` |return dict where keys are paths, values are lists of tags. equivalent of `tag -l`
        `mac_tag.match(tags, path)` |return a list of paths with with matching tags
        `mac_tag.parse_list_output(out)` |parse `tag -l` output and return dict
        `mac_tag.remove(tags, path)` |remove tags from path(s)
        `mac_tag.update(tags, path)` |set path(s) tags. equivalent of `tag -s | --set`
        
        #### Examples
        ```python
        >>> mac_tag.update(["Red","Blue"],["path1","path2"])
        >>> mac_tag.add(["Green"],["path1","path2"])
        ```
        
        ```python
        >>> mac_tag.get(["path1"])
        {'path1': ['Blue', 'Red', 'Green']}
        ```
        
        ```python
        >>> mac_tag.remove(["Red"],["path1","path2"])
        >>> mac_tag.remove(["*"],["path1","path2"])
        ```
        
        #### Links
        +   [github.com/jdberry/tag](https://github.com/jdberry/tag)
        
        <p align="center">
            <a href="https://pypi.org/project/python-readme-generator/">python-readme-generator</a>
        </p>
Keywords: finder,tag
Platform: UNKNOWN
Classifier: Operating System :: MacOS
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
