Cosmo Tech Modeling API
Project description
cosmotech-modeling-api
Cosmo Tech Modeling API (12.2.0-40480.6d6a465d)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 12.2.0
- Package version: 12.2.0
- Generator version: 7.22.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
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-modeling-api-python-client.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/cosmo-tech/cosmotech-modeling-api-python-client.git)
Then import the package:
import cosmotech_modeling_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_modeling_api
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import cosmotech_modeling_api
from cosmotech_modeling_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 = cosmotech_modeling_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with cosmotech_modeling_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cosmotech_modeling_api.ConceptualModelApi(api_client)
project_id = 'project_id_example' # str | The project identifier
body = None # object | Conceptual model content
try:
# Check the semantic of a submitted conceptual model
api_response = api_instance.check_conceptual_model_semantic_errors(project_id, body)
print("The response of ConceptualModelApi->check_conceptual_model_semantic_errors:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ConceptualModelApi->check_conceptual_model_semantic_errors: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ConceptualModelApi | check_conceptual_model_semantic_errors | POST /projects/{projectId}/conceptualModels/semantic | Check the semantic of a submitted conceptual model |
| ConceptualModelApi | create_category | POST /projects/{projectId}/conceptualModels/{conceptualModelId}/categories | Create a new category |
| ConceptualModelApi | create_conceptual_model | POST /projects/{projectId}/conceptualModels/{conceptualModelId} | Create a new conceptual model |
| ConceptualModelApi | create_data_type | POST /projects/{projectId}/conceptualModels/{conceptualModelId}/dataTypes | Create a new data type |
| ConceptualModelApi | create_entity | POST /projects/{projectId}/conceptualModels/{conceptualModelId}/entities | Create a new entity |
| ConceptualModelApi | create_environment | POST /projects/{projectId}/conceptualModels/{conceptualModelId}/environments | Create a new environment |
| ConceptualModelApi | delete_category | DELETE /projects/{projectId}/conceptualModels/{conceptualModelId}/categories/{categoryId} | Delete a category |
| ConceptualModelApi | delete_conceptual_model | DELETE /projects/{projectId}/conceptualModels/{conceptualModelId} | Delete a conceptal model |
| ConceptualModelApi | delete_data_type | DELETE /projects/{projectId}/conceptualModels/{conceptualModelId}/dataTypes/{dataTypeId} | Delete a data type |
| ConceptualModelApi | delete_entity | DELETE /projects/{projectId}/conceptualModels/{conceptualModelId}/entities/{entityId} | Delete an entity |
| ConceptualModelApi | delete_environment | DELETE /projects/{projectId}/conceptualModels/{conceptualModelId}/environments/{environmentId} | Delete an environment |
| ConceptualModelApi | get_category | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/categories/{categoryId} | Get a category definition |
| ConceptualModelApi | get_conceptual_model | GET /projects/{projectId}/conceptualModels/{conceptualModelId} | Get the content of a conceptual model |
| ConceptualModelApi | get_conceptual_model_semantic_errors | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/semantic | Check the semantic of a submitted conceptual model |
| ConceptualModelApi | get_data_type | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/dataTypes/{dataTypeId} | Get a data type definition |
| ConceptualModelApi | get_entity | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/entities/{entityId} | Get an entity definition |
| ConceptualModelApi | get_environment | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/environments/{environmentId} | Get an environment definition |
| ConceptualModelApi | list_categories | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/categories | Get the list of categories of a model |
| ConceptualModelApi | list_conceptual_models | GET /projects/{projectId}/conceptualModels | List the conceptual models of a project |
| ConceptualModelApi | list_data_types | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/dataTypes | Get the list of data types of a model |
| ConceptualModelApi | list_entities | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/entities | Get the list of entities of a model |
| ConceptualModelApi | list_environments | GET /projects/{projectId}/conceptualModels/{conceptualModelId}/environments | Get the list of environments of a model |
| ConceptualModelApi | replace_category | PUT /projects/{projectId}/conceptualModels/{conceptualModelId}/categories/{categoryId} | Replace a category definition |
| ConceptualModelApi | replace_conceptual_model | PUT /projects/{projectId}/conceptualModels/{conceptualModelId} | Replace the content of a conceptual model |
| ConceptualModelApi | replace_data_type | PUT /projects/{projectId}/conceptualModels/{conceptualModelId}/dataTypes/{dataTypeId} | Replace a data type definition |
| ConceptualModelApi | replace_entity | PUT /projects/{projectId}/conceptualModels/{conceptualModelId}/entities/{entityId} | Replace an entity definition |
| ConceptualModelApi | replace_environment | PUT /projects/{projectId}/conceptualModels/{conceptualModelId}/environments/{environmentId} | Replace an environment definition |
| ConceptualModelApi | update_conceptual_model | PATCH /projects/{projectId}/conceptualModels/{conceptualModelId} | Update the content of a conceptual model |
| FileApi | create_project_file | POST /projects/{projectId}/files/raw | Create a new project file |
| FileApi | delete_project_file | DELETE /projects/{projectId}/files/raw | Delete a project file |
| FileApi | get_project_file | GET /projects/{projectId}/files/raw | Get the content of a project file |
| FileApi | list_project_files | GET /projects/{projectId}/files | List all files of a project |
| FileApi | replace_project_file | PUT /projects/{projectId}/files/raw | Replace a project file |
| MetaApi | about | GET /about | Retrieve API info |
| MetaApi | get_openapi | GET /openapi.yaml | Get the OpenAPI description file |
| MetaApi | get_schema | GET /schemas/{schemaId} | Get a schema content |
| MetaApi | list_schemas | GET /schemas | List all known JSON schemas |
| ProjectApi | create_project | POST /projects | Create new a project |
| ProjectApi | delete_project | DELETE /projects/{projectId} | Delete a project |
| ProjectApi | delete_project_archive | DELETE /projects/{projectId}/archive | Delete the project archive |
| ProjectApi | get_project | GET /projects/{projectId} | List a project details |
| ProjectApi | get_project_archive | GET /projects/{projectId}/archive | Get the current project archive |
| ProjectApi | list_projects | GET /projects | List all projects |
| ProjectApi | replace_project_archive | PUT /projects/{projectId}/archive | Upload a replacement project source archive |
| ProjectApi | update_project | PATCH /projects/{projectId} | Update a project |
| ProjectApi | upload_project_archive | POST /projects/{projectId}/archive | Upload the initial project source archive |
| ProjectBuildApi | build_project | POST /projects/{projectId}/builds | Build a project |
| ProjectBuildApi | delete_project_build | DELETE /projects/{projectId}/builds/{buildId} | Delete a project build |
| ProjectBuildApi | get_project_build | GET /projects/{projectId}/builds/{buildId} | List a project build details |
| ProjectBuildApi | get_project_build_logs | GET /projects/{projectId}/builds/{buildId}/logs | Get a project build logs |
| ProjectBuildApi | get_project_build_package | GET /projects/{projectId}/builds/{buildId}/package | Get the produced built package |
| ProjectBuildApi | list_project_builds | GET /projects/{projectId}/builds | List all builds of a project |
| SimulatorApi | check_simulator_semantic_errors | POST /projects/{projectId}/simulators/semantic | Check the semantic of a submitted simulator |
| SimulatorApi | create_probe | POST /projects/{projectId}/simulators/{simulatorId}/probes | Create a new probe |
| SimulatorApi | create_simulator | POST /projects/{projectId}/simulators/{simulatorId} | Create a new simulator |
| SimulatorApi | delete_probe | DELETE /projects/{projectId}/simulators/{simulatorId}/probes/{probeId} | Delete a probe |
| SimulatorApi | delete_simulator | DELETE /projects/{projectId}/simulators/{simulatorId} | Delete a simulator |
| SimulatorApi | get_probe | GET /projects/{projectId}/simulators/{simulatorId}/probes/{probeId} | Get a probe definition |
| SimulatorApi | get_simulator | GET /projects/{projectId}/simulators/{simulatorId} | Get the content of a simulator |
| SimulatorApi | get_simulator_semantic_errors | GET /projects/{projectId}/simulators/{simulatorId}/semantic | Check the semantic of a submitted simulator |
| SimulatorApi | list_probes | GET /projects/{projectId}/simulators/{simulatorId}/probes | Get the list of probes of a simulator |
| SimulatorApi | list_simulators | GET /projects/{projectId}/simulators | List the simulators of a project |
| SimulatorApi | replace_probe | PUT /projects/{projectId}/simulators/{simulatorId}/probes/{probeId} | Replace a probe definition |
| SimulatorApi | replace_simulator | PUT /projects/{projectId}/simulators/{simulatorId} | Replace the content of a simulator |
| SimulatorApi | update_simulator | PATCH /projects/{projectId}/simulators/{simulatorId} | Update the content of a simulator |
| TransformationsApi | check_transformations_semantic_errors | POST /projects/{projectId}/transformations/semantic | Check the semantic of a submitted transformations |
| TransformationsApi | create_operation | POST /projects/{projectId}/transformations/{transformationsId}/operations | Create a new operation |
| TransformationsApi | create_transformations | POST /projects/{projectId}/transformations/{transformationsId} | Create a new transformations |
| TransformationsApi | delete_operation | DELETE /projects/{projectId}/transformations/{transformationsId}/operations/{operationId} | Delete an operation |
| TransformationsApi | delete_transformations | DELETE /projects/{projectId}/transformations/{transformationsId} | Delete a transformations |
| TransformationsApi | get_building_workspace_for_operation | GET /projects/{projectId}/transformations/{transformationsId}/operations/{operationId}/buildingWorkspace | Get the building workspace on which an operation can work |
| TransformationsApi | get_operation | GET /projects/{projectId}/transformations/{transformationsId}/operations/{operationId} | Get an operation definition |
| TransformationsApi | get_resulting_model | GET /projects/{projectId}/transformations/{transformationsId}/resultingModel | Get the final resulting model of a transformations resource |
| TransformationsApi | get_resulting_model_after_operation | GET /projects/{projectId}/transformations/{transformationsId}/operations/{operationId}/resultingModel | Get the resulting model after a specific operation of a transformations resource |
| TransformationsApi | get_semantic_errors_for_resulting_model_after_operation | GET /projects/{projectId}/transformations/{transformationsId}/operations/{operationId}/resultingModel/semantic | Get the semantic errors of a resulting model after a specific operations of transformations |
| TransformationsApi | get_transformations | GET /projects/{projectId}/transformations/{transformationsId} | Get the content of a transformations |
| TransformationsApi | get_transformations_semantic_errors | GET /projects/{projectId}/transformations/{transformationsId}/semantic | Check the semantic of a submitted transformations |
| TransformationsApi | list_operations | GET /projects/{projectId}/transformations/{transformationsId}/operations | Get the list of operations of a transformations |
| TransformationsApi | list_transformations | GET /projects/{projectId}/transformations | List the transformations of a project |
| TransformationsApi | replace_operation | PUT /projects/{projectId}/transformations/{transformationsId}/operations/{operationId} | Replace an operation definition |
| TransformationsApi | replace_transformations | PUT /projects/{projectId}/transformations/{transformationsId} | Replace the content of a transformations |
| TransformationsApi | update_transformations | PATCH /projects/{projectId}/transformations/{transformationsId} | Update the content of a transformations |
Documentation For Models
- AboutInfo
- AboutInfoVersion
- ProblemDetails
- ProblemDetailsSemanticErrors
- Project
- ProjectBuild
- ProjectBuildRequest
- ProjectBuildRequestBuildConfig
- ProjectBuildRequestDockerSimulatorImage
- ProjectBuildStatus
- ProjectRequest
- SemanticError
- SemanticErrorNodes
Documentation For Authorization
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cosmotech_modeling_api-12.2.0.tar.gz.
File metadata
- Download URL: cosmotech_modeling_api-12.2.0.tar.gz
- Upload date:
- Size: 53.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
751b6a7f85c61e7ab9e2d262d52040d819809d1c7adb525f2ae789c0c8203f59
|
|
| MD5 |
0125ddf11d3f1b8769444592345e2027
|
|
| BLAKE2b-256 |
9fe7bb01b96ca918d3594f70b205099b169e17208d55872967940f5d7ae0104b
|
Provenance
The following attestation bundles were made for cosmotech_modeling_api-12.2.0.tar.gz:
Publisher:
publish.yaml on Cosmo-Tech/cosmotech-modeling-api-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cosmotech_modeling_api-12.2.0.tar.gz -
Subject digest:
751b6a7f85c61e7ab9e2d262d52040d819809d1c7adb525f2ae789c0c8203f59 - Sigstore transparency entry: 2097978980
- Sigstore integration time:
-
Permalink:
Cosmo-Tech/cosmotech-modeling-api-python-client@1c82e53c1d262002342fbb3dd78b5ced0381619d -
Branch / Tag:
refs/tags/12.2.0 - Owner: https://github.com/Cosmo-Tech
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@1c82e53c1d262002342fbb3dd78b5ced0381619d -
Trigger Event:
push
-
Statement type:
File details
Details for the file cosmotech_modeling_api-12.2.0-py3-none-any.whl.
File metadata
- Download URL: cosmotech_modeling_api-12.2.0-py3-none-any.whl
- Upload date:
- Size: 74.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9d9d668472bfab857f511245fae4e0d0c43827d70ecbe84052da60666482213
|
|
| MD5 |
147b81b64e3fe9665da1cf1b93c4e9cd
|
|
| BLAKE2b-256 |
15b89501da79f3690e5d5174f3fbce67222b6025a907d288afdf8d79a3ba9849
|
Provenance
The following attestation bundles were made for cosmotech_modeling_api-12.2.0-py3-none-any.whl:
Publisher:
publish.yaml on Cosmo-Tech/cosmotech-modeling-api-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cosmotech_modeling_api-12.2.0-py3-none-any.whl -
Subject digest:
a9d9d668472bfab857f511245fae4e0d0c43827d70ecbe84052da60666482213 - Sigstore transparency entry: 2097979098
- Sigstore integration time:
-
Permalink:
Cosmo-Tech/cosmotech-modeling-api-python-client@1c82e53c1d262002342fbb3dd78b5ced0381619d -
Branch / Tag:
refs/tags/12.2.0 - Owner: https://github.com/Cosmo-Tech
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@1c82e53c1d262002342fbb3dd78b5ced0381619d -
Trigger Event:
push
-
Statement type: