Flask-Cat returns a cat for each status code above 399.
Project description
Flask-Cats
Flask-cats is a small blueprint which takes all status codes above 399 and returns cat images from httpcats.com
(Made as a Joke, to learn how to make Flask blueprints)
Install
pip install Flask-Cats
Use
from flask import Flask
import flaskcat
app = Flask(__name__)
app.register_blueprint(flaskcat.cat_blueprint)
@app.get('/')
def root():
return 'Hello, World.'
app.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Cat-1.0.0.tar.gz
(1.6 kB
view hashes)