Skip to content

Python client library for consume resources in Agent Platforms

Notifications You must be signed in to change notification settings

mm-uh/agent-libpython

Repository files navigation

LibAgent

This is a specification for openapi using

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 0.0.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import lib_agent 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import lib_agent

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import lib_agent
from lib_agent.rest import ApiException
from pprint import pprint


# Defining host is optional and default to http://agentplatform.grs.uh.cu/api/v1
configuration.host = "http://agentplatform.grs.uh.cu/api/v1"
# Create an instance of the API class
api_instance = lib_agent.DefaultApi(lib_agent.ApiClient(configuration))
body = lib_agent.UpdaterAgent() # UpdaterAgent | Endpoints to add

try:
    api_instance.add_endpoints(body)
except ApiException as e:
    print("Exception when calling DefaultApi->add_endpoints: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://agentplatform.grs.uh.cu/api/v1

Class Method HTTP request Description
DefaultApi add_endpoints POST /addEndpoints
DefaultApi edit_agent POST /editAgent
DefaultApi get_agent GET /getAgent/{Name}
DefaultApi get_agents_by_function GET /getAgentsForFunction/{Name}
DefaultApi get_agents_names GET /getAllAgentsNames
DefaultApi get_functions_names GET /getAllFunctionsNames
DefaultApi get_peers GET /getPeers
DefaultApi get_similar_agent GET /getSimilarAgents/{Name}
DefaultApi recover_agent POST /recoverAgent
DefaultApi register_agent POST /registerAgent

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

[email protected]

About

Python client library for consume resources in Agent Platforms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published