Tool Registry Library for Python
Project description
Tool Registry Client Library for Python
Overview
TBA
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/Sage-Bionetworks/tool-registry-schemas
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 toolregistryclient
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 toolregistryclient
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import toolregistryclient
from toolregistryclient.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://example.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = toolregistryclient.Configuration(
host = "http://example.com/api/v1"
)
# Enter a context with an instance of the API client
with toolregistryclient.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = toolregistryclient.ToolApi(api_client)
tool = toolregistryclient.Tool() # Tool |
try:
# Add a tool
api_response = api_instance.create_tool(tool)
pprint(api_response)
except ApiException as e:
print("Exception when calling ToolApi->create_tool: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://example.com/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ToolApi | create_tool | POST /tools | Add a tool |
ToolApi | list_tools | GET /tools | List the tools in the registry |
Documentation For Models
Documentation For Authorization
All endpoints do not require authorization.
Author
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
Hashes for tool-registry-client-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c478e96e727f7150f1908c80e3cf5bbdca7e22a0e24355a03decdc5e6b053084 |
|
MD5 | 7af65757976d0dae5619248584361068 |
|
BLAKE2b-256 | 293c129f23919a24cdd4fbdd20c19c5800d5243dcbb73abcd86472c649d97f0b |
Hashes for tool_registry_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68a8919599c47e40272b917328715307d1344edf9ae388fc91ad2d8d5efcaf9 |
|
MD5 | baa1ba2fc7cfe25120fea44d4c7f58d4 |
|
BLAKE2b-256 | 16de35200ec4e283a03d49452ba3c49b87a9988cce1a93525ca2711cfcc9cd51 |