Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Python client library providing high-level client interfaces for common Clever

## Overview

This package simplifies interaction with CleverMaps projects by providing intuitive, high-level methods that handle complex workflows behind the scenes. It's built on top of the CleverMaps Python OpenAPI SDK.
This package simplifies interaction with CleverMaps projects by providing intuitive, high-level methods that handle complex workflows behind the scenes. It's built on top of the [CleverMaps Python OpenAPI SDK](https://github.com/clevermaps/cm-python-openapi-sdk).
## Features

- **Data Dumping**: Export datasets from CleverMaps projects to CSV files
Expand All @@ -25,6 +25,7 @@ import cm_python_clients

## Example usage

### Data Dumping
```python
from cm_python_clients import DataDumpClient

Expand All @@ -38,3 +39,18 @@ sdk = DataDumpClient(api_token=access_token)
output_file = sdk.dump_dataset_to_csv(project_id, dataset, output_path)
```

### Data uploading

```python
from cm_python_clients import LoadDataClient

access_token = "<your access token>"
project_id = "<your project id>"
csv_file = "<your csv file path>"
dataset = "<your dataset name>"

sdk = LoadDataClient(api_token=access_token)

output_file = sdk.upload_data(project_id, csv_file, dataset)
```