Python SDK

Visit our dedicated Python SDK docs here

Installation

Install the package from PyPi using any package manager. Examples:

  • poetry add marpledata

  • uv add marpledata

  • pip install marpledata

Usage

Read the full documentation here

Example: import a file and wait for it to import

import time
from marple import DB

# Create a stream + API token in the Marple DB web application
STREAM = "Car data"
API_TOKEN = "<your api token>"
API_URL = "https://db.marpledata.com/api/v1"  # optional if using the default SaaS

db = DB(API_TOKEN, API_URL)

db.check_connection()

stream = db.get_stream(STREAM)
dataset = stream.push_file("examples_race.csv", metadata={"driver": "Mbaerto"})
# Wait at most 10s for the dataset to completely import and get the new state of the dataset
dataset = dataset.wait_for_import(timeout=10)

Example: filter datasets and get resampled data

Last updated