Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Client for RedPen, a text validator

Project Description

PyRedPen: Client for Text Validator

Copyright (C) 2015 Takahiro Yoshimura altakey@gmail.com

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

0. HOW TO USE

$ /path/to/python3/bin/pyvenv ~/ve/rp
$ source ~/ve/rp
(rp) $ python ./setup.py 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]
...

1. FEATURES

  • Python 3 safe
  • Simple-ish API

2. BUGS

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

3. LICENSE

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

Release History

Release History

This version
History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyredpen-0.0.5-py2.py3-none-any.whl (5.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel May 26, 2015
pyredpen-0.0.5.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source May 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting