Mathpix CLI for PDF conversion and image snips.
Project description
mathpix-cli
Mathpix CLI for PDF conversion and image snips.
Usage
# Convert a local PDF
uvx mathpix-cli convert pdf path ./path/to/file.pdf
# Convert a PDF from a URL
uvx mathpix-cli convert pdf url https://example.com/file.pdf
# Snip an image
uvx mathpix-cli snip image ./path/to/equation.png
# Show all commands
uvx mathpix-cli --help
Output Layout
Outputs are saved under ~/.mathpix-cli/.
~/.mathpix-cli/
├── history.json
├── converts/
│ └── {format}/
│ └── {sha256_16}/
│ ├── main.{ext}
│ ├── original.{ext}
│ └── images/
└── snips/
└── {format}/
└── {sha256_16}/
├── main.{ext}
└── {fingerprint}/
└── main.{ext}
Configuration
Config path follows the XDG Base Directory Specification:
~/.config/mathpix-cli/config.toml
See config.example.toml for all available options.
Development
just setup-dev
Tooling
- Runtime: uv
- JS/TS: Biome
- Python: Ruff, mypy, pytest, Poe
- Project template: Copier
- Task runner: just
- Git hooks: Lefthook
Dependencies
Automated via Renovate. Dependency update PRs are created automatically.
Release
Automated via release-please.
Merge the auto-generated Release PR to bump version, update CHANGELOG.md, and create a tag.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mathpix_cli-0.0.1.tar.gz.
File metadata
- Download URL: mathpix_cli-0.0.1.tar.gz
- Upload date:
- Size: 115.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b077b3241ddf0e2f6dfb8404cb6524065e09b22fd357707f330e8d358f59b5
|
|
| MD5 |
a40e4effd554f72ce0d29c072e2578dc
|
|
| BLAKE2b-256 |
4bffc1250a9059a7fd4dad1332645e8618bb2e7e36141f385503367c87297a55
|
File details
Details for the file mathpix_cli-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mathpix_cli-0.0.1-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f05bed19fc126a04bd74380b7de427f98be73653e5bcd2661f98d8eca45b3f7
|
|
| MD5 |
194cc95fd5de4140200a30ecc81a5c4e
|
|
| BLAKE2b-256 |
e9a63683528be51c4817adf9740d1a25e5d62692532232ad7f912e5122ee79e8
|