Skip to main content

Safe read-only exporter for vivo Office / Atomic Notes NoteSync.db

Project description

vivo-note-cli

vivo-note-cli is a small, dependency-free command line exporter for vivo Office / Atomic Notes (vivo 办公笔记 / 原子笔记) desktop NoteSync.db files.

It is designed for safe local use:

  • snapshots NoteSync.db plus -wal / -shm sidecar files before reading;
  • opens the copied database with a read-only SQLite URI;
  • exports active notes to JSON or Markdown;
  • omits raw vivo HTML unless you explicitly pass --include-html;
  • never writes to the original vivo database.

[!WARNING] Your notes may contain private content. Do not commit exported JSON/Markdown, database snapshots, or raw private note text to a public repository.

Install

Install from PyPI with uv:

uv tool install vivo-note-cli

If the first PyPI release has not completed yet, install the current GitHub version directly:

uv tool install git+https://github.com/gobylor/vivo-note-cli.git

Upgrade or remove the CLI:

uv tool upgrade vivo-note-cli
uv tool uninstall vivo-note-cli

Quick start

The default database path is:

~/Library/Application Support/pcsuite/database/NoteSync.db

List notebooks:

vivo-note list
vivo-note list --json

Export all active notes as JSON:

vivo-note export --format json --output /tmp/vivo-notes.json

Export one notebook as Markdown:

vivo-note export --notebook 日记 --format markdown --output /tmp/vivo-diary.md

Export notes updated since a date:

vivo-note export --since 2026-04-01 --since-field update --format json

Check whether a database can be read safely without exporting note content:

vivo-note doctor

JSON output

Default JSON records keep these stable fields:

id, guid, notebook, title, contentDigest, created, updated, content_updated,
type, stickTop, content_markdown

content_html is only emitted when --include-html is passed.

中文快速开始

vivo-note-cli 用于只读导出 vivo 办公笔记 / 原子笔记桌面端的 NoteSync.db。默认会先把数据库复制到临时目录,再用 SQLite 只读模式打开,不会写原始数据库。

# 查看笔记文件夹
vivo-note list --json

# 导出「日记」文件夹为 Markdown
vivo-note export --notebook 日记 --format markdown --output /tmp/vivo-diary.md

# 诊断数据库是否可读(不会导出正文)
vivo-note doctor

请不要把 /tmp/vivo-*.json、导出的 Markdown、NoteSync.db 快照或任何私人笔记内容提交到公开仓库。

Scope

Version 0.1 focuses on read-only export. It intentionally does not copy attachments, write to Obsidian, or perform bidirectional sync. See docs/obsidian-recipe.md for an optional import recipe you can adapt outside this package.

Documentation

License

MIT

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

vivo_note_cli-0.1.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

vivo_note_cli-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file vivo_note_cli-0.1.0.tar.gz.

File metadata

  • Download URL: vivo_note_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vivo_note_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 25719892b58b04b72cb75d1b2d9889191c56977f82882dae0f21b1c4b4cff071
MD5 2052d938cc5bfe08be6ea215407bbbb3
BLAKE2b-256 20e77d6a34e499e7bf61090791f7dc18877a43a4725950b7ffd763e37931353b

See more details on using hashes here.

Provenance

The following attestation bundles were made for vivo_note_cli-0.1.0.tar.gz:

Publisher: release.yml on gobylor/vivo-note-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vivo_note_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vivo_note_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vivo_note_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3c72e8dfe74e85a275d6b861f398acaeeceb1c873f79438726295637fa08b3
MD5 c8038d7899941bef4ec01d842424e782
BLAKE2b-256 36c5f073e7f94b3a05fec947ffaa709c5d00870c42f85cb8be1c153a516153de

See more details on using hashes here.

Provenance

The following attestation bundles were made for vivo_note_cli-0.1.0-py3-none-any.whl:

Publisher: release.yml on gobylor/vivo-note-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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