omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] feat(python-cli): memories -> CSV export recipe ($25 proposed)

Open nguyentruong190 opened this issue 2 months ago • 2 comments

Summary

The memories export surface currently ships only a Markdown recipe. This proposes a memories -> CSV recipe so memory exports can feed spreadsheets (Excel/Sheets open it out of the box via UTF-8 BOM), pandas pipelines, and bulk imports — mirroring the accepted conversations -> CSV recipe but for the memory domain.

  • sdks/python-cli/examples/memories_to_csv.py — stdlib-only converter: fixed columns (id, content, category, tags, visibility, created_at, updated_at, app_id with source_app fallback), pipe-joined tags, timestamps normalized to ISO-8601 UTC, default CSV to stdout plus exclusive-creation -o writes.
  • Reuses the established spreadsheet_text formula-injection guard from the conversations CSV recipe; envelope unwrapping (memories/items/data, bare list, single object); BOM-tolerant input; loose row coercion so one odd record cannot crash the export, filtered or not.
  • --category / --visibility filters (parity with the Markdown recipe).
  • sdks/python-cli/examples/memories_csv.md — recipe documentation, registered in examples/README.md.
  • sdks/python-cli/tests/test_memories_to_csv.py — 49 hermetic unit tests (row coercion, formula guard, tags/timestamps, envelope unwrapping, filters, deterministic bytes, CLI exit codes).

Validation

  • python -m unittest discover -s sdks/python-cli/tests -p test_memories_to_csv.py: 49 passed.
  • black + isort clean with the repo settings (line-length 120, black profile).
  • No changes to any existing recipe or shared code — new files plus a README discovery line.

Proposed Bounty

  • $25 (standard developer recipe bounty). Payable through the documented PayPal process after acceptance and merge.

Payout (PayPal): [email protected]

Disclosure: the investigation, recipe, and tests were prepared with an AI assistant. This proposal does not represent independent human technical review.

nguyentruong190 avatar Oct 02 '26 05:10 nguyentruong190

I'd like to take this bounty.

I've reviewed the requirements and can implement the memories → CSV recipe, including the required CLI behavior, category/visibility filters, envelope handling, timestamp/tag normalization, formula-injection protection, documentation, and hermetic tests while keeping the implementation stdlib-only.

I’ll work from the existing conversations → CSV recipe pattern and submit a PR for review.

Tanayqq avatar Oct 03 '26 15:10 Tanayqq

Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏

undivisible avatar Oct 22 '26 11:10 undivisible