No project description provided
Project description
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 pressproof
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.
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
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 pressproof-1.1.3.tar.gz.
File metadata
- Download URL: pressproof-1.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b8dd0bc20a622774e67dc5af276f845b871eba26fac24e470252680d6a07dd9
|
|
| MD5 |
979d46c61eb7f296782c244c737acd61
|
|
| BLAKE2b-256 |
6aaadb1f44c30c87d7ad24bf8738217301759f3f55c3833d022c311bd05096c6
|
File details
Details for the file pressproof-1.1.3-py3-none-any.whl.
File metadata
- Download URL: pressproof-1.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a93ba73091382cc66c54de0f4156f7a28f44df3c275f2fda7ec6553ac8d808cb
|
|
| MD5 |
5e5e6f81f002cc41b92d82d55952e44e
|
|
| BLAKE2b-256 |
8532cb3d6c32f4e66e33cf361c0810b03f459b5905492c34cb460f7a7f72b4f3
|