Generate kindle-like x-ray for e-books with LLM
Project description
🔬📖 X-ray GPT
Generate kindle-like X-ray for e-books with LLM
🚀 Usage
pip install xraygpt
python -m xraygpt [epub_file]
🤖 LLM Support
Current this tool only support OpenAI (or compatible API like DeepSeek, Kimi, etc.) and Azure OpenAI by setting environment variables.
You can config following environment variables to use different LLM service:
OPENAI_API_BASE: OpenAI API or other compatible API base URLOPENAI_API_KEY: OpenAI API keyOPENAI_API_VERSION: OpenAI API versionAZURE_OPENAI_ENDPOINT: Use Azure OpenAI endpoint instead of standard OpenAI
Model name can be set by command line argument --chat_model and --embedding_model.
📚 E-book Support
Currently only support .epub format. Output format is a .json file as WordDumb style.json". You can import this file manualy via Calibre. First select the book and click "Open book Folder". Then create/replace worddumb-custom-x-ray.json with the generated json file.
Generating X-Ray DB file is in progress.
🧑💻 Dev Setup
pip install -e '.[dev]'
🎩 Static analysis
make format
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 xraygpt-0.2.7.tar.gz.
File metadata
- Download URL: xraygpt-0.2.7.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbfa7db7a025fd93b3034fe84aa872ceae51cb1c38b48d638ccea3145ff00c19
|
|
| MD5 |
bbdc3b9e9510129daa477a2d6c3053e1
|
|
| BLAKE2b-256 |
c277649a9ca4329cfab43b436d6b0a9c1639e62cfbdf7b94479419537fc43564
|
File details
Details for the file xraygpt-0.2.7-py3-none-any.whl.
File metadata
- Download URL: xraygpt-0.2.7-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac5265c3273eb88840abc40237559319812dc5bac679d53d7a25ae407c64dd81
|
|
| MD5 |
ea6b966216e071ca80d45c0d660468b5
|
|
| BLAKE2b-256 |
c324e4f79927e81223d69d2c290418cdab8c75130cbf38879dfb4661af2aba53
|