Skip to content

Project-HQ/hqcore-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hqcore-python

Python wrapper over the HQ Core REST API. Useful for testing.

    from hqcore import HQCore
    
    hq = HQCore(host="127.0.0.1",port=8080)

    print("List Devices...")
    print(hq.get_devices())
   
    print("Adding device...")
    device= hq.add_device("device_name", "owner","description of the device")
    device_id= device["id"]
    
    print("Adding cluster...")
    cluster= hq.add_cluster("cluster_name","Description of the cluster")
    cluster_id= cluster["id"]
    

About

Python Wrapper library for working with HQCore API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages