PyTure Docs
Introduction
Welcome to PyTure, a lightweight Python library for capturing and exporting structured data.
PyTure is a lightweight Python library designed to capture runtime data/events, store them in memory, and later export/save them in JSON or CSV formats. Itβs useful for logging, debugging, tracking experiments, or session-based data collection.
Key Features
Simple Data Capture
Easily capture runtime events with automatic timestamps and session IDs.
Flexible Saving
Save captures to JSON with multiple modes: raw, timestamp, session, or full.
CSV Export
Export captured data to structured CSV for further analysis or sharing.
Session Tracking
Each run is tracked with a unique session ID and metadata for better organization.
Capture Modes
Normal
Default mode, captures and saves data silently without debug output.
Dev
Developer-friendly mode, prints debug information when capturing, saving, loading, or exporting.
Saving Modes
Raw
Only captured data, no metadata.
Timestamp
Includes timestamp with data.
Session
Includes session ID with data.
Full
Default, includes timestamp, session, and data.