Skip to content

summer1988/atxserver2-python-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atxserver2 python client

Make it easy to use atxserver2

Requirements

  • Python 3.6+

Install

pip install --upgrade atxserver2-python-client

Usage

import atxserver2

client = atxserver2.Client("http://localhost:4000", "xxxx-your-token-here-xxxxx")
for device in client.list_device():
    print("Device", device)
    device.acquire() # 占用设备
    device.release() # 释放设备

    print(device.atx_agent_address) # 获取设备信息

About

atxserver2 python client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%