Python
Using the Marple Python SDK
We created an SDK for Python that makes it easier to use our API. Install the marpledata
module:
Usage
First setup the connection using an access token:
Calling API endpoints is as easy as:
Uploading data can be done in various ways:
Upload a file using the SDK
A pandas dataframe
Write data in chunks
These three commands will all upload a file test.csv
to the /example
folder in your workspace:
Depending on the size of the dataset, importing can take a while. To check the import status:
The returned status is a number in [0, 100], representing the progress of the import in %. 100 means the import has finished.
Negative status codes inform you about the following events:
-3
= Finalising, Marple is improving its cache to make the file faster-2
= Waiting in the importing queue-1
= Failed, something went wrong. Check the UI for more details about the error message
Last updated