Skip to main content

obsform

obsform (Obsidian Formatter) is an LLM-powered CLI tool designed to automatically clean, correct, and perfectly format your Obsidian notes.

Powered by Google's Gemini 1.5 Flash model, obsform acts as your personal editor. It fixes typos, corrects grammar, converts raw text into clean Markdown, and ensures all your mathematical formulas are perfectly rendered in Obsidian's specific LaTeX format.

Features

  • Smart Formatting: Fixes spelling, grammar, and punctuation without losing your personal voice.
  • Obsidian Native: Preserves your [[Internal Links]] and #tags.
  • Math Formatter: Automatically identifies mathematical equations and wraps them in Obsidian-compatible LaTeX ($ for inline, $$ for blocks).
  • Batch Processing: Pass a whole folder of notes, and it will process all .md and .txt files inside.
  • Interactive Diff View: See exactly what the LLM changed with a color-coded terminal diff before saving.
  • Format Conversion: Seamlessly converts plain .txt files into properly formatted .md Obsidian notes.
  • Secure & Local Setup: Stores your API key securely in a local config file so you only have to enter it once.

Installation

Install obsform globally using pip:

pip install obsform

Setup

Before using the tool, you need to provide a free Google Gemini API key. You can get one from Google AI Studio.

Run the setup command to save your key securely:

obsform setup

Usage

Processing a Single File

Process a note and save the output as a new file (e.g., note_processed.md):

obsform process my_note.md

Overwrite the original file with the corrected version:

obsform process my_note.md --replace

Batch Processing

Pass a directory to process all .md and .txt files inside it:

obsform process path/to/my/vault/folder/

Bypassing the Diff View

If you are batch-processing dozens of files and trust the LLM, use the --auto-approve (or -y) flag to skip the confirmation prompt:

obsform process path/to/folder/ --replace -y

Requirements

  • Python 3.9+
  • A valid Google Gemini API Key

License

MIT License

Metadata

Release files for obsform 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obsform 0.1.5
File Size Uploaded Provenance Actions
obsform-0.1.5.tar.gz 4.7 kB Without provenance Details for obsform-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for obsform 0.1.5
File Interpreter ABI Platform Actions
obsform-0.1.5-py3-none-any.whl Python 3 none any Details for obsform-0.1.5-py3-none-any.whl

Total release size: 9.8 kB

Release files / obsform-0.1.5.tar.gz

Download URL obsform-0.1.5.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bc0c2daf4d7e23df4209490cffa7253b4e467c1527606a34d78b85a2bd4472c8
BLAKE2b-256 checksum
How to use checksums
bc496f2b0eb14c1b9c67a5402a80c633029c5928ce1a83e7f485f35fa1680cd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / obsform-0.1.5-py3-none-any.whl

Download URL obsform-0.1.5-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdbbe842fb4032a1d912a4cdc668cd2ff806493c27d8a3d04fcc32eb9880e3d4
BLAKE2b-256 checksum
How to use checksums
93321fb2f957dfa67f5d43fbcf3d6c82d98eeb1924c37d35e3ade906e416b50c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for obsform 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page