cuckooapi

Cuckoo REST API client for Python.


Keywords
cuckoo, api, drest
License
LGPL-3.0
Install
pip install cuckooapi==1.0.0

Documentation

cuckooapi

Client for Cuckoo's REST API.

Installation Latest Version Coverage TravisCI

$ pip install cuckooapi

Usage example

>>> from cuckooapi import CuckooAPI
>>> api=CuckooAPI('http://cuckoohost:8090')
>>> response=api.cuckoo_status.get()
>>> response.data
{u'hostname': u'cuckoohost',
 u'machines': {u'available': 18, u'total': 18},
 u'tasks': {u'completed': 76,
  u'pending': 0,
  u'reported': 48268,
  u'running': 0,
  u'total': 48636},
 u'version': u'1.0-dev'}
>>> response.data['tasks']['pending']
0
>>> response.data['tasks']['running']
0

Endpoint Reference

https://github.com/cuckoobox/cuckoo/blob/master/docs/book/src/usage/api.rst