GLM-OCR PDF/Image to Markdown conversion CLI.
Project description
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.
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 glm_ocr_cli-0.0.1.tar.gz.
File metadata
- Download URL: glm_ocr_cli-0.0.1.tar.gz
- Upload date:
- Size: 97.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08c546637019d9570fa47e05f56ae08fc9f384dada95009c9d864c144dd306b7
|
|
| MD5 |
73f62436abc303f899ea3b3542fc4a71
|
|
| BLAKE2b-256 |
67d4182fd0a2864d73620348c13b433ce2296f69d9b9b1573152a522a82cb91d
|
File details
Details for the file glm_ocr_cli-0.0.1-py3-none-any.whl.
File metadata
- Download URL: glm_ocr_cli-0.0.1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
618698e2b9ff4bee73e26fe9fbe7f20c36b262027084425f2e38cf7f09755006
|
|
| MD5 |
9c7db0a98f97bc242052def665a9cadb
|
|
| BLAKE2b-256 |
a3f81369dd8d5ffa4e1df95caf884b9a27b1d3af831faf766e1446005aa021c0
|