snakePython SDK

circle-info

Visit our dedicated Python SDK docs herearrow-up-right

Installation

Install the package from PyPiarrow-up-right using any package manager. Examples:

  • poetry add marpledata

  • uv add marpledata

  • pip install marpledata

Usage

Read the full documentation on PyPi: https://pypi.org/project/marpledata/arrow-up-right

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)

Last updated