Metadata-Version: 2.1
Name: mac-tag
Version: 0.0.0
Summary: MacOS tags
Home-page: https://github.com/looking-for-a-job/mac-tag.py
License: UNKNOWN
Keywords: tags
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development
Description-Content-Type: text/markdown
Requires-Dist: public
Requires-Dist: runcmd
Requires-Dist: setuptools
Requires-Dist: this-is

[![](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/pypi/mac-tag/)

### Install
```bash
$ [sudo] pip install mac-tag
```

### Requirements
```bash
$ brew install tag
```

### Examples
add, set
```python
>>> mac_tag.add(["red","blue"],["path1","path2"])
>>> mac_tag.set(["red","blue"],["path1","path2"])
```

`remove(tags,path)` - Remove tags from file
```python
>>> mac_tag.remove(["red"],["path1","path2"])
>>> mac_tag.remove(["*"],["path1","path2"])
```


`list(path)` - List the tags on file
```python
>>> mac_tag.list(["path1"])
{'path1': ['blue', 'red']}
```

`match(tags,path)` - Display files with matching tags
```python
>>> mac_tag.match(["red","blue"],["path1"])
{'path': ['blue', 'red']}
```

`find(tags,path)` - Find all files with tags, limited to paths if present
```python
>>> mac_tag.find(["red"])
["path1","path2"]
```

### Links
+   [github.com/jdberry/tag](https://github.com/jdberry/tag)

