Library to interact with qcentroid agent api
Project description
qcentroid-agent-cli
Client library to interact with qcentroid agent API.
Functions
Functions:
- obtain status, and context
- obtain input data
- send output data
- set status
- send execution logs
Install
pip install qcentroid-agent-cli
Use
As external agent:
from qcentroid-agent-cli import QCentroidSolverClient
base_url="https://api.qcentroid.xyz"
api_key="1234-4567-8910"
solver_id="123"
def main():
print("Hello QCentroid Agent!")
solver = QCentroidSolverClient(base_url, api_key, solver_id)
while True: # put some escape function
response = solver.obtainJob()
if response is not None:
execute_on_response(response)
# Wait for 1 minute before the next iteration
time.sleep(60)
if __name__ == "__main__":
main()
As agent:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for qcentroid_agent_cli-0.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d34651d089953c7221ed1a1229ba9a9f83f8f5556b438cf8bae57cf8b00ab5c |
|
MD5 | 46e04fe24ccc990ce3e2c8d4eaa8032a |
|
BLAKE2b-256 | 24c4cbac7439e82fa6bfb5f4403507fdd71e4a31d6e7f72c86024c5283428687 |
Close
Hashes for qcentroid_agent_cli-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4dfe02c512e37f9bb927ab9075dec835fbdd975f4075e971ec0a2c46664cf06 |
|
MD5 | 4373f8a9433c4bcc6ec0cfa2ab4eb61d |
|
BLAKE2b-256 | 590dc884f0e85a9df00f76f7fdb4eb57042379213372c70adbf49575f842f83d |