a flask profiler which watches endpoint calls and tries to make some analysis.

Overview

Flask-profiler

version: 1.8 Build Status

Flask-profiler measures endpoints defined in your flask application; and provides you fine-grained report through a web interface.

It gives answers to these questions:

  • Where are the bottlenecks in my application?
  • Which endpoints are the slowest in my application?
  • Which are the most frequently called endpoints?
  • What causes my slow endpoints? In which context, with what args and kwargs are they slow?
  • How much time did a specific request take?

In short, if you are curious about what your endpoints are doing and what requests they are receiving, give a try to flask-profiler.

With flask-profiler's web interface, you can monitor all your endpoints' performance and investigate endpoints and received requests by drilling down through filters.

Screenshots

Dashboard view displays a summary.

Alt text

You can create filters to investigate certain type requests.

Alt text

Alt text

You can see all the details of a request. Alt text

Quick Start

It is easy to understand flask-profiler going through an example. Let's dive in.

Install flask-profiler by pip.

pip install flask_profiler

Edit your code where you are creating Flask app.

# your app.py
from flask import Flask
import flask_profiler

app = Flask(__name__)
app.config["DEBUG"] = True

# You need to declare necessary configuration to initialize
# flask-profiler as follows:
app.config["flask_profiler"] = {
    "enabled": app.config["DEBUG"],
    "storage": {
        "engine": "sqlite"
    },
    "basicAuth":{
        "enabled": True,
        "username": "admin",
        "password": "admin"
    },
    "ignore": [
	    "^/static/.*"
	]
}


@app.route('/product/<id>', methods=['GET'])
def getProduct(id):
    return "product id is " + str(id)


@app.route('/product/<id>', methods=['PUT'])
def updateProduct(id):
    return "product {} is being updated".format(id)


@app.route('/products', methods=['GET'])
def listProducts():
    return "suppose I send you product list..."

@app.route('/static/something/', methods=['GET'])
def staticSomething():
    return "this should not be tracked..."

# In order to active flask-profiler, you have to pass flask
# app as an argument to flask-profiler.
# All the endpoints declared so far will be tracked by flask-profiler.
flask_profiler.init_app(app)


# endpoint declarations after flask_profiler.init_app() will be
# hidden to flask_profiler.
@app.route('/doSomething', methods=['GET'])
def doSomething():
    return "flask-profiler will not measure this."


# But in case you want an endpoint to be measured by flask-profiler,
# you can specify this explicitly by using profile() decorator
@app.route('/doSomethingImportant', methods=['GET'])
@flask_profiler.profile()
def doSomethingImportant():
    return "flask-profiler will measure this request."

if __name__ == '__main__':
    app.run(host="127.0.0.1", port=5000)

Now run your app.py

python app.py

And make some requests like:

curl http://127.0.0.1:5000/products
curl http://127.0.0.1:5000/product/123
curl -X PUT -d arg1=val1 http://127.0.0.1:5000/product/123

If everything is okay, Flask-profiler will measure these requests. You can see the result heading to http://127.0.0.1:5000/flask-profiler/ or get results as JSON http://127.0.0.1:5000/flask-profiler/api/measurements?sort=elapsed,desc

If you like to initialize your extensions in other files or use factory apps pattern, you can also create a instance of the Profiler class, this will register all your endpoints once you app run by first time. E.g:

from flask import Flask
from flask_profiler import Profiler

profiler = Profiler()

app = Flask(__name__)

app.config["DEBUG"] = True

# You need to declare necessary configuration to initialize
# flask-profiler as follows:
app.config["flask_profiler"] = {
    "enabled": app.config["DEBUG"],
    "storage": {
        "engine": "sqlite"
    },
    "basicAuth":{
        "enabled": True,
        "username": "admin",
        "password": "admin"
    },
    "ignore": [
        "^/static/.*"
    ]
}

profiler = Profiler()  # You can have this in another module
profiler.init_app(app)
# Or just Profiler(app)

@app.route('/product/<id>', methods=['GET'])
def getProduct(id):
    return "product id is " + str(id)

Using with different database system

