Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (21 loc) · 753 Bytes

client-library.md

File metadata and controls

28 lines (21 loc) · 753 Bytes

HIL Client Library

Description

The HIL API Client Library for Python is designed for Python client-application developers. It offers simple access to HIL APIs.

How to Install HIL Modules?

$ pip install git+https://github.com/cci-moc/hil

How to Get Started?

import os
from hil.client.client import Client, RequestsHTTPClient

ep = os.environ.get('HIL_ENDPOINT')
basic_username = os.getenv('HIL_USERNAME')
basic_password = os.getenv('HIL_PASSWORD')

http_client = RequestsHTTPClient()
http_client.auth = (basic_username, basic_password)
C = Client(ep, http_client)
print C.project.create("test-project")

More Examples.

leasing script