https://github.com/mwarkentin/iron-worker-utils
A collection of utilities for writing IronWorker tasks in Python.
https://github.com/mwarkentin/iron-worker-utils
Last synced: about 1 year ago
JSON representation
A collection of utilities for writing IronWorker tasks in Python.
- Host: GitHub
- URL: https://github.com/mwarkentin/iron-worker-utils
- Owner: mwarkentin
- License: other
- Created: 2013-05-09T13:58:18.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-29T13:32:23.000Z (about 12 years ago)
- Last Synced: 2025-02-05T23:57:11.173Z (over 1 year ago)
- Language: Python
- Size: 180 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iron-worker-utils
A collection of utilities for writing [IronWorker](http://www.iron.io/worker) tasks in Python.
## Functions
### get_payload
```py
>>> from iron_worker_utils import get_payload
>>> get_payload()
{u'repo': u'mwarkentin/lab', u'domain': u'http://shrinkray.io'}
```
### get_task_id
```py
>>> from iron_worker_utils import get_task_id
>>> get_task_id()
58f38c1512e3687da7be0696cbc132de29f3a1a6
```
## Installation
Add `pip "iron-worker-utils"` to your `.worker` file.
If you'd like to pin the version, use `pip "iron-worker-utils", "==0.1.1"`