glm-ocr-cli
GLM-OCR PDF/Image to Markdown conversion CLI.
Usage
# Convert local PDF/image file
uvx glm-ocr-cli convert path ./path/to/file.pdf
# Convert PDF/image URL
uvx glm-ocr-cli convert url https://example.com/file.pdf
# Show all commands
uvx glm-ocr-cli --help
Output Layout
Outputs are saved under ~/.glm-ocr-cli/.
~/.glm-ocr-cli/
├── history.json
└── converts/
└── md/
└── {sha256_16}/
├── main.md
├── result.json
├── original.md
└── images/
Configuration
Config path follows the XDG Base Directory Specification:
~/.config/glm-ocr-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.
Release files for glm-ocr-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 | |
|---|---|---|---|
| glm_ocr_cli-0.0.1.tar.gz | 97.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glm_ocr_cli-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 124.8 kB
Release files / glm_ocr_cli-0.0.1.tar.gz
| Download URL | glm_ocr_cli-0.0.1.tar.gz |
|---|---|
| Size | 97.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08c546637019d9570fa47e05f56ae08fc9f384dada95009c9d864c144dd306b7
|
|
BLAKE2b-256 checksum How to use checksums |
67d4182fd0a2864d73620348c13b433ce2296f69d9b9b1573152a522a82cb91d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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 / glm_ocr_cli-0.0.1-py3-none-any.whl
| Download URL | glm_ocr_cli-0.0.1-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
618698e2b9ff4bee73e26fe9fbe7f20c36b262027084425f2e38cf7f09755006
|
|
BLAKE2b-256 checksum How to use checksums |
a3f81369dd8d5ffa4e1df95caf884b9a27b1d3af831faf766e1446005aa021c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}
|