Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Client libraries to interact with the datazilla database.
Python
tree: 689c19a496

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
dzclient
.gitignore
README.md
setup.py

README.md

datazilla_client

Client libraries to interact with the datazilla database.

Usage

from dzclient import DatazillaRequest, DatazillaResult

res = DatazillaResult()
res.add_testsuite("suite_name", {"test_name": [1, 2, 3]})
res.add_test_results("suite_name", "another_test", [2, 3, 4])

req = DatazillaRequest(
    host="datazilla.mozilla.org",
    project="project",
    oauth_key="oauth-key",
    oauth_secret="oauth-secret",
    machine_name="qm-pxp01",
    os="linux",
    os_version="Ubuntu 11.10",
    platform="x86_64",
    build_name="Firefox",
    version="14.0a2",
    revision="785345035a3b",
    branch="Mozilla-Aurora",
    id="20120228122102",
    )
req.add_datazilla_result(res)
req.submit()

The OAuth key and secret for your project should be supplied to you by the Datazilla team.

If you don't want to use DatazillaResult to build up the data structure to send, you can still use DatazillaRequest to send it:

req = DatazillaRequest(
    host="datazilla.mozilla.org",
    project="project",
    oauth_key="oauth-key",
    oauth_secret="oauth-secret",
    )
data_to_send = ...
req.send(data_to_send)

Development

To run the datazilla_client test suite, run python setup.py test.

Something went wrong with that request. Please try again.