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.
Metadata
Release files for mathpix-cli 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mathpix_cli-0.0.1.tar.gz | 115.7 kB | Without provenance | Details for mathpix_cli-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mathpix_cli-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for mathpix_cli-0.0.1-py3-none-any.whl |
Total release size: 158.7 kB
Release files / mathpix_cli-0.0.1.tar.gz
| Download URL | mathpix_cli-0.0.1.tar.gz |
|---|---|
| Size | 115.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81b077b3241ddf0e2f6dfb8404cb6524065e09b22fd357707f330e8d358f59b5
|
|
BLAKE2b-256 checksum How to use checksums |
4bffc1250a9059a7fd4dad1332645e8618bb2e7e36141f385503367c87297a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / mathpix_cli-0.0.1-py3-none-any.whl
| Download URL | mathpix_cli-0.0.1-py3-none-any.whl |
|---|---|
| Size | 43.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f05bed19fc126a04bd74380b7de427f98be73653e5bcd2661f98d8eca45b3f7
|
|
BLAKE2b-256 checksum How to use checksums |
e9a63683528be51c4817adf9740d1a25e5d62692532232ad7f912e5122ee79e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for mathpix-cli 0.0.1
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.