{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "flaminis-dalaran--log-python-run-to-dlr-file",
 "repo": "Flaminis/Dalaran",
 "repo_url": "https://github.com/Flaminis/Dalaran",
 "repo_slug": "flaminis-dalaran",
 "title": "Save a Python sensor run to a .dlr file for later review",
 "page_title": "How to save a Python sensor run to a .dlr file for later review with Dalaran",
 "summary": "Log data from a script to a .dlr file and open it in the viewer afterward.",
 "who": "A developer or researcher who runs a simulator or offline pipeline in Python and wants a replayable file to share.",
 "problem": "Live viewing ends when the script ends, so the run cannot be inspected later or sent to a colleague.",
 "outcome": "A session.dlr file that can be opened in the viewer at any time, with the logged frames on a sequence timeline.",
 "steps": [
  "Run `pip install dalaran-sdk` to install the Python SDK.",
  "Write a script that calls dl.init with your app name, sets a frame timeline with dl.set_time, and logs points with dl.log.",
  "In the same script, call dl.save(\"session.dlr\") in place of spawning a live viewer.",
  "Run `dalaran session.dlr` to open the saved recording and scrub through the frames."
 ],
 "agent_prompt": "In the Flaminis/Dalaran repository, install dalaran-sdk with pip, then write a Python script that logs 100 frames of a point cloud to session.dlr using dl.save. Expected output is a session.dlr file. Verify it by running dalaran session.dlr and confirming the frame timeline appears.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README calls the API still evolving with breaking changes between releases, so check CHANGELOG.md if a call fails after an upgrade.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Python with pip, or Rust with cargo, to install the Dalaran SDK or viewer",
  "A terminal to run the dalaran command",
  "An existing .rrd, .dlr, or MCAP recording, or a ROS 2 setup with rosbag2 files, for the replay use cases"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/flaminis-dalaran/log-python-run-to-dlr-file/",
 "md": "https://dedupedai.com/use-cases/flaminis-dalaran/log-python-run-to-dlr-file/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/flaminis-dalaran--log-python-run-to-dlr-file.json",
 "api_version": "v1"
}
