flask-geomapper-3.0.1
توضیحات
Visualize Flask request locations cartographically
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-geomapper-3.0.1 |
| نام | flask-geomapper |
| نسخه کتابخانه | 3.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aarav Borthakur |
| ایمیل نویسنده | gadhaguy13@gmail.com |
| آدرس صفحه اصلی | https://github.com/gadhagod/flask-geomapper |
| آدرس اینترنتی | https://pypi.org/project/flask-geomapper/ |
| مجوز | - |
# flask-geomapper
Visualize Flask request locations cartographically.
This python library allows you to map Flask request locations on a map using their IPs. This allows you to get a better understanding of your users and audience. \
Example map:
<p align="center">
<img src="images/example_map.png">
</p>
## Installation
pip3 install flask-geomapper
## Demo
[https://flask-geomapper.herokuapp.com](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" \
Database integration: "database_integration.py" \
Clear old locations: "remove_first_location_on_interval.py" \
Ignore routes and status codes: "ignore_routes_and_statuses.py" \
Manually add locations: "manual_history_append.py"
Heroku deployment: "heroku/"
## Commercial usage
For commercial usage, you must use an API key at [members.ip-api.com](https://members.ip-api.com).
نیازمندی
| مقدار | نام |
|---|---|
| - | flask |
| - | pandas |
| - | geopandas |
| - | matplotlib |
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl flask-geomapper-3.0.1:
pip install flask-geomapper-3.0.1.whl
نصب پکیج tar.gz flask-geomapper-3.0.1:
pip install flask-geomapper-3.0.1.tar.gz