You can use flaskprofiler with SqlLite, MongoDB, Postgresql, Mysql or MongoDB database systems. However, it is easy to support other database systems. If you would like to have others, please go to contribution documentation. (It is really easy.)

SQLite

In order to use SQLite, just specify it as the value of storage.engine directive as follows.

app.config["flask_profiler"] = {
    "storage": {
        "engine": "sqlite",
    }
}

Below the other options are listed.

Filter key Description Default
storage.FILE SQLite database file name flask_profiler.sql
storage.TABLE table name in which profiling data will reside measurements

MongoDB

In order to use MongoDB, just specify it as the value of storage.engine directive as follows.

app.config["flask_profiler"] = {
    "storage": {
        "engine": "mongodb",
    }
}

SQLAchemy

In order to use SQLAchemy, just specify it as the value of storage.engine directive as follows. Also first create an empty database with the name "flask_profiler".

app.config["flask_profiler"] = {
    "storage": {
        "engine": "sqlalchemy",
        "db_url": "postgresql://user:[email protected]:5432/flask_profiler"  # optional, if no db_url specified then sqlite will be used.
    }
}

Custom database engine

Specify engine as string module and class path.

app.config["flask_profiler"] = {
    "storage": {
        "engine": "custom.project.flask_profiler.mysql.MysqlStorage",
        "MYSQL": "mysql://user:[email protected]/flask_profiler"
    }
}

The other options are listed below.

Filter key Description Default
storage.MONGO_URL mongodb connection string mongodb://localhost
storage.DATABASE database name flask_profiler
storage.COLLECTION collection name measurements

Sampling

Control the number of samples taken by flask-profiler

You would want control over how many times should the flask profiler take samples while running in production mode. You can supply a function and control the sampling according to your business logic.

Example 1: Sample 1 in 100 times with random numbers

app.config["flask_profiler"] = {
    "sampling_function": lambda: True if random.sample(list(range(1, 101)), 1) == [42] else False
}

Example 2: Sample for specific users

app.config["flask_profiler"] = {
    "sampling_function": lambda: True if user is 'divyendu' else False
}

If sampling function is not present, all requests will be sampled.

Changing flask-profiler endpoint root

By default, we can access flask-profiler at /flask-profiler

app.config["flask_profiler"] = {
        "endpointRoot": "secret-flask-profiler"
}

Ignored endpoints

Flask-profiler will try to track every endpoint defined so far when init_app() is invoked. If you want to exclude some of the endpoints, you can define matching regex for them as follows:

app.config["flask_profiler"] = {
        "ignore": [
	        "^/static/.*",
	        "/api/users/\w+/password"
        ]
}

Contributing

Contributions are welcome!

Review the Contributing Guidelines for details on how to:

  • Submit issues
  • Add solutions to existing challenges
  • Add new challenges

Authors

License

MIT

