Skip to main content

Python SDK for Mosaico Data-Platform

Project description

Mosaico Logo

[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)

Mosaico SDK

The Mosaico SDK is the primary interface for interacting with the Mosaico Data Platform, a high-performance system designed for the ingestion, storage, and retrieval of multi-modal sensor data (Robotics, IoT, and Computer Vision).

For full documentation, see the Mosaico SDK Documentation.

Installation

Install the SDK via pip:

pip install mosaicolabs

Infrastructure Prerequisite

Before running any mosaico service via SDK, ensure your Mosaico Infrastructure is active and running. The easiest way to follow the documentation.

from mosaicolabs import MosaicoClient

# Connect to the Mosaico server
with MosaicoClient.connect(host="localhost", port=6726) as client:
    # Simple is-alive check
    print(client.version())

Interactive Examples

We provide pre-built examples to help you explore the SDK capabilities. You can run them using the mosaicolabs.examples command:

# List all available examples and help
mosaicolabs.examples --help

# Run a specific example
mosaicolabs.examples data_inspection

Available Examples:

  • ros_injection: Demonstrates downloading a sample dataset and ingesting it.
  • data_inspection: Shows how to list sequences and inspect topic metadata.
  • query_catalogs: Advanced querying based on ontology tags and sensor values.
  • mujoco_vis: Advanced querying and result visualization.

ROS Data Injector

Inject ROS bags (MCAP or legacy) directly into the platform:

mosaicolabs.ros_injector --file path/to/your/data.mcap --sequence my_test_run

Quick Start (Python)

from mosaicolabs import MosaicoClient

# Connect to the Mosaico server
with MosaicoClient.connect(host="localhost", port=6726) as client:
    # List available sequences
    sequences = client.list_sequences()
    print(f"Connected! Found sequences: {sequences}")

    # Get a handle for a specific sequence
    if sequences:
        handler = client.sequence_handler(sequences[0])
        print(f"- Topics: {handler.topics}")
        print(f"- Created: {handler.created_timestamp}")
        print(f"- Updated: {handler.updated_timestamps}")

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for more details.

Contributing

We welcome contributions! Please refer to our Development Guide for instructions on how to set up your environment using Poetry.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mosaicolabs-0.5.0.tar.gz (195.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosaicolabs-0.5.0-py3-none-any.whl (267.9 kB view details)

Uploaded Python 3

File details

Details for the file mosaicolabs-0.5.0.tar.gz.

File metadata

  • Download URL: mosaicolabs-0.5.0.tar.gz
  • Upload date:
  • Size: 195.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/25.5.0

File hashes

Hashes for mosaicolabs-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e1b2ecd81218572cae90dd54e4fb75e5145ec83a31a496be59b3408f0b2adc2c
MD5 262e8f588ddbf65a3bf4d5639d81e403
BLAKE2b-256 eda38379b2df3095d179d9fa95a4e8ca40bb0cdd33b7459c49b5fb27a1020896

See more details on using hashes here.

File details

Details for the file mosaicolabs-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: mosaicolabs-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 267.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/25.5.0

File hashes

Hashes for mosaicolabs-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5212f5cf0ae6bb7006c5cd509eeeb72a12f3297bba8ccc05f90ddcff34b2baf3
MD5 8f217cfc2f5c011d648c3c3c44d934c3
BLAKE2b-256 464d7b2adaf9251f8cf62195b3c87abc96f0a223f91a670fe3185939d237c37d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page