Skip to main content

A very simple, yet powerful, Flask captcha extension

Project description

# Flask-Captcha

Python Simple Captcha is an extremely simple, yet highly customizable flask extension to use

## Features

  • Very simple to setup and deploy, yet very configurable
  • Can use custom challenges (e.g. random chars, simple maths, dictionary word, …)
  • Custom generators, noise and filter functions alter the look of the generated image
  • Supports text-to-speech audio output of the challenge text, for improved accessibility

## Requirements

  • Python 3.3+
  • Flask
  • A recent version of the Python Imaging Library (Pillow 2.2+) compiled with FreeType support
  • Flite is required for text-to-speech (audio) output, but not mandatory

## Troubleshooting

  • If the captcha does not render, try opening the img url link directly. If you get this error

“Python: The _imagingft C module is not installed”

You need to recompile Pillow with libfreetype6 support. To do this

$ sudo apt-get install libfreetype6-dev

$ pip uninstall pillow

$ pip install pillow

## Development and releases

Developers with release credentials can upload a new version to Pypi using the following two commands:

$ python sdist upload $ python bdist_egg upload
To create a new release, you need to:
  • update the VERSION variable in flask_captcha/
  • updated the version in the script
  • create a git tag for the release

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask_Captcha-0.1.6-py3.3.egg (58.8 kB) Copy SHA256 hash SHA256 Egg 3.3
Flask-Captcha-0.1.6.tar.gz (50.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page