Skip to main content

Tools that interact with Agilent's iLab REST architecture.

Project description


A set of tools that interact with Ilab's REST database.


Was designed to implement a simple way to interact with Ilab's REST architecture.


  • contains a class to use simple REST functions such as GET, PUT, POST, and DELETE.
  • contains a class to interact with the REST architecture outside of the simple REST verbs, such as:
    • get_service requests which returns the service requests with a given status.
    • get_service_cost which returns the cost associated with a given service_id.
    • get_request_charges which returns all of the charges of the request id.
    • get_milestones which returns all of the milestones associated with a service request.
    • get_custom_forms which returns all of the custom forms associated with the request id.
  • extract_project_info which gets the relevant project info from a request.
  • extract_custom_form_info which gets all of the fields of a form.

Code Example

from ua_ilab_tools import ilab_api, ua_ilab_tools

api = ilab_api.IlabApi(core_id, auth_creds)
# "token" contains the Authorization information for headers.
tools = ua_ilab_tools.IlabTools(core_id, token)

prj_info = ua_ilab_tools.extract_project_info(soup)
form_info = ua_ilab_tools.extract_custom_form_info(
    req_id, form_id, form_soup)


pip install ua-ilab-tools


You will have to create a file named "ilab_creds.json" in the format of:

        "token": "Bearer {your token}",
        "core_id": "{your core_id}"

pip install --update nose
cd ./ua_ilab_tools
cd ./tests

How to Use

  • Get general endpoints
  • Get information associated with specific service requests.
  • Get data associated with specific projects and custom_forms.


sterns1 EtienneThompson



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ua-ilab-tools, version 2.1.0
Filename, size File type Python version Upload date Hashes
Filename, size ua_ilab_tools-2.1.0-py3-none-any.whl (11.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ua_ilab_tools-2.1.0.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page