Metadata-Version: 2.1
Name: launchctl
Version: 2019.3.12
Summary: MacOS launchctl
Home-page: https://github.com/looking-for-a-job/launchctl.py
License: UNKNOWN
Keywords: launchctl
Platform: UNKNOWN
Classifier: Environment :: MacOS X
Classifier: License :: Public Domain
Classifier: Operating System :: MacOS
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: setuptools
Requires-Dist: values

<!--
https://pypi.org/project/readme-generator/
-->

[![](https://img.shields.io/badge/OS-MacOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/pyversions/launchctl.svg?longCache=True)](https://pypi.org/project/launchctl/)

#### Installation
```bash
$ [sudo] pip install launchctl
```

#### Classes
class|`__doc__`
-|-
`launchctl.Job` |launchctl Job class. attrs: `pid`, `status`, `label`

#### Functions
function|`__doc__`
-|-
`launchctl.job(label)` |return launchctl Job by label
`launchctl.jobs()` |return a list of launchctl jobs
`launchctl.load(args)` |`launchctl load args ...`
`launchctl.remove(label)` |`launchctl remove label`
`launchctl.start(label)` |`launchctl start label`
`launchctl.stop(label)` |`launchctl stop label`
`launchctl.unload(args)` |`launchctl unload args ...`

#### Examples
```python
import launchctl

for job in launchctl.jobs():
    print("%s %s %s" % (job.pid if job.pid else "", job.status, job.label))

launchctl.job("com.apple.Finder")
{...}
```

#### Related projects
+   [`launchd-env` - launchd.plist environment variables](https://pypi.org/project/launchd-env/)
+   [`launchd-exec` - execute script via launchd](https://pypi.org/project/launchd-exec/)
+   [`launchd-generator` - launchd.plist generator](https://pypi.org/project/launchd-generator/)
+   [`launchd-logs` - launchd.plist logs](https://pypi.org/project/launchd-logs/)
+   [`launchctl.py`](https://pypi.org/project/launchctl/)

#### Links
+   [launchctl Man Page](https://ss64.com/osx/launchctl.html)

<p align="center">
    <a href="https://pypi.org/project/readme-generator/">readme-generator</a>
</p>

