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 details)

Uploaded Source

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

Hashes for Flask-Cat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a3b3a27554ae22d7e263665dfa7c67c2090890557110fe7c3d23b6a53a8d820
MD5 f5c258299de7bc08a96fb5d7c35ae4b3
BLAKE2b-256 fd302fc0137374e4e3193efea38172cff4f87f739bc8b3078803afd0d6d5a7a2

See more details on using hashes here.

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