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 setup.py sdist upload $ python setup.py bdist_egg upload

To create a new release, you need to:
  • update the VERSION variable in flask_captcha/__init__.py

  • updated the version in the setup.py 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.

Source Distribution

Flask-Captcha-0.1.8.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flask_Captcha-0.1.8-py3.3.egg (64.6 kB view details)

Uploaded Egg

File details

Details for the file Flask-Captcha-0.1.8.tar.gz.

File metadata

  • Download URL: Flask-Captcha-0.1.8.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flask-Captcha-0.1.8.tar.gz
Algorithm Hash digest
SHA256 fdc0d77914afbfb5ccd723fc914f09e605afb3b28425261a673dc0cc67c24b56
MD5 36125466b42929886ff424669154a56f
BLAKE2b-256 b04c9fab5efbd588f2a60b5b14772097163733533661fe554f7ca679c84e2c91

See more details on using hashes here.

File details

Details for the file Flask_Captcha-0.1.8-py3.3.egg.

File metadata

File hashes

Hashes for Flask_Captcha-0.1.8-py3.3.egg
Algorithm Hash digest
SHA256 46d44d390c5feb02df5ec1787efbafdb5b85291d78b4ba70a724dc68324640df
MD5 0317624df5477d7b33628af62e5490e0
BLAKE2b-256 03234af4d2a3fe22eef6ff4a66566938be6d53097cb882de2e3d6e312436e18b

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