Skip to main content

No project description provided

Project description

CLI Render

PressProof

PressProof is a command-line tool proofreading pressbook books. Given the a starting page URL, pressbook automatically crawls through each consecutive page, extracting text and identifying errors using an LLM of choice (Restricted to OpenAI). Results are logged in realtime to a log file containing each error, the reason it was flagged, and their solutions!

Installation & Configuration

Assuming you have python installed, run:

pip install git+https://github.com/Slynyr/pressbook-checker.git

PressProof makes use of the OpenAI API so you will need to set a OPENAI_API_KEY environment variable in order to use the tool. You can set a temporary environment variable for the terminal session as follow:

export OPENAI_API_KEY="<your_super_secret_key>"

Example Usage

Scanning a pressbook with default configuration:

pressproof --url <Starting page URL>

Scanning a pressbook with maximum depth depth and a custom LLM condition:

pressproof --url <Starting page URL> --maddepth 10 --llmcondition <Custom condition>
pressproof --url <Starting page URL> --llmcondition "Ignore grammatical mistakes involving apostrophes" 

PressProof offers many more arguments that can be configured that were not directly covered above. If you would like to learn more about them and their usage, run pressproof --help in your terminal.

Outputs

Pressproof generates a log file in the current working directory on the fly, which means you can safely interrupt the proof read at any moment. The default output is written to pplog.txt however, a custom filename can be set using the --filename argument.

Output Log Format

===========================
| <Page Title> | <Page URL>
Error: <Original Text> | Issue : <Explenation and Solution to error>

Known Issues

  • False Positives: Inline styling in some text books can cause the LLM to incorrectly identify errors with regards to extra or missing spaces

Risk Notice ⚠️

PressProof makes use of web scraping in order to pull information from each page. While Pressbook does not explicitely prohibit web scraping in their terms of service, site policies may change, and access could be restricted at any time.

Use this tool at your own risk. The author takes no responsibility for any consequences of its use.

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

pressproof-1.1.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

pressproof-1.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pressproof-1.1.2.tar.gz.

File metadata

  • Download URL: pressproof-1.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for pressproof-1.1.2.tar.gz
Algorithm Hash digest
SHA256 0821e17498f8582256af30b5aed87984a3d050c0d5fb7a3b16fc11af467f59b4
MD5 eed674552f172ffe796a90d429709090
BLAKE2b-256 30e78f89ee89adf66a440fa5379d389775286cf338098b365b197af086aba6ff

See more details on using hashes here.

File details

Details for the file pressproof-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: pressproof-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for pressproof-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6987e21445817df9e04c8e1fe5dcb4b9cf6a45d341e1638bcf2469d2cd63a851
MD5 93cec3e3da7811b949f04ce8e27fdc1f
BLAKE2b-256 d9503c210b5a47e830dfb9611cecb8313e8acc138b191e802716a50636a91d0a

See more details on using hashes here.

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