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.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-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pressproof-1.1.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.tar.gz
Algorithm Hash digest
SHA256 71e60e480c1bb7ce2857d2d38f03bd63ddccbb259f038000316f578b2cb57f67
MD5 876f79d177fd5a5a105597c0e90e17fc
BLAKE2b-256 2c40e5dddb7e61803b7e49fa13e1e8fe0c174144095c05a5efe0309dc0e7313b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pressproof-1.1-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-py3-none-any.whl
Algorithm Hash digest
SHA256 0eaf011e5c8da2eb48fd215027421f435b0baa6acf0448a2da0ec4e588579e1d
MD5 90238ab49ea4ee9563bba9ac01eb31f5
BLAKE2b-256 e77888e4d56422adc0b152fe4811350fd71312967c7537d28f923d0f08dff350

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