Visualize Flask request locations cartographically
Project description
flask-geomapper
Visualize Flask request locations cartographically.
Installation
pip3 install flask-geomapper
Demo
https://flask-geomapper.herokuapp.com (locations cleared periodically). Source can be found at "examples/heroku".
Quickstart
Here is a simple example of flask-geomapper. An explaination can be found in "examples/basic.py".
import flask
from flask_geomapper import flask_geomapper
app = flask.Flask(__name__)
fg = flask_geomapper(app, count_trigger=app.before_request, debug=True)
@app.route("/")
def show_map():
return flask.send_file(fg.get_img(), mimetype="image/png")
app.run(debug=True, use_reloader=False)
Examples
Examples can be found in the examples directory.
Basic usage: "basic.py"
AWS S3 integration: "aws_s3.py"
Modifying count triggers: "count_triggers.py"
Clear old locations: "remove_first_location_on_interval.py"
Ignore routes and status codes: "ignore_routes_and_statuses"
Heroku deployment: "heroku/"
Commercial usage
For commercial usage, you must use an API key at members.ip-api.com.
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
Built Distribution
Hashes for flask_geomapper-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51bbf1bfc654276e1a14bac8834b7ee571ae2bed1c47ff3b251833beb00eeef2 |
|
MD5 | 69fb614b4910945379965249636e3277 |
|
BLAKE2b-256 | 273c61899b3a262852f8d92662e268d341a6eef3cae8c4f9082ded415fbb661b |