Skip to main content

CLI for yapit.md — fetch clean markdown from URLs and documents

Project description

yapit

CLI for yapit.md — fetch clean markdown from URLs, files, and documents.

Install

uv tool install yapit

Usage

# Create document from URL, print markdown
yapit https://example.com/article
yapit https://arxiv.org/abs/2301.00001

# Local files
yapit paper.pdf
yapit notes.md

# With AI transformation (TTS annotations, spoken readings for math, figure extraction, noise filtering)
yapit paper.pdf --ai

# Fetch existing document
yapit https://yapit.md/listen/<doc-id>
yapit <doc-id> --annotated

# Save to directory with images
yapit <doc-id> -o .

# Stdin
echo "hello world" | yapit -

Auth

Creating documents or accessing private docs requires a yapit.md account:

export YAPIT_EMAIL=you@example.com
export YAPIT_PASSWORD=...

Fetching shared documents works without auth.

Self-hosting

Point the CLI at your own instance with YAPIT_BASE_URL:

export YAPIT_BASE_URL=http://localhost:8000
yapit fetch paper.pdf

If your server runs with AUTH_ENABLED=false (the make self-host default), no credentials are needed. If auth is enabled on your instance, set YAPIT_EMAIL / YAPIT_PASSWORD as above.

Save to directory (-o)

-o <dir> saves markdown, TTS annotations, and images:

<dir>/<slug>/
  <slug>.md       # clean markdown, image paths rewritten to relative
  TTS.md          # annotated version (yap-speak, yap-show tags)
  <slug>-<N>.png  # images renamed sequentially

Errors if the output directory already exists.

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

yapit-0.3.7.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

yapit-0.3.7-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file yapit-0.3.7.tar.gz.

File metadata

  • Download URL: yapit-0.3.7.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yapit-0.3.7.tar.gz
Algorithm Hash digest
SHA256 eee7cdda5fcc008bff4cd759afc39197404e19dc309eaf8d5aa37e497fb68a66
MD5 207bf4912b8214eaaff3e8b49150da5b
BLAKE2b-256 d862f967cc650193252010c3d16dfd55f2232c14ff4ecb63f1c318cb36d0b70f

See more details on using hashes here.

File details

Details for the file yapit-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: yapit-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yapit-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 682fdf92a31851f4e8d59e1016a41a3cadfd0ebf1373877b41efc2638fabf1a3
MD5 e8185b5ceef3920168c51a6aa6186d29
BLAKE2b-256 1f9d3350d57c1124f42d0bf38da0e3ac36c9a12a0def8270391a39ce5d1ee414

See more details on using hashes here.

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