Metadata-Version: 2.1
Name: pyrundeck
Version: 0.9.10
Summary: Python REST API client for Rundeck 2.6+
Home-page: https://github.com/pschmitt/pyrundeck
Author: Philipp Schmitt
Author-email: philipp@schmitt.co
License: GPL3
Platform: UNKNOWN
Description-Content-Type: text/markdown

# Rundeck REST API client

![PyPI](https://img.shields.io/pypi/v/pyrundeck)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyrundeck)
![PyPI - License](https://img.shields.io/pypi/l/pyrundeck)
![Python Lint](https://github.com/pschmitt/pyrundeck/workflows/Python%20Lint/badge.svg)

This is a Python REST API client for Rundeck 2.6+

## Example

```python
from pyrundeck import Rundeck

rundeck = Rundeck('http://rundeck-url',
                  token='sometoken',
                  api_version=32,  # this is not mandatory, it defaults to 18
                 )

run = rundeck.run_job(RUNDECK_JOB_ID, options={'option1': 'foo'})

running_jobs = rundeck.get_executions_for_job(job_id=RUNDECK_JOB_ID, status='running')

for job in running_jobs['executions']:
  print("%s is running" % job['id'])
```

A token can be generated in the 'profile' page of Rundeck. Alternatively you
can login with a username and password.


## See also

- https://github.com/marklap/rundeckrun

## LICENSE

GPL3


