Skip to content

NascentCore/sxwl-python-sdk

Repository files navigation

sxwl-client

算想云对开发者提供的API

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

  • API version: v1
  • Package version: 1.0.3
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

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 sxwl_client

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 sxwl_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import sxwl_client
from sxwl_client.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 = sxwl_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with sxwl_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = sxwl_client.SchedulerApiApi(api_client)
    adapter_name = 'adapter_name_example' # str | 

    try:
        api_response = api_instance.adapter_by_name(adapter_name)
        print("The response of SchedulerApiApi->adapter_by_name:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling SchedulerApiApi->adapter_by_name: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
SchedulerApiApi adapter_by_name GET /api/resource/adapter/name
SchedulerApiApi dataset_by_name GET /api/resource/dataset/name
SchedulerApiApi finetune POST /api/job/finetune
SchedulerApiApi finetune_status GET /api/job/finetune/status
SchedulerApiApi gpu_job_status GET /api/job/gpu/status
SchedulerApiApi gpu_job_stop POST /api/job/gpu/stop
SchedulerApiApi inference_deploy POST /api/job/inference
SchedulerApiApi inference_status GET /api/job/inference/status
SchedulerApiApi inference_stop POST /api/job/inference/stop
SchedulerApiApi job_create POST /api/job/training
SchedulerApiApi model_by_name GET /api/resource/model/name

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

apiKey

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •