Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Latest commit

 

History

History
70 lines (50 loc) · 1.91 KB

README.rst

File metadata and controls

70 lines (50 loc) · 1.91 KB

ParseMyPSA

https://travis-ci.org/klenje/parsemypsa.svg?branch=master

parsemypsa has the purpose of analyzing the export files of LinkMyPeugeot app. It includes for now a fixed selection of metrics.

This is NOT AN OFFICIAL tool and it's not linked in any way to Peugeot.

Requirements

Features

  • Average info on trips and consumption
  • Last trip info

Coming next:

  • Custom queries

Installation

If you cloned this repository, you can create a tarball with:

python setup.py sdist

This will create an archive, that you can install (ideally on a venv) with:

pip install <archive>

Then the launcher should be available in your $PATH

Hint: Launching tox as explained below will also generate a zip file that you can reuse directly

Testing

This script is using tox, so just launch it (if you want with a specific environment):

tox -e py35

This will also show the code coverage for the tests.

How to use

python main.py --help usage: main.py [-h] [--log-level LOG_LEVEL] [--version] [--db-file DB_FILE] [input_file]

Parse files produced by LinkMyPeugeot App.

positional arguments:
input_file input file to parse
optional arguments:
-h, --help show this help message and exit
--log-level LOG_LEVEL
 logging level (e.g. DEBUG)
--version show the version and exit
--db-file DB_FILE
 specify sqlite3 to use as destination, if not specified db will be IN Memory

Special thanks

Merci to Peugeot IT, because your app crashes badly at startup and so you motivated me to write this and analyse properly my data :-)