Skip to main content

Client for RedPen, a text validator

Project description

PyRedPen: Client for Text Validator

Copyright (C) 2015 Takahiro Yoshimura

This is a Python client for the RedPen, a text validator.


$ /path/to/python3/bin/pyvenv ~/ve/rp
$ source ~/ve/rp
(rp) $ python ./ develop # assuming you are standing on the working copy you've just cloned
(rp) $ pip install pyredpen      # ... otherwise install from PyPI
(rp) $ redpen-validate examples/sampledoc-en.txt
Found errors (4)
(rp) $ redpen-flymake examples/sampledoc-en.txt
examples/sampledoc-en.txt:1:0: warning: The number of words (32) exceeds the maximum of 30. [WordNumber]
examples/sampledoc-en.txt:1:128: warning: Found repeated word "such". [DoubledWord]
examples/sampledoc-en.txt:1:133: warning: Found repeated word "software". [DoubledWord]
(rp) $ redpen-flymake examples/sampledoc-ja.txt
examples/sampledoc-ja.txt:1:0: warning: The length of the sentence (101) exceeds the maximum of 100. [SentenceLength]
examples/sampledoc-ja.txt:1:83: warning: Found invalid symbol ",". [InvalidSymbol]
examples/sampledoc-ja.txt:1:49: warning: Found repeated word "分散". [DoubledWord]
examples/sampledoc-ja.txt:1:51: warning: Found repeated word "ソフトウェア". [DoubledWord]


  • Python 3 safe
  • Simple-ish API


  • Blindly assuming input and output in UTF-8.
  • Insanely hackish.


The MIT license. Please refer to the LICENSE.txt.

Project details

Download files

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

Files for pyredpen, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pyredpen-0.0.5-py2.py3-none-any.whl (5.3 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pyredpen-0.0.5.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page