Comments
  • Allow deletion of profiling from UI and/or profiling session

    Allow deletion of profiling from UI and/or profiling session

    Are you considering adding some functionality to start a profiling session. As information marked without it is difficult to process ?

    Also, one easy way of doing that would be to have buttons like :-

    1. delete all data (to start over)
    2. Save and delete all data (to save a session or all data so far and start over)

    If you guys agree on this, I can start working on a PR for the same :)

    Thanks

    enhancement 
    opened by divyenduz 12
  • Optimizing for production profiling like XHGui

    Optimizing for production profiling like XHGui

    Is there a feature where we can limit the number of samples probabilistic and use profile in production with huge load ?

    If such a feature is not present, we can create one like :-

    This is done in one of php profilers named XHGui | https://github.com/perftools/xhgui

    The following example configures XHGui to profile 1 in 100 requests, excluding requests with the /blog URL path:

    opened by divyenduz 10
  • No info in dashboard

    No info in dashboard

    I installed flask-profiler today and seems to work alright, except I don't get any methods info in the dashboard screen, what am I doing wrong?

    Filtering page seems to work alright.

    Please check the screenshots:

    dashboard: http://imgur.com/OfnCqU0 filtering: http://i.imgur.com/TdZkmgY

    bug 
    opened by alejoar 9
  • Flask crashes when static files are served (ProgrammingError: Recursive use of cursors not allowed)

    Flask crashes when static files are served (ProgrammingError: Recursive use of cursors not allowed)

    When I enable the flask-profiler, the app crashes when files from the static folder are served:

    Traceback (most recent call last):
      File "flask\app.py", line 1836, in __call__
        return self.wsgi_app(environ, start_response)
      File "flask\app.py", line 1820, in wsgi_app
        response = self.make_response(self.handle_exception(e))
      File "flask\app.py", line 1403, in handle_exception
        reraise(exc_type, exc_value, tb)
      File "flask\app.py", line 1817, in wsgi_app
        response = self.full_dispatch_request()
      File "flask\app.py", line 1477, in full_dispatch_request
        rv = self.handle_user_exception(e)
      File "flask\app.py", line 1381, in handle_user_exception
        reraise(exc_type, exc_value, tb)
      File "flask\app.py", line 1475, in full_dispatch_request
        rv = self.dispatch_request()
      File "flask\app.py", line 1461, in dispatch_request
        return self.view_functions[rule.endpoint](**req.view_args)
      File "flask_profiler\flask_profiler.py", line 91, in wrapper
        return wrapped(*args, **kwargs)
      File "flask_profiler\flask_profiler.py", line 72, in wrapper
        collection.insert(measurement.__json__())
      File "flask_profiler\storage\sqlite.py", line 128, in insert
        name))
    ProgrammingError: Recursive use of cursors not allowed.
    Traceback (most recent call last):
      File "flask\app.py", line 1836, in __call__
        return self.wsgi_app(environ, start_response)
      File "flask\app.py", line 1820, in wsgi_app
        response = self.make_response(self.handle_exception(e))
      File "flask\app.py", line 1403, in handle_exception
        reraise(exc_type, exc_value, tb)
      File "flask\app.py", line 1817, in wsgi_app
        response = self.full_dispatch_request()
      File "flask\app.py", line 1477, in full_dispatch_request
        rv = self.handle_user_exception(e)
      File "flask\app.py", line 1381, in handle_user_exception
        reraise(exc_type, exc_value, tb)
      File "flask\app.py", line 1475, in full_dispatch_request
        rv = self.dispatch_request()
      File "flask\app.py", line 1461, in dispatch_request
        return self.view_functions[rule.endpoint](**req.view_args)
      File "flask_profiler\flask_profiler.py", line 91, in wrapper
        return wrapped(*args, **kwargs)
      File "flask_profiler\flask_profiler.py", line 72, in wrapper
        collection.insert(measurement.__json__())
      File "flask_profiler\storage\sqlite.py", line 128, in insert
        name))
    ProgrammingError: Recursive use of cursors not allowed.
    

    I first though that this is, because requests to /static are not mentioned in the app routes, but also with a route with return app.send_static_file('index.html') I get the same error. All other routes (none are serving files from static) run fine.

    I am using:

    • Python 2.7.5
    • Flask 0.10.1
    • Flask-Profiler 0.5

    I am happy to provide more information if needed.

    opened by nlohmann 7
  • Image asset being counted on each page

    Image asset being counted on each page

    Whenever we load one of our pages, our logo (located at /static/assets/img/logo.png) is being counted in the flask-profiler as a GET with a name of "/static/path:filename" and is throwing off our Method distribution graph.

    Is there a way to remove this or make flask-profiler ignore this?

    screen shot 2017-02-15 at 2 24 22 pm

    question feature 
    opened by josiahtillman 6
  • Feature addition: ability to dump and delete database content

    Feature addition: ability to dump and delete database content

    • Ability to dump db
      • Used the getSummary interface for taking a dump, we can introduce an import functionality later.
    • Ability to remove db data
      • Made collection.truncate() to return uniformly for mongodb, sqlite collection. We need to make an interface for this should we need to add support for more databases.
    opened by divyenduz 5
  • use flask-profiler in wsgi production environment

    use flask-profiler in wsgi production environment

    Hi, for my flask application https://github.com/zimmerst/DmpWorkflow, i started using your brilliant profiler -- first off, thanks a lot for doing all the hard work for me. But I seem to be unable to use the flask profiler in the wsgi-production environment but only when i initialize the application by hand typing "python core/manage.py runserver"

    For reference, here's the relevant code piece that includes the profiler:

    from DmpWorkflow.config.defaults import cfg
    import flask_profiler
    from DmpWorkflow import version
    from socket import getfqdn
    kind = cfg.get("global", "installation")
    
    if kind == 'server':    
        from flask import Flask
        from flask.ext.mongoengine import MongoEngine
        app = Flask(__name__)
        app.config.update(LOGGER_NAME="core")
        app.config['MONGODB_DB'] = cfg.get("database", "name")
        app.config['MONGODB_USERNAME'] = cfg.get("database", "user")
        app.config['MONGODB_PASSWORD'] = cfg.get("database", "password")
        app.config['MONGODB_HOST'] = cfg.get("database", "host")
        app.config['MONGODB_PORT'] = int(cfg.get("database", "port"))
        # make connection numbers unbound
        app.config['MONGODB_MAXPOOLSIZE'] = None 
        # time out after 100ms
        app.config['MONGODB_WAITQUEUETIMEOUTMS'] = 100
        app.config["DEBUG"] = True
        app.config["flask_profiler"] = {
            "enabled": app.config["DEBUG"],
            "storage": {
                "engine": "sqlite",
                "FILE": "/tmp/flask-profiler.sql"
            },
            "basicAuth":{
                "enabled": True,
                "username": "myuser",
                "password": "mypassword"
            }
        }
    
        db = MongoEngine(app)
        
        def register_blueprints(app):
            # Prevents circular imports
            from DmpWorkflow.core.views import jobs
            from DmpWorkflow.core.admin import admin
            app.register_blueprint(jobs)
            app.register_blueprint(admin)
        
            if app.config['flask_profiler']['enabled']: app.logger.info("started flask profiler")
        register_blueprints(app)
        flask_profiler.init_app(app)
        
        def main():
            app.logger.info("started DmpWorkflow Server Version: %s on %s",version,getfqdn())
            app.run()
    else:
        def main():
            pass
    
    if __name__ == '__main__':
        if kind == 'server':
            main()
    

    and yes, when running the wsgi application, it runs fine, except that the profiler seems to be unable to handle multiple connections to the sql database:

    [Thu Nov 17 09:49:24.257431 2016] [wsgi:error] [pid 21519] started flask profiler
    [Thu Nov 17 09:49:24.257440 2016] [wsgi:error] [pid 21519] --------------------------------------------------------------------------------
    [Thu Nov 17 09:49:48.635678 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512] mod_wsgi (pid=21519): Exception occurred processing WSGI script '/var/www/flask_dev/workflow.wsgi'.
    [Thu Nov 17 09:49:48.635867 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512] Traceback (most recent call last):
    [Thu Nov 17 09:49:48.635979 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    [Thu Nov 17 09:49:48.636587 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     return self.wsgi_app(environ, start_response)
    [Thu Nov 17 09:49:48.636651 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    [Thu Nov 17 09:49:48.636709 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     response = self.make_response(self.handle_exception(e))
    [Thu Nov 17 09:49:48.636737 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    [Thu Nov 17 09:49:48.636828 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     reraise(exc_type, exc_value, tb)
    [Thu Nov 17 09:49:48.636844 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    [Thu Nov 17 09:49:48.636864 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     response = self.full_dispatch_request()
    [Thu Nov 17 09:49:48.636878 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    [Thu Nov 17 09:49:48.636898 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     rv = self.handle_user_exception(e)
    [Thu Nov 17 09:49:48.636913 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    [Thu Nov 17 09:49:48.636932 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     reraise(exc_type, exc_value, tb)
    [Thu Nov 17 09:49:48.636965 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    [Thu Nov 17 09:49:48.636986 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     rv = self.dispatch_request()
    [Thu Nov 17 09:49:48.637000 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    [Thu Nov 17 09:49:48.637018 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     return self.view_functions[rule.endpoint](**req.view_args)
    [Thu Nov 17 09:49:48.637033 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask_profiler/flask_profiler.py", line 113, in wrapper
    [Thu Nov 17 09:49:48.637121 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     return wrapped(*args, **kwargs)
    [Thu Nov 17 09:49:48.637140 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask_profiler/flask_profiler.py", line 92, in wrapper
    [Thu Nov 17 09:49:48.637162 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     collection.insert(measurement.__json__())
    [Thu Nov 17 09:49:48.637176 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]   File "/opt/virtualenvs/DAMPE/lib/python2.7/site-packages/flask_profiler/storage/sqlite.py", line 128, in insert
    [Thu Nov 17 09:49:48.637288 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512]     name))
    [Thu Nov 17 09:49:48.637321 2016] [wsgi:error] [pid 21519] [remote 129.194.54.242:512] OperationalError: attempt to write a readonly database
    

    is there a way to make sure that the profiler can access the db for my multiple instances of the wsgi app? Thanks!

    database 
    opened by zimmerst 4
  • flask-profiler work in production mode?

    flask-profiler work in production mode?

    Does the flask-profiler only work in debug mode? While this is great for debugging, I'd like to collect statistics while users are navigating my Flask app in a real production environment. Is this possible? If so, can you provide an example of the config info that needs to be set?

    question 
    opened by havok2063 4
  • Securing the metrics

    Securing the metrics

    Can you tell me how to secure the metrics?

    What I mean is I dont want to keep the metrics urls like /flask-profiler/ open to anybody. How can I add a security system?

    auth 
    opened by WhiteHatArpit 4
  • search engine indexing must be not allowed

    search engine indexing must be not allowed

    a robot.txt file may be created to prevent search engines from indexing flask profiler's dashboard because it most probably has confidential information.

    auth 
    opened by muatik 4
  • Fix truncation of exception traceback

    Fix truncation of exception traceback

    Today we've realized that our API exception tracebacks are being truncated when we have flask-profiler turned on. After short research, we've discovered that the exception's stack trace is rewritten because of the way exception is re-rised.

    except Exception as e:
        raise e
    

    Instead of this approach, just blank raise can be used. It keeps the old traceback.

    opened by grechut 3
  • Show variables in endpoints on dashboard

    Show variables in endpoints on dashboard

    Example:

    • /pages/apples
    • /pages/oranges

    Instead of

    • /pages/<pageName>
    • /pages/<pageName>

    Could be helpful to measure traffic in dynamic routes

    opened by kesarsauce 0
  • docs: Fix a few typos

    docs: Fix a few typos

    There are small typos in:

    • CONTRIBUTING.md
    • examples/app.py
    • flask_profiler/storage/mongo.py

    Fixes:

    • Should read profiler rather than profider.
    • Should read conforms rather than comforms.
    • Should read differences rather than differencies.

    Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

    opened by timgates42 0
  • pymongo 4.x not support ensure_index

    pymongo 4.x not support ensure_index

    PyMongo 4.x aready remove ensure_index(), should use create_index() or create_indexes().

    https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#id43

    opened by dingwf 0
Releases(v1.8)
Owner
Mustafa Atik
software engineer
Mustafa Atik
Brandnew-flask is a CLI tool used to generate a powerful and mordern flask-app that supports the production environment.

Brandnew-flask is still in the initial stage and needs to be updated and improved continuously. Everyone is welcome to maintain and improve this CLI.

brandonye 4 Jul 17, 2022
Simple flask api. Countdown to next train for each station in the subway system.

Simple flask api. Countdown to next train for each station in the subway system.

Kalyani Subbiah 0 Apr 17, 2022
A fairly common feature in web applications to have links that open a popover when hovered

Add Popovers to Links in Flask App It is a fairly common feature in web applications to have links that open a popover when hovered. Twitter does this

Gitau Harrison 1 Jan 22, 2022
A simple way to demo Flask apps from your machine.

flask-ngrok A simple way to demo Flask apps from your machine. Makes your Flask apps running on localhost available over the internet via the excellen

117 Dec 27, 2022
A swagger 2.0 spec extractor for flask

flask-swagger A Swagger 2.0 spec extractor for Flask You can now specify base path for yml files: app = Flask(__name__) @app.route("/spec") def spec(

Sling 457 Dec 02, 2022
Set up a modern flask web server by running one command.

Build Flask App · Set up a modern flask web server by running one command. Installing / Getting started pip install build-flask-app Usage build-flask-

Kushagra Bainsla 5 Jul 16, 2022
Learn python and flask,just a tony blog system

flaskblog Learn python and flask,just a tony blog system based on flask and mysql It is similar to cleanblog, a blog system based on flask and mongoen

shin 174 Dec 01, 2022
Flask webassets integration.

Integrates the webassets library with Flask, adding support for merging, minifying and compiling CSS and Javascript files. Documentation: https://flas

Michael Elsdörfer 433 Dec 29, 2022
Freezes a Flask application into a set of static files.

Frozen-Flask Freezes a Flask application into a set of static files. The result can be hosted without any server-side software other than a traditiona

Frozen Flask 737 Dec 19, 2022
Burp-UI is a web-ui for burp backup written in python with Flask and jQuery/Bootstrap

Burp-UI Contents Introduction Screenshots Demo What's that? Who are you? Documentation FAQ Community Notes See also Licenses Thanks Introduction Scree

Benjamin 84 Dec 20, 2022
Live Corona statistics and information site with flask.

Flask Live Corona Info Live Corona statistics and information site with flask. Tools Flask Scrapy Matplotlib How to Run Project Download Codes git clo

Mohammad Dori 5 Jul 15, 2022
Lux Academy & Data Science East Africa Python Boot Camp, Building and Deploying Flask Application Using Docker Demo App.

Flask and Docker Application Demo A Docker image is a read-only, inert template that comes with instructions for deploying containers. In Docker, ever

Harun Mbaabu Mwenda 11 Oct 29, 2022
Flask Sitemapper is a small Python 3 package that generates XML sitemaps for Flask applications.

Flask Sitemapper Flask Sitemapper is a small Python 3 package that generates XML sitemaps for Flask applications. This allows you to create a nice and

6 Jan 06, 2023
A simple demo of using aiogram + async sqlalchemy 1.4+

aiogram-and-sqlalchemy-demo A simple demo of using aiogram + async sqlalchemy 1.4+ Used tech: aiogram SQLAlchemy 1.4+ PostgreSQL as database asyncpg a

Aleksandr 68 Dec 31, 2022
REST API with Flask and SQLAlchemy. I would rather not use it anymore.

Flask REST API Python 3.9.7 The Flask experience, without data persistence :D First, to install all dependencies: python -m pip install -r requirement

Luis Quiñones Requelme 1 Dec 15, 2021
Track requests to your Flask website with Matomo

Flask-Matomo Flask-Matomo is a library which lets you track the requests of your Flask website using Matomo (Piwik). Installation pip install flask-ma

Lucas Hild 13 Jul 14, 2022
a flask zipkin extension based on py_zipkin.

flask-zipkin a flask zipkin extension based on py_zipkin. Installation pip install flask_zipkin usage you can simply use it as other flask extensions.

39 Jul 03, 2022
A solid foundation for your flask app

Flask Foundation There is a cookiecutter version of this repo at https://github.com/JackStouffer/cookiecutter-Flask-Foundation. Documentation is locat

Jack Stouffer 1.3k Dec 11, 2022
Full text search for flask.

flask-msearch Installation To install flask-msearch: pip install flask-msearch # when MSEARCH_BACKEND = "whoosh" pip install whoosh blinker # when MSE

honmaple 197 Dec 29, 2022
Connect is a Python Flask project within the cloud-native ecosystem

Connect is a Python Flask project within the cloud-native ecosystem. Second project of Udacity's Cloud Native Nanodegree program, focusing on documenting and architecting a monolith migration to micr

Lauren Ferreira 3 Feb 28, 2022