This release is a pre-release and may not be stable for production use.
cosmotech-asset-data-layer-client
API for Asset Data Layer
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 0.2.0-rc1
- Generator version: 7.26.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735).
Install the package with python -m pip install .; install development dependencies
with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using
python -m pip install --group dev. The latter installs the group, not the package.
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 cosmotech.asset_data_layer_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 cosmotech.asset_data_layer_client
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import cosmotech.asset_data_layer_client
from cosmotech.asset_data_layer_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 = cosmotech.asset_data_layer_client.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 cosmotech.asset_data_layer_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cosmotech.asset_data_layer_client.CSMAPIApi(api_client)
offset = 0 # int | Number of records to skip (optional) (default to 0)
limit = 100 # int | Max number of records to return (optional) (default to 100)
try:
# List csm organizations
api_response = api_instance.list_csm_organizations_csm_organizations_get(offset=offset, limit=limit)
print("The response of CSMAPIApi->list_csm_organizations_csm_organizations_get:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling CSMAPIApi->list_csm_organizations_csm_organizations_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CSMAPIApi | list_csm_organizations_csm_organizations_get | GET /csm/organizations | List csm organizations |
| DatasetsApi | create_dataset | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets | Create a dataset |
| DatasetsApi | create_dataset_access | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access | Share a dataset with a user or group |
| DatasetsApi | delete_dataset | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id} | Delete a dataset |
| DatasetsApi | delete_dataset_access | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access/{identity_id} | Revoke a dataset access |
| DatasetsApi | delete_dataset_file | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/files/{file_name} | Delete a file from a dataset |
| DatasetsApi | download_dataset | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/archive | Download a whole dataset as a zip file |
| DatasetsApi | download_transformed_dataset | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/transformed-data | Download the transformed dataset, waiting for the transformation |
| DatasetsApi | get_dataset | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id} | Get a dataset (detailed view) |
| DatasetsApi | get_dataset_security | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security | Get the security of a dataset |
| DatasetsApi | get_dataset_transformation_status | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/transformation-status | Read a dataset's latest transformation state |
| DatasetsApi | get_dataset_validation_status | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/validation-status | Read a dataset's latest validation result |
| DatasetsApi | get_file | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/files/{file_path} | Get a file from a dataset |
| DatasetsApi | list_datasets | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets | List datasets (listing view) |
| DatasetsApi | transform_dataset | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/transform | Start transforming a validated dataset |
| DatasetsApi | update_dataset | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id} | Update a dataset's metadata |
| DatasetsApi | update_dataset_access | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/security/access/{identity_id} | Change the role of a dataset access |
| DatasetsApi | upload_dataset_data | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/data | Upload data into an existing dataset |
| DatasetsApi | validate_dataset | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/validate | Start validating a dataset's uploaded data |
| RunnersApi | get_runner | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Get runner |
| RunnersApi | list_runners | GET /organizations/{organization_id}/workspaces/{workspace_id}/runners | List runners |
| RunnersApi | update_runner | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Update runner |
| ScenariosApi | create_scenario | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios | Create a scenario of a dataset, and its runner |
| ScenariosApi | delete_scenario | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id} | Delete a scenario, its children, their editions and their runners |
| ScenariosApi | download_scenario_table | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id}/tables/{table_name} | Download the scenario's current version of one table, for editing |
| ScenariosApi | download_transformed_scenario | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id}/transformed-data | Download the scenario's transformed dataset, transforming it if needed |
| ScenariosApi | get_scenario | GET /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id} | Get a scenario, its editions and its validation state |
| ScenariosApi | revert_scenario_table | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id}/tables/{table_name} | Drop the scenario's own edits of one table |
| ScenariosApi | transform_scenario | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id}/transform | Transform the scenario's validated edited dataset |
| ScenariosApi | upload_scenario_table | PUT /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id}/tables/{table_name} | Upload an edited table; only its diff against the parent is stored |
| ScenariosApi | validate_scenario | POST /organizations/{organization_id}/workspaces/{workspace_id}/datasets/{dataset_id}/scenarios/{runner_id}/validate | Validate the scenario's whole edited dataset |
| DefaultApi | root | GET /about | Root |
Documentation For Models
- DatasetAccessCreateRequest
- DatasetAccessResponse
- DatasetAccessUpdateRequest
- DatasetDetailResponse
- DatasetFileResponse
- DatasetListItemResponse
- DatasetRole
- DatasetScenarioResponse
- DatasetSecurityResponse
- DatasetStatus
- DatasetTransformationStatusResponse
- DatasetValidationDiagnosticResponse
- DatasetValidationStatusResponse
- HTTPValidationError
- LocationInner
- Metadata
- ResourceSizeInfo
- RunTiming
- RunTimingNode
- RunTimingStep
- RunnerListItemResponse
- RunnerResourceSizing
- RunnerResponse
- RunnerRunTemplateParameterValue
- RunnerUpdateRequest
- RunnerValidationStatus
- ScenarioCreateRequest
- ScenarioDiagnosticResponse
- ScenarioEditionResponse
- ScenarioResponse
- ScenarioState
- ScenarioTransformationResponse
- ValidationError
Documentation For Authorization
Authentication schemes defined for the API:
OAuth2AuthorizationCodeBearer
- Type: OAuth
- Flow: accessCode
- Authorization URL: /protocol/openid-connect/auth
- Scopes: N/A
Author
Metadata
Release files for cosmotech.asset-data-layer-client 0.2.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cosmotech_asset_data_layer_client-0.2.0rc1.tar.gz | 62.4 kB | Without provenance | Details for cosmotech_asset_data_layer_client-0.2.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cosmotech_asset_data_layer_client-0.2.0rc1-py3-none-any.whl | Python 3 | none | any | Details for cosmotech_asset_data_layer_client-0.2.0rc1-py3-none-any.whl |
Total release size: 163.3 kB
Release files / cosmotech_asset_data_layer_client-0.2.0rc1.tar.gz
| Download URL | cosmotech_asset_data_layer_client-0.2.0rc1.tar.gz |
|---|---|
| Size | 62.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d4c5d83be4be8bd061feef32eaf04231b25f9f9d7b442417165b9269d9a8bc3
|
|
BLAKE2b-256 checksum How to use checksums |
bc103d781d9e48f46646927657c9f0666292b837aa29b33c6b6fd17bd001dbe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / cosmotech_asset_data_layer_client-0.2.0rc1-py3-none-any.whl
| Download URL | cosmotech_asset_data_layer_client-0.2.0rc1-py3-none-any.whl |
|---|---|
| Size | 100.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28fb8e66ba153abd6f96429cf34fe34cb406e89b1473713ca8b866a73bc94776
|
|
BLAKE2b-256 checksum How to use checksums |
a9024c66d055984a26ca438ac4aa1c26fdde12c30e90b2a8d0869d63d4a5b13e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for cosmotech.asset-data-layer-client 0.2.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.