Skip to main content

Cosmo Tech Platform API

Project description

cosmotech-api

Cosmo Tech Platform API

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

  • API version: 5.0.1
  • Package version: 1.0.0
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/Cosmo-Tech/cosmotech-api

Requirements.

Python 3.9+

Installation & Usage

pip install

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

pip install git+https://github.com/Cosmo-Tech/cosmotech-api-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/Cosmo-Tech/cosmotech-api-python-client.git)

Then import the package:

import cosmotech_api

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 cosmotech_api

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import cosmotech_api
from cosmotech_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = cosmotech_api.Configuration(
    host = "http://localhost:8080"
)

# 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 cosmotech_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cosmotech_api.DatasetApi(api_client)
    organization_id = 'organization_id_example' # str | the Organization identifier
    workspace_id = 'workspace_id_example' # str | the Workspace identifier
    dataset_create_request = cosmotech_api.DatasetCreateRequest() # DatasetCreateRequest | 
    files = None # List[bytearray] | Notes:   - Each parts defined in dataset should have a file defined in this list   - Please ensure that upload files order match with data parts list defined     - First file uploaded will match with first dataset parts and so on  (optional)

    try:
        # Create a Dataset
        api_response = api_instance.create_dataset(organization_id, workspace_id, dataset_create_request, files=files)
        print("The response of DatasetApi->create_dataset:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DatasetApi->create_dataset: %s\n" % e)

Documentation for API Endpoints

Class Method HTTP request Description
DatasetApi create_dataset POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets Create a Dataset
DatasetApi create_dataset_access_control POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access Add a control access to the Dataset
DatasetApi create_dataset_part POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts Create a data part of a Dataset
DatasetApi delete_dataset DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id} Delete a Dataset
DatasetApi delete_dataset_access_control DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access/{identity_id} Remove the specified access from the given Dataset
DatasetApi delete_dataset_part DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id} Delete a Dataset part
DatasetApi download_dataset_part GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id}/download Download data from a dataset part
DatasetApi get_dataset GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id} Retrieve a Dataset
DatasetApi get_dataset_access_control GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access/{identity_id} Get a control access for the Dataset
DatasetApi get_dataset_part GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id} Retrieve a data part of a Dataset
DatasetApi list_dataset_parts GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts Retrieve all dataset parts of a Dataset
DatasetApi list_dataset_security_users GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/users Get the Dataset security users list
DatasetApi list_datasets GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets Retrieve a list of defined Dataset
DatasetApi query_data GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id}/query Query data of a Dataset part. This endpoint is only available for dataset parts that support queries (type == DB).
DatasetApi replace_dataset_part PUT /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id} Replace existing dataset parts of a Dataset
DatasetApi search_dataset_parts POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/search Search Dataset parts by tags
DatasetApi search_datasets POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/search Search Datasets by tags
DatasetApi update_dataset PATCH /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id} Update a Dataset
DatasetApi update_dataset_access_control PATCH /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access/{identity_id} Update the specified access to User for a Dataset
DatasetApi update_dataset_default_security PATCH /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/default Set the Dataset default security
DatasetApi update_dataset_part PATCH /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/parts/{dataset_part_id} Update existing dataset parts information of a Dataset
MetaApi about GET /about Get various information about the API
OrganizationApi create_organization POST /organizations Create a new organization
OrganizationApi create_organization_access_control POST /organizations/{organization_id}/security/access Add a control access to the Organization
OrganizationApi delete_organization DELETE /organizations/{organization_id} Delete an organization
OrganizationApi delete_organization_access_control DELETE /organizations/{organization_id}/security/access/{identity_id} Remove the specified access from the given Organization
OrganizationApi get_organization GET /organizations/{organization_id} Get the details of an Organization
OrganizationApi get_organization_access_control GET /organizations/{organization_id}/security/access/{identity_id} Get a control access for the Organization
OrganizationApi get_organization_permissions GET /organizations/{organization_id}/permissions/{role} Get the Organization permissions by given role
OrganizationApi get_organization_security GET /organizations/{organization_id}/security Get the Organization security information
OrganizationApi list_organization_security_users GET /organizations/{organization_id}/security/users Get the Organization security users list
OrganizationApi list_organizations GET /organizations List all Organizations
OrganizationApi list_permissions GET /organizations/permissions Get all permissions per components
OrganizationApi update_organization PATCH /organizations/{organization_id} Update an Organization
OrganizationApi update_organization_access_control PATCH /organizations/{organization_id}/security/access/{identity_id} Update the specified access to User for an Organization
OrganizationApi update_organization_default_security PATCH /organizations/{organization_id}/security/default Update the Organization default security
RunApi delete_run DELETE /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id} Delete a run
RunApi get_run GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id} Get the details of a run
RunApi get_run_logs GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/logs get the logs for the Run
RunApi get_run_status GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/status get the status for the Run
RunApi list_runs GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs get the list of Runs for the Runner
RunnerApi create_runner POST /organizations/{organization_id}/workspaces/{workspace_id}/runners Create a new Runner
RunnerApi create_runner_access_control POST /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access Add a control access to the Runner
RunnerApi delete_runner DELETE /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} Delete a runner
RunnerApi delete_runner_access_control DELETE /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} Remove the specified access from the given Runner
RunnerApi get_runner GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} Get the details of a runner
RunnerApi get_runner_access_control GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} Get a control access for the Runner
RunnerApi get_runner_security GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security Get the Runner security information
RunnerApi list_runner_permissions GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/permissions/{role} Get the Runner permission by given role
RunnerApi list_runner_security_users GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users Get the Runner security users list
RunnerApi list_runners GET /organizations/{organization_id}/workspaces/{workspace_id}/runners List all Runners
RunnerApi start_run POST /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/start Start a run with runner parameters
RunnerApi stop_run POST /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/stop Stop the last run
RunnerApi update_runner PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} Update a runner
RunnerApi update_runner_access_control PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} Update the specified access to User for a Runner
RunnerApi update_runner_default_security PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/default Set the Runner default security
SolutionApi create_solution POST /organizations/{organization_id}/solutions Create a new solution
SolutionApi create_solution_access_control POST /organizations/{organization_id}/solutions/{solution_id}/security/access Create solution access control
SolutionApi create_solution_parameter POST /organizations/{organization_id}/solutions/{solution_id}/parameters Create solution parameter for a solution
SolutionApi create_solution_parameter_group POST /organizations/{organization_id}/solutions/{solution_id}/parameterGroups Create a solution parameter group
SolutionApi create_solution_run_template POST /organizations/{organization_id}/solutions/{solution_id}/runTemplates Create a solution run template
SolutionApi delete_solution DELETE /organizations/{organization_id}/solutions/{solution_id} Delete a solution
SolutionApi delete_solution_access_control DELETE /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} Delete solution access control
SolutionApi delete_solution_parameter DELETE /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id} Delete specific parameter from the solution
SolutionApi delete_solution_parameter_group DELETE /organizations/{organization_id}/solutions/{solution_id}/parameterGroups/{parameter_group_id} Delete a parameter group from the solution
SolutionApi delete_solution_run_template DELETE /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} Delete a specific run template
SolutionApi get_run_template GET /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} Retrieve a solution run templates
SolutionApi get_solution GET /organizations/{organization_id}/solutions/{solution_id} Get the details of a solution
SolutionApi get_solution_access_control GET /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} Get solution access control
SolutionApi get_solution_parameter GET /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id} Get the details of a solution parameter
SolutionApi get_solution_parameter_group GET /organizations/{organization_id}/solutions/{solution_id}/parameterGroups/{parameter_group_id} Get details of a solution parameter group
SolutionApi get_solution_security GET /organizations/{organization_id}/solutions/{solution_id}/security Get solution security information
SolutionApi list_run_templates GET /organizations/{organization_id}/solutions/{solution_id}/runTemplates List all solution run templates
SolutionApi list_solution_parameter_groups GET /organizations/{organization_id}/solutions/{solution_id}/parameterGroups List all solution parameter groups
SolutionApi list_solution_parameters GET /organizations/{organization_id}/solutions/{solution_id}/parameters List all solution parameters
SolutionApi list_solution_security_users GET /organizations/{organization_id}/solutions/{solution_id}/security/users List solution security users
SolutionApi list_solutions GET /organizations/{organization_id}/solutions List all Solutions
SolutionApi update_solution PATCH /organizations/{organization_id}/solutions/{solution_id} Update a solution
SolutionApi update_solution_access_control PATCH /organizations/{organization_id}/solutions/{solution_id}/security/access/{identity_id} Update solution access control
SolutionApi update_solution_default_security PATCH /organizations/{organization_id}/solutions/{solution_id}/security/default Update solution default security
SolutionApi update_solution_parameter PATCH /organizations/{organization_id}/solutions/{solution_id}/parameters/{parameter_id} Update solution parameter
SolutionApi update_solution_parameter_group PATCH /organizations/{organization_id}/solutions/{solution_id}/parameterGroups/{parameter_group_id} Update a solution parameter group
SolutionApi update_solution_run_template PATCH /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} Update a specific run template
WorkspaceApi create_workspace POST /organizations/{organization_id}/workspaces Create a new workspace
WorkspaceApi create_workspace_access_control POST /organizations/{organization_id}/workspaces/{workspace_id}/security/access Add a control access to the Workspace
WorkspaceApi create_workspace_file POST /organizations/{organization_id}/workspaces/{workspace_id}/files Upload a file for the Workspace
WorkspaceApi delete_workspace DELETE /organizations/{organization_id}/workspaces/{workspace_id} Delete a workspace
WorkspaceApi delete_workspace_access_control DELETE /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} Remove the specified access from the given Workspace
WorkspaceApi delete_workspace_file DELETE /organizations/{organization_id}/workspaces/{workspace_id}/files/delete Delete a workspace file
WorkspaceApi delete_workspace_files DELETE /organizations/{organization_id}/workspaces/{workspace_id}/files Delete all Workspace files
WorkspaceApi get_workspace GET /organizations/{organization_id}/workspaces/{workspace_id} Get the details of a workspace
WorkspaceApi get_workspace_access_control GET /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} Get a control access for the Workspace
WorkspaceApi get_workspace_file GET /organizations/{organization_id}/workspaces/{workspace_id}/files/download Download the Workspace File specified
WorkspaceApi get_workspace_security GET /organizations/{organization_id}/workspaces/{workspace_id}/security Get the Workspace security information
WorkspaceApi list_workspace_files GET /organizations/{organization_id}/workspaces/{workspace_id}/files List all Workspace files
WorkspaceApi list_workspace_role_permissions GET /organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role} Get the Workspace permission by given role
WorkspaceApi list_workspace_security_users GET /organizations/{organization_id}/workspaces/{workspace_id}/security/users Get the Workspace security users list
WorkspaceApi list_workspaces GET /organizations/{organization_id}/workspaces List all Workspaces
WorkspaceApi update_workspace PATCH /organizations/{organization_id}/workspaces/{workspace_id} Update a workspace
WorkspaceApi update_workspace_access_control PATCH /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} Update the specified access to User for a Workspace
WorkspaceApi update_workspace_default_security PATCH /organizations/{organization_id}/workspaces/{workspace_id}/security/default Update the Workspace default security

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oAuth2AuthCode

Author

platform@cosmotech.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosmotech_api-5.0.1.tar.gz (218.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cosmotech_api-5.0.1-py3-none-any.whl (624.9 kB view details)

Uploaded Python 3

File details

Details for the file cosmotech_api-5.0.1.tar.gz.

File metadata

  • Download URL: cosmotech_api-5.0.1.tar.gz
  • Upload date:
  • Size: 218.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cosmotech_api-5.0.1.tar.gz
Algorithm Hash digest
SHA256 f399350288e8708074bdd65e32e35adee139ef00dd3daf71789b7a54453f524a
MD5 0d630bc2cfc7b2f2e9a5226365fffaff
BLAKE2b-256 fdfe63d70c38d0c6b1a0319bf0b967883c4ff1ca3146e1c9933d3986eb84eb4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cosmotech_api-5.0.1.tar.gz:

Publisher: publish-to-pypi.yml on Cosmo-Tech/cosmotech-api-python-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cosmotech_api-5.0.1-py3-none-any.whl.

File metadata

  • Download URL: cosmotech_api-5.0.1-py3-none-any.whl
  • Upload date:
  • Size: 624.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cosmotech_api-5.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91338003e8ee7fe4444d24d8af1c8601b715ebb6e1dfe258758d34cf718350b7
MD5 75580844412174e0cf5c118415387413
BLAKE2b-256 050ca2170429bcc84061422c8c2f95d839312cbaaaebfd902af15b959945c15c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cosmotech_api-5.0.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Cosmo-Tech/cosmotech-api-python-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page