https://github.com/shoorick/tile-stat
Gather and process usage statistics for map tiles
https://github.com/shoorick/tile-stat
log parse plot python3
Last synced: 9 months ago
JSON representation
Gather and process usage statistics for map tiles
- Host: GitHub
- URL: https://github.com/shoorick/tile-stat
- Owner: shoorick
- Created: 2020-12-14T22:14:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-15T14:16:14.000Z (over 5 years ago)
- Last Synced: 2025-10-13T02:31:59.524Z (9 months ago)
- Topics: log, parse, plot, python3
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tile-stat
=========
Gather and process usage statistics for map tiles hosted by web servers nginx and Apache
Usage
-----
```
gather.py [-h] [-o FILE] [-c NAME] source
```
### Positional arguments
`source` — log file to process
### Optional arguments
* `-h`, `--help` — show help message and exit
* `-o` _FILE_, `--output` _FILE_ — output raw data to file, format are choosing by extension (csv, xls, xlsx, htm, html, json)
* `-c` _NAME_, `--column` _NAME_ — process desired column (possible names are `style` and `zoom`)
Requirements
------------
* Python 3
* [matplotlib](https://matplotlib.org/), [pandas](https://pandas.pydata.org/) — _required_,
* openpyxl or xlwt — _optional for Excel output_.
### Install dependencies
```
pip install -r requirements.txt
```
Author
------
Alexander Sapozhnikov
http://shoorick.ru/