codedepot-ai-api


Namecodedepot-ai-api JSON
Version 1.1.1 PyPI version JSON
download
home_pageNone
SummaryAI API
upload_time2024-05-20 11:10:42
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.7
licenseNoLicense
keywords openapi openapi-generator fastapi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ai-api
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.1.0
- Package version: 1.0.0
- Generator version: 7.4.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python 3.7+

## 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 ai_api
```

### 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 ai_api
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

import ai_api
from ai_api.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 = ai_api.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.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with ai_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ai_api.DefaultApi(api_client)
    cluster_in = ai_api.ClusterIn() # ClusterIn | 

    try:
        # Create Cluster
        api_response = api_instance.create_cluster_clusters_post(cluster_in)
        print("The response of DefaultApi->create_cluster_clusters_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->create_cluster_clusters_post: %s\n" % e)

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**create_cluster_clusters_post**](docs/DefaultApi.md#create_cluster_clusters_post) | **POST** /clusters/ | Create Cluster
*DefaultApi* | [**create_job_instance_job_instances_post**](docs/DefaultApi.md#create_job_instance_job_instances_post) | **POST** /job_instances/ | Create Job Instance
*DefaultApi* | [**create_managed_ssh_key_managed_ssh_keys_post**](docs/DefaultApi.md#create_managed_ssh_key_managed_ssh_keys_post) | **POST** /managed_ssh_keys/ | Create Managed Ssh Key
*DefaultApi* | [**create_provider_providers_post**](docs/DefaultApi.md#create_provider_providers_post) | **POST** /providers/ | Create Provider
*DefaultApi* | [**create_repository_repositories_post**](docs/DefaultApi.md#create_repository_repositories_post) | **POST** /repositories/ | Create Repository
*DefaultApi* | [**create_ssh_key_ssh_keys_post**](docs/DefaultApi.md#create_ssh_key_ssh_keys_post) | **POST** /ssh_keys/ | Create Ssh Key
*DefaultApi* | [**delete_cluster_clusters_cluster_id_delete**](docs/DefaultApi.md#delete_cluster_clusters_cluster_id_delete) | **DELETE** /clusters/{cluster_id} | Delete Cluster
*DefaultApi* | [**delete_job_instance_job_instances_job_instance_id_delete**](docs/DefaultApi.md#delete_job_instance_job_instances_job_instance_id_delete) | **DELETE** /job_instances/{job_instance_id} | Delete Job Instance
*DefaultApi* | [**delete_provider_providers_provider_id_delete**](docs/DefaultApi.md#delete_provider_providers_provider_id_delete) | **DELETE** /providers/{provider_id} | Delete Provider
*DefaultApi* | [**delete_ssh_key_ssh_keys_key_name_delete**](docs/DefaultApi.md#delete_ssh_key_ssh_keys_key_name_delete) | **DELETE** /ssh_keys/{key_name} | Delete Ssh Key
*DefaultApi* | [**get_managed_ssh_key_managed_ssh_keys_get**](docs/DefaultApi.md#get_managed_ssh_key_managed_ssh_keys_get) | **GET** /managed_ssh_keys/ | Get Managed Ssh Key
*DefaultApi* | [**list_clusters_clusters_get**](docs/DefaultApi.md#list_clusters_clusters_get) | **GET** /clusters/ | List Clusters
*DefaultApi* | [**list_job_instances_job_instances_get**](docs/DefaultApi.md#list_job_instances_job_instances_get) | **GET** /job_instances/ | List Job Instances
*DefaultApi* | [**list_providers_providers_get**](docs/DefaultApi.md#list_providers_providers_get) | **GET** /providers/ | List Providers
*DefaultApi* | [**list_providers_types_provider_types_get**](docs/DefaultApi.md#list_providers_types_provider_types_get) | **GET** /provider_types/ | List Providers Types
*DefaultApi* | [**list_repositories_repositories_get**](docs/DefaultApi.md#list_repositories_repositories_get) | **GET** /repositories/ | List Repositories
*DefaultApi* | [**list_ssh_keys_ssh_keys_get**](docs/DefaultApi.md#list_ssh_keys_ssh_keys_get) | **GET** /ssh_keys/ | List Ssh Keys
*DefaultApi* | [**login_token_post**](docs/DefaultApi.md#login_token_post) | **POST** /token | Login
*DefaultApi* | [**read_cluster_clusters_cluster_id_get**](docs/DefaultApi.md#read_cluster_clusters_cluster_id_get) | **GET** /clusters/{cluster_id} | Read Cluster
*DefaultApi* | [**read_job_instance_by_name_job_instances_by_name_get**](docs/DefaultApi.md#read_job_instance_by_name_job_instances_by_name_get) | **GET** /job_instances/by_name/ | Read Job Instance By Name
*DefaultApi* | [**read_job_instance_job_instances_job_instance_id_get**](docs/DefaultApi.md#read_job_instance_job_instances_job_instance_id_get) | **GET** /job_instances/{job_instance_id} | Read Job Instance
*DefaultApi* | [**read_log_logs_job_instance_id_get**](docs/DefaultApi.md#read_log_logs_job_instance_id_get) | **GET** /logs/{job_instance_id} | Read Log
*DefaultApi* | [**read_provider_by_name_providers_by_name_get**](docs/DefaultApi.md#read_provider_by_name_providers_by_name_get) | **GET** /providers/by_name/ | Read Provider By Name
*DefaultApi* | [**read_provider_providers_provider_id_get**](docs/DefaultApi.md#read_provider_providers_provider_id_get) | **GET** /providers/{provider_id} | Read Provider
*DefaultApi* | [**read_provider_type_by_name_provider_types_by_name_get**](docs/DefaultApi.md#read_provider_type_by_name_provider_types_by_name_get) | **GET** /provider_types/by_name | Read Provider Type By Name
*DefaultApi* | [**read_repository_by_name_repositories_by_name_get**](docs/DefaultApi.md#read_repository_by_name_repositories_by_name_get) | **GET** /repositories/by_name/ | Read Repository By Name
*DefaultApi* | [**read_ssh_key_by_name_ssh_keys_by_name_get**](docs/DefaultApi.md#read_ssh_key_by_name_ssh_keys_by_name_get) | **GET** /ssh_keys/by_name/ | Read Ssh Key By Name
*DefaultApi* | [**read_users_me_users_me_get**](docs/DefaultApi.md#read_users_me_users_me_get) | **GET** /users/me | Read Users Me
*DefaultApi* | [**update_repository_repositories_by_name_patch**](docs/DefaultApi.md#update_repository_repositories_by_name_patch) | **PATCH** /repositories/by_name/ | Update Repository


## Documentation For Models

 - [ClientId](docs/ClientId.md)
 - [ClientSecret](docs/ClientSecret.md)
 - [ClusterIn](docs/ClusterIn.md)
 - [ClusterOut](docs/ClusterOut.md)
 - [FinishedAt](docs/FinishedAt.md)
 - [GrantType](docs/GrantType.md)
 - [HTTPValidationError](docs/HTTPValidationError.md)
 - [IdOut](docs/IdOut.md)
 - [JobInstanceIn](docs/JobInstanceIn.md)
 - [JobInstanceOut](docs/JobInstanceOut.md)
 - [LogOut](docs/LogOut.md)
 - [ProviderIn](docs/ProviderIn.md)
 - [ProviderOut](docs/ProviderOut.md)
 - [ProviderTypeOut](docs/ProviderTypeOut.md)
 - [RepositoryIn](docs/RepositoryIn.md)
 - [RepositoryOut](docs/RepositoryOut.md)
 - [SshKeyIn](docs/SshKeyIn.md)
 - [SshKeyOut](docs/SshKeyOut.md)
 - [ValidationError](docs/ValidationError.md)
 - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization


Authentication schemes defined for the API:
<a id="OAuth2PasswordBearer"></a>
### OAuth2PasswordBearer

- **Type**: OAuth
- **Flow**: password
- **Authorization URL**: 
- **Scopes**: N/A


## Author





            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "codedepot-ai-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.7",
    "maintainer_email": null,
    "keywords": "OpenAPI, OpenAPI-Generator, FastAPI",
    "author": null,
    "author_email": "OpenAPI Generator Community <team@openapitools.org>, CodeDepot <contact@codedepot.ai>",
    "download_url": "https://files.pythonhosted.org/packages/dc/7f/c5ea11d6e931a2549339764452c25c81c02a1cebc8b4668ed15871660ef0/codedepot_ai_api-1.1.1.tar.gz",
    "platform": null,
    "description": "# ai-api\nNo description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n\nThis Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 0.1.0\n- Package version: 1.0.0\n- Generator version: 7.4.0\n- Build package: org.openapitools.codegen.languages.PythonClientCodegen\n\n## Requirements.\n\nPython 3.7+\n\n## Installation & Usage\n### pip install\n\nIf the python package is hosted on a repository, you can install directly using:\n\n```sh\npip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git\n```\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)\n\nThen import the package:\n```python\nimport ai_api\n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport ai_api\n```\n\n### Tests\n\nExecute `pytest` to run the tests.\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\n\nimport ai_api\nfrom ai_api.rest import ApiException\nfrom pprint import pprint\n\n# Defining the host is optional and defaults to http://localhost\n# See configuration.py for a list of all supported configuration parameters.\nconfiguration = ai_api.Configuration(\n    host = \"http://localhost\"\n)\n\n# The client must configure the authentication and authorization parameters\n# in accordance with the API server security policy.\n# Examples for each auth method are provided below, use the example that\n# satisfies your auth use case.\n\nconfiguration.access_token = os.environ[\"ACCESS_TOKEN\"]\n\n\n# Enter a context with an instance of the API client\nwith ai_api.ApiClient(configuration) as api_client:\n    # Create an instance of the API class\n    api_instance = ai_api.DefaultApi(api_client)\n    cluster_in = ai_api.ClusterIn() # ClusterIn | \n\n    try:\n        # Create Cluster\n        api_response = api_instance.create_cluster_clusters_post(cluster_in)\n        print(\"The response of DefaultApi->create_cluster_clusters_post:\\n\")\n        pprint(api_response)\n    except ApiException as e:\n        print(\"Exception when calling DefaultApi->create_cluster_clusters_post: %s\\n\" % e)\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *http://localhost*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*DefaultApi* | [**create_cluster_clusters_post**](docs/DefaultApi.md#create_cluster_clusters_post) | **POST** /clusters/ | Create Cluster\n*DefaultApi* | [**create_job_instance_job_instances_post**](docs/DefaultApi.md#create_job_instance_job_instances_post) | **POST** /job_instances/ | Create Job Instance\n*DefaultApi* | [**create_managed_ssh_key_managed_ssh_keys_post**](docs/DefaultApi.md#create_managed_ssh_key_managed_ssh_keys_post) | **POST** /managed_ssh_keys/ | Create Managed Ssh Key\n*DefaultApi* | [**create_provider_providers_post**](docs/DefaultApi.md#create_provider_providers_post) | **POST** /providers/ | Create Provider\n*DefaultApi* | [**create_repository_repositories_post**](docs/DefaultApi.md#create_repository_repositories_post) | **POST** /repositories/ | Create Repository\n*DefaultApi* | [**create_ssh_key_ssh_keys_post**](docs/DefaultApi.md#create_ssh_key_ssh_keys_post) | **POST** /ssh_keys/ | Create Ssh Key\n*DefaultApi* | [**delete_cluster_clusters_cluster_id_delete**](docs/DefaultApi.md#delete_cluster_clusters_cluster_id_delete) | **DELETE** /clusters/{cluster_id} | Delete Cluster\n*DefaultApi* | [**delete_job_instance_job_instances_job_instance_id_delete**](docs/DefaultApi.md#delete_job_instance_job_instances_job_instance_id_delete) | **DELETE** /job_instances/{job_instance_id} | Delete Job Instance\n*DefaultApi* | [**delete_provider_providers_provider_id_delete**](docs/DefaultApi.md#delete_provider_providers_provider_id_delete) | **DELETE** /providers/{provider_id} | Delete Provider\n*DefaultApi* | [**delete_ssh_key_ssh_keys_key_name_delete**](docs/DefaultApi.md#delete_ssh_key_ssh_keys_key_name_delete) | **DELETE** /ssh_keys/{key_name} | Delete Ssh Key\n*DefaultApi* | [**get_managed_ssh_key_managed_ssh_keys_get**](docs/DefaultApi.md#get_managed_ssh_key_managed_ssh_keys_get) | **GET** /managed_ssh_keys/ | Get Managed Ssh Key\n*DefaultApi* | [**list_clusters_clusters_get**](docs/DefaultApi.md#list_clusters_clusters_get) | **GET** /clusters/ | List Clusters\n*DefaultApi* | [**list_job_instances_job_instances_get**](docs/DefaultApi.md#list_job_instances_job_instances_get) | **GET** /job_instances/ | List Job Instances\n*DefaultApi* | [**list_providers_providers_get**](docs/DefaultApi.md#list_providers_providers_get) | **GET** /providers/ | List Providers\n*DefaultApi* | [**list_providers_types_provider_types_get**](docs/DefaultApi.md#list_providers_types_provider_types_get) | **GET** /provider_types/ | List Providers Types\n*DefaultApi* | [**list_repositories_repositories_get**](docs/DefaultApi.md#list_repositories_repositories_get) | **GET** /repositories/ | List Repositories\n*DefaultApi* | [**list_ssh_keys_ssh_keys_get**](docs/DefaultApi.md#list_ssh_keys_ssh_keys_get) | **GET** /ssh_keys/ | List Ssh Keys\n*DefaultApi* | [**login_token_post**](docs/DefaultApi.md#login_token_post) | **POST** /token | Login\n*DefaultApi* | [**read_cluster_clusters_cluster_id_get**](docs/DefaultApi.md#read_cluster_clusters_cluster_id_get) | **GET** /clusters/{cluster_id} | Read Cluster\n*DefaultApi* | [**read_job_instance_by_name_job_instances_by_name_get**](docs/DefaultApi.md#read_job_instance_by_name_job_instances_by_name_get) | **GET** /job_instances/by_name/ | Read Job Instance By Name\n*DefaultApi* | [**read_job_instance_job_instances_job_instance_id_get**](docs/DefaultApi.md#read_job_instance_job_instances_job_instance_id_get) | **GET** /job_instances/{job_instance_id} | Read Job Instance\n*DefaultApi* | [**read_log_logs_job_instance_id_get**](docs/DefaultApi.md#read_log_logs_job_instance_id_get) | **GET** /logs/{job_instance_id} | Read Log\n*DefaultApi* | [**read_provider_by_name_providers_by_name_get**](docs/DefaultApi.md#read_provider_by_name_providers_by_name_get) | **GET** /providers/by_name/ | Read Provider By Name\n*DefaultApi* | [**read_provider_providers_provider_id_get**](docs/DefaultApi.md#read_provider_providers_provider_id_get) | **GET** /providers/{provider_id} | Read Provider\n*DefaultApi* | [**read_provider_type_by_name_provider_types_by_name_get**](docs/DefaultApi.md#read_provider_type_by_name_provider_types_by_name_get) | **GET** /provider_types/by_name | Read Provider Type By Name\n*DefaultApi* | [**read_repository_by_name_repositories_by_name_get**](docs/DefaultApi.md#read_repository_by_name_repositories_by_name_get) | **GET** /repositories/by_name/ | Read Repository By Name\n*DefaultApi* | [**read_ssh_key_by_name_ssh_keys_by_name_get**](docs/DefaultApi.md#read_ssh_key_by_name_ssh_keys_by_name_get) | **GET** /ssh_keys/by_name/ | Read Ssh Key By Name\n*DefaultApi* | [**read_users_me_users_me_get**](docs/DefaultApi.md#read_users_me_users_me_get) | **GET** /users/me | Read Users Me\n*DefaultApi* | [**update_repository_repositories_by_name_patch**](docs/DefaultApi.md#update_repository_repositories_by_name_patch) | **PATCH** /repositories/by_name/ | Update Repository\n\n\n## Documentation For Models\n\n - [ClientId](docs/ClientId.md)\n - [ClientSecret](docs/ClientSecret.md)\n - [ClusterIn](docs/ClusterIn.md)\n - [ClusterOut](docs/ClusterOut.md)\n - [FinishedAt](docs/FinishedAt.md)\n - [GrantType](docs/GrantType.md)\n - [HTTPValidationError](docs/HTTPValidationError.md)\n - [IdOut](docs/IdOut.md)\n - [JobInstanceIn](docs/JobInstanceIn.md)\n - [JobInstanceOut](docs/JobInstanceOut.md)\n - [LogOut](docs/LogOut.md)\n - [ProviderIn](docs/ProviderIn.md)\n - [ProviderOut](docs/ProviderOut.md)\n - [ProviderTypeOut](docs/ProviderTypeOut.md)\n - [RepositoryIn](docs/RepositoryIn.md)\n - [RepositoryOut](docs/RepositoryOut.md)\n - [SshKeyIn](docs/SshKeyIn.md)\n - [SshKeyOut](docs/SshKeyOut.md)\n - [ValidationError](docs/ValidationError.md)\n - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)\n\n\n<a id=\"documentation-for-authorization\"></a>\n## Documentation For Authorization\n\n\nAuthentication schemes defined for the API:\n<a id=\"OAuth2PasswordBearer\"></a>\n### OAuth2PasswordBearer\n\n- **Type**: OAuth\n- **Flow**: password\n- **Authorization URL**: \n- **Scopes**: N/A\n\n\n## Author\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "NoLicense",
    "summary": "AI API",
    "version": "1.1.1",
    "project_urls": {
        "Homepage": "https://codedepot.ai",
        "Repository": "https://github.com/GIT_USER_ID/GIT_REPO_ID"
    },
    "split_keywords": [
        "openapi",
        " openapi-generator",
        " fastapi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "688a8206308265d94ec6b55df41367a90d9f8c8f0b5ce184374bf1d67de13177",
                "md5": "9d085a0183621299d248bf91b762d693",
                "sha256": "2677e05f6e073dc630ac1a008ff2b9fbb4e0d797aa05c6c7d1e734bc43da4541"
            },
            "downloads": -1,
            "filename": "codedepot_ai_api-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9d085a0183621299d248bf91b762d693",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.7",
            "size": 74837,
            "upload_time": "2024-05-20T11:10:40",
            "upload_time_iso_8601": "2024-05-20T11:10:40.378785Z",
            "url": "https://files.pythonhosted.org/packages/68/8a/8206308265d94ec6b55df41367a90d9f8c8f0b5ce184374bf1d67de13177/codedepot_ai_api-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc7fc5ea11d6e931a2549339764452c25c81c02a1cebc8b4668ed15871660ef0",
                "md5": "fb764abbee05ff0e32cd41f386012f2a",
                "sha256": "cd89d8e0682a36b400cad9a2d1314e26bb568f38dc9c29efc39959730f37815c"
            },
            "downloads": -1,
            "filename": "codedepot_ai_api-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fb764abbee05ff0e32cd41f386012f2a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.7",
            "size": 35306,
            "upload_time": "2024-05-20T11:10:42",
            "upload_time_iso_8601": "2024-05-20T11:10:42.020129Z",
            "url": "https://files.pythonhosted.org/packages/dc/7f/c5ea11d6e931a2549339764452c25c81c02a1cebc8b4668ed15871660ef0/codedepot_ai_api-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-20 11:10:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GIT_USER_ID",
    "github_project": "GIT_REPO_ID",
    "github_not_found": true,
    "lcname": "codedepot-ai-api"
}
        
Elapsed time: 2.98278s