Skip to main content

Generate kindle-like x-ray for e-books with LLM

Project description

🔬📖 X-ray GPT

PyPI version Release Building Code style: black

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 URL
  • OPENAI_API_KEY: OpenAI API key
  • OPENAI_API_VERSION: OpenAI API version
  • AZURE_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. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xraygpt-0.2.10.post0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xraygpt-0.2.10.post0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file xraygpt-0.2.10.post0.tar.gz.

File metadata

  • Download URL: xraygpt-0.2.10.post0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xraygpt-0.2.10.post0.tar.gz
Algorithm Hash digest
SHA256 aa7c3fc6e294d4588400e0579bc1d803d4ff74a34a38067648939f9831465323
MD5 9a50cfb6d518c6bb128690281e618b86
BLAKE2b-256 9622bf5a5dc066924dcaecafaff8a225fe268e0ecf35fe13feeca3a68a059e21

See more details on using hashes here.

Provenance

The following attestation bundles were made for xraygpt-0.2.10.post0.tar.gz:

Publisher: release.yml on iaalm/xraygpt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xraygpt-0.2.10.post0-py3-none-any.whl.

File metadata

  • Download URL: xraygpt-0.2.10.post0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xraygpt-0.2.10.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 b867410997fc3768c4ca272c5c1a6ef57067a80c2768ddd5bb5e9c77db50a87f
MD5 636a077a187b18bfc7b7a30ce4b416d0
BLAKE2b-256 d3200a7cb70a2496ea2d32a5eb96ef88bbc52070a77e8148063aeaddd859f7d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xraygpt-0.2.10.post0-py3-none-any.whl:

Publisher: release.yml on iaalm/xraygpt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page