Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page