Skip to main content

Export Dropbox Paper documents to markdown

Project description

Dropbox Paper Export

Tool to export Dropbox Paper documents to Markdown files with embedded images downloaded locally.

Features

  • Exports all .paper documents from a Dropbox folder (including subfolders) to Markdown format
  • Downloads and saves images locally, updating markdown links to reference local files
  • Supports both personal and team Dropbox accounts
  • Shows progress with a progress bar during export
  • Preserves folder structure from Dropbox

How It Works

  1. Connects to Dropbox using the API
  2. Recursively scans for .paper files in the specified directory
  3. Exports each document to Markdown format using Dropbox's export API
  4. Scans the exported markdown for image links
  5. Downloads each image and saves it to a local assets/ folder
  6. Updates the markdown to reference the local image paths

Requirements

  • Python 3.12+
  • Dropbox API access token with appropriate permissions

Usage

  1. Create a Dropbox App at https://www.dropbox.com/developers/apps
  2. Generate an access token with the following permissions:
    • account_info.read
    • files.metadata.read
    • files.content.read
    • sharing.read
  3. Install:
pip install dropbox-paper-export
  1. Run
dropbox-paper-export --access-token ACCESS_TOKEN

Sample output:

Dropbox Paper to Markdown + Images Exporter ---
   * Detected Team Account. Namespace ID: 1862260163
   * Switching API context to Team Root...
1. Scanning Dropbox for .paper files... (This takes a moment)
2. Found 138 Paper documents. Starting export...

Exporting:  28%|██        | 39/138 [01:43<02:35,  1.57s/doc]
   -> Downloading 15 images for 'Meeting summary'...

Development

# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies
uv sync

# Running locally
uv run main.py --access-token YOUR_TOKEN

# Linting
uv run ruff check .
uv run ruff format .

# Building release
uv build

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

dropbox_paper_export-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

dropbox_paper_export-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dropbox_paper_export-0.1.0.tar.gz
Algorithm Hash digest
SHA256 37e7a1796dd1b555b260ef5e1f7086ef9e8d3b9ef12c121628a7ade4dd0b2548
MD5 6a2e995c92e456e4b35fca9ded747a73
BLAKE2b-256 749090792aedd1a6c8c0af722f8f91192ab4cc0927f634477ec398f796335f17

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on ceresnam/dropbox-paper-export

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

File details

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

File metadata

File hashes

Hashes for dropbox_paper_export-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc984a585bb9db927121532f6c96cdc20460e957122f40970a8d34cf27f4513
MD5 db71d377bf2314744ee0cab283a0a6fb
BLAKE2b-256 b096a3790a267f27d9cc7a23e0cecc77780d3bddd88915507db4301efbe968be

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on ceresnam/dropbox-paper-export

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