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 details)
File details
Details for the file Flask-Cat-1.0.0.tar.gz
.
File metadata
- Download URL: Flask-Cat-1.0.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3b3a27554ae22d7e263665dfa7c67c2090890557110fe7c3d23b6a53a8d820 |
|
MD5 | f5c258299de7bc08a96fb5d7c35ae4b3 |
|
BLAKE2b-256 | fd302fc0137374e4e3193efea38172cff4f87f739bc8b3078803afd0d6d5a7a2 |