Skip to content

A simple flask app that looks up vehicles by VIN.

Notifications You must be signed in to change notification settings

kacox/vehicle-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Service

A simple flask webservice that can lookup vehicles by their VIN (vehicle identification number).

Setup

Create a virtual environment and install the packages specified in the requirements.txt file.

Create the SQLite3 database "cache" by running the setup_db.py script.

Run the webserver using:

flask run --reload

API

GET /lookup/{vin}

Retrieves vehicle information using the provided VIN.

DELETE /remove/{vin}

Removes the specified vehicle's information from the cache.

POST /export

Returns a parquet file containing all vehicles currently in the cache.

Development

To run tests, from the top level directory execute:

python -m pytest

To run a linter/formatter:

black [--check] .

Additional info

This webservice uses the vPIC API provided by the NHSTA to lookup vehicle information.

About

A simple flask app that looks up vehicles by VIN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages