# polyaxon-sdk
Polyaxon SDKs and REST API specification.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.3.0-rc1
- Package version: 1.3.0-rc1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://github.com/polyaxon/polyaxon](https://github.com/polyaxon/polyaxon)
## 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:
```sh
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:
```python
import polyaxon_sdk
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import polyaxon_sdk
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import polyaxon_sdk
from polyaxon_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = polyaxon_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration = polyaxon_sdk.Configuration(
host = "http://localhost",
api_key = {
'Authorization': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# Enter a context with an instance of the API client
with polyaxon_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = polyaxon_sdk.AgentsV1Api(api_client)
owner = 'owner_example' # str | Owner of the namespace
body = polyaxon_sdk.V1Agent() # V1Agent | Agent body
try:
# Create agent
api_response = api_instance.create_agent(owner, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AgentsV1Api->create_agent: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AgentsV1Api* | [**create_agent**](docs/AgentsV1Api.md#create_agent) | **POST** /api/v1/orgs/{owner}/agents | Create agent
*AgentsV1Api* | [**create_agent_status**](docs/AgentsV1Api.md#create_agent_status) | **POST** /api/v1/orgs/{owner}/agents/{uuid}/statuses | Create new run status
*AgentsV1Api* | [**delete_agent**](docs/AgentsV1Api.md#delete_agent) | **DELETE** /api/v1/orgs/{owner}/agents/{uuid} | Delete agent
*AgentsV1Api* | [**get_agent**](docs/AgentsV1Api.md#get_agent) | **GET** /api/v1/orgs/{owner}/agents/{uuid} | Get agent
*AgentsV1Api* | [**get_agent_state**](docs/AgentsV1Api.md#get_agent_state) | **GET** /api/v1/orgs/{owner}/agents/{uuid}/state | Get State (queues/runs)
*AgentsV1Api* | [**get_agent_statuses**](docs/AgentsV1Api.md#get_agent_statuses) | **GET** /api/v1/orgs/{owner}/agents/{uuid}/statuses | Get agent status
*AgentsV1Api* | [**get_agent_token**](docs/AgentsV1Api.md#get_agent_token) | **GET** /api/v1/orgs/{owner}/agents/{agent}/token | Get agent token
*AgentsV1Api* | [**list_agent_names**](docs/AgentsV1Api.md#list_agent_names) | **GET** /api/v1/orgs/{owner}/agents/names | List agents names
*AgentsV1Api* | [**list_agents**](docs/AgentsV1Api.md#list_agents) | **GET** /api/v1/orgs/{owner}/agents | List agents
*AgentsV1Api* | [**patch_agent**](docs/AgentsV1Api.md#patch_agent) | **PATCH** /api/v1/orgs/{owner}/agents/{agent.uuid} | Patch agent
*AgentsV1Api* | [**patch_agent_token**](docs/AgentsV1Api.md#patch_agent_token) | **PATCH** /api/v1/orgs/{owner}/agents/{agent}/token | Patch agent token
*AgentsV1Api* | [**sync_agent**](docs/AgentsV1Api.md#sync_agent) | **PATCH** /api/v1/orgs/{owner}/agents/{agent.uuid}/sync | Sync agent
*AgentsV1Api* | [**update_agent**](docs/AgentsV1Api.md#update_agent) | **PUT** /api/v1/orgs/{owner}/agents/{agent.uuid} | Update agent
*AgentsV1Api* | [**update_agent_token**](docs/AgentsV1Api.md#update_agent_token) | **PUT** /api/v1/orgs/{owner}/agents/{agent}/token | Update agent token
*ArtifactsStoresV1Api* | [**upload_artifact**](docs/ArtifactsStoresV1Api.md#upload_artifact) | **POST** /api/v1/catalogs/{owner}/artifacts/{uuid}/upload | Upload artifact to a store
*AuthV1Api* | [**change_password**](docs/AuthV1Api.md#change_password) | **POST** /api/v1/auth/change-password | Change password
*AuthV1Api* | [**login**](docs/AuthV1Api.md#login) | **POST** /api/v1/auth/token | Login
*AuthV1Api* | [**reset_password**](docs/AuthV1Api.md#reset_password) | **POST** /api/v1/auth/reset-password | Reset password
*AuthV1Api* | [**reset_password_confirm**](docs/AuthV1Api.md#reset_password_confirm) | **POST** /api/v1/auth/reset-password-confirm | Reset password confirm
*AuthV1Api* | [**signup**](docs/AuthV1Api.md#signup) | **POST** /api/v1/auth/signup | Signup
*ComponentHubV1Api* | [**create_component_hub**](docs/ComponentHubV1Api.md#create_component_hub) | **POST** /api/v1/orgs/{owner}/components | Create hub component
*ComponentHubV1Api* | [**delete_component_hub**](docs/ComponentHubV1Api.md#delete_component_hub) | **DELETE** /api/v1/orgs/{owner}/components/{uuid} | Delete hub component
*ComponentHubV1Api* | [**get_component_hub**](docs/ComponentHubV1Api.md#get_component_hub) | **GET** /api/v1/orgs/{owner}/components/{uuid} | Get hub component
*ComponentHubV1Api* | [**list_component_hub_names**](docs/ComponentHubV1Api.md#list_component_hub_names) | **GET** /api/v1/orgs/{owner}/components/names | List hub component names
*ComponentHubV1Api* | [**list_component_hubs**](docs/ComponentHubV1Api.md#list_component_hubs) | **GET** /api/v1/orgs/{owner}/components | List hub components
*ComponentHubV1Api* | [**patch_component_hub**](docs/ComponentHubV1Api.md#patch_component_hub) | **PATCH** /api/v1/orgs/{owner}/components/{component.uuid} | Patch hub component
*ComponentHubV1Api* | [**update_component_hub**](docs/ComponentHubV1Api.md#update_component_hub) | **PUT** /api/v1/orgs/{owner}/components/{component.uuid} | Update hub component
*ConnectionsV1Api* | [**create_connection**](docs/ConnectionsV1Api.md#create_connection) | **POST** /api/v1/orgs/{owner}/connections | Create connection
*ConnectionsV1Api* | [**delete_connection**](docs/ConnectionsV1Api.md#delete_connection) | **DELETE** /api/v1/orgs/{owner}/connections/{uuid} | Delete connection
*ConnectionsV1Api* | [**get_connection**](docs/ConnectionsV1Api.md#get_connection) | **GET** /api/v1/orgs/{owner}/connections/{uuid} | Get connection
*ConnectionsV1Api* | [**list_connection_names**](docs/ConnectionsV1Api.md#list_connection_names) | **GET** /api/v1/orgs/{owner}/connections/names | List connections names
*ConnectionsV1Api* | [**list_connections**](docs/ConnectionsV1Api.md#list_connections) | **GET** /api/v1/orgs/{owner}/connections | List connections
*ConnectionsV1Api* | [**patch_connection**](docs/ConnectionsV1Api.md#patch_connection) | **PATCH** /api/v1/orgs/{owner}/connections/{connection.uuid} | Patch connection
*ConnectionsV1Api* | [**update_connection**](docs/ConnectionsV1Api.md#update_connection) | **PUT** /api/v1/orgs/{owner}/connections/{connection.uuid} | Update connection
*DashboardsV1Api* | [**create_dashboard**](docs/DashboardsV1Api.md#create_dashboard)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | polyaxon-sdk-1.3.0rc1.tar.gz (227个子文件)
setup.cfg 69B
README.md 42KB
PKG-INFO 384B
PKG-INFO 384B
runs_v1_api.py 326KB
projects_v1_api.py 130KB
organizations_v1_api.py 130KB
agents_v1_api.py 83KB
teams_v1_api.py 80KB
queues_v1_api.py 59KB
project_dashboards_v1_api.py 54KB
project_searches_v1_api.py 53KB
users_v1_api.py 45KB
component_hub_v1_api.py 43KB
connections_v1_api.py 43KB
model_registry_v1_api.py 43KB
dashboards_v1_api.py 42KB
presets_v1_api.py 42KB
searches_v1_api.py 42KB
api_client.py 26KB
auth_v1_api.py 25KB
v1_operation.py 22KB
v1_schemas.py 22KB
v1_run.py 21KB
v1_environment.py 20KB
v1_compiled_operation.py 19KB
v1_spark.py 17KB
versions_v1_api.py 16KB
__init__.py 14KB
configuration.py 14KB
v1_component.py 13KB
__init__.py 13KB
rest.py 13KB
v1_project.py 12KB
v1_hp_params.py 12KB
v1_event.py 12KB
v1_agent.py 11KB
v1_dask.py 11KB
v1_organization.py 11KB
v1_io.py 11KB
v1_dockerfile_type.py 11KB
v1_hyperband.py 10KB
v1_plugins.py 10KB
v1_bayes.py 10KB
v1_service.py 10KB
agent_state_response_agent_state.py 9KB
v1_run_schema.py 9KB
v1_hyperopt.py 9KB
v1_connection_response.py 9KB
v1_dashboard.py 9KB
v1_token.py 9KB
v1_queue.py 9KB
v1_preset.py 9KB
v1_dag.py 9KB
v1_polyaxon_sidecar_container.py 9KB
v1_model_registry.py 8KB
artifacts_stores_v1_api.py 8KB
v1_component_hub.py 8KB
v1_truncation_stopping_policy.py 8KB
v1_run_settings.py 8KB
v1_search.py 8KB
v1_entity_notification_body.py 8KB
v1_iterative.py 8KB
v1_kf_replica.py 8KB
v1_job.py 8KB
v1_connection_type.py 8KB
v1_project_settings.py 8KB
protobuf_any.py 8KB
v1_connection_schema.py 8KB
v1_matrix.py 8KB
v1_run_artifact.py 8KB
v1_status_condition.py 7KB
v1_interval_schedule.py 7KB
v1_random_search.py 7KB
v1_grid_search.py 7KB
v1_cron_schedule.py 7KB
v1_team_member.py 7KB
v1_event_audio.py 7KB
v1_diff_stopping_policy.py 7KB
v1_init.py 7KB
v1_tf_job.py 7KB
v1_param.py 7KB
v1_metric_early_stopping.py 7KB
v1_installation.py 7KB
v1_early_stopping.py 7KB
v1_mpi_job.py 7KB
v1_organization_member.py 7KB
v1_spark_replica.py 7KB
v1_user_singup.py 7KB
v1_event_video.py 7KB
v1_operation_body.py 6KB
v1_median_stopping_policy.py 6KB
v1_hook.py 6KB
v1_team.py 6KB
v1_reference.py 6KB
v1_action.py 6KB
v1_search_spec.py 6KB
v1_user.py 6KB
v1_polyaxon_init_container.py 6KB
v1_list_organization_members_response.py 6KB
共 227 条
- 1
- 2
- 3
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功