Skip to content

A Python script delivering advanced regex and parsing capabilities to extract tire and wheel dimensions from Swiss vehicles' type approval codes. Designed for diverse data formats, it offers an essential solution for businesses and individuals in the automotive sector to ensure accurate tire and wheel selection.

Notifications You must be signed in to change notification settings

ricilandolt/tires_tgcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tire & Wheel Dimension Parser

tgtireimage

Overview

This Python script extracts the permissible tire and wheel dimensions for Swiss vehicles based on their type approval codes. Utilizing sophisticated regular expressions (regex) and parsing logic, it tackles the challenge of extracting dimensions scattered across three different fields in various formats. This tool is invaluable for businesses needing quick access to these specific vehicle details.

Key Features

  • Advanced Regex & Parsing Logic: The script's core lies in its ability to handle the diverse formats and fields in which tire and wheel dimensions are presented, decoding them efficiently.
  • User-Friendly: It offers an easy way for users to access the necessary dimensions to ensure they purchase or mount the correct tires and wheels for a specific vehicle.

Use Cases

  • Businesses: Automotive companies can leverage this tool to quickly and accurately determine the permissible tire dimensions for different vehicles.
  • Individual Users: Even private individuals can use this script to verify that they are selecting the right tires for their vehicle.

Future Relevance

While the type approval codes in Switzerland are set to be phased out, this tool remains invaluable until then, continuing to provide access to crucial vehicle data via the type approval certificate.

Getting Started

Prerequisites

  1. Clone the repo git clone https://github.com/ricilandolt/tires_tgcode.git
  2. Create virtual environment python -m venv .venv
  3. Install dependcies pip install -r requirements.txt
  4. Download Data curl https://ivz-opendata.ch/opendata/2000-Typengenehmigungen_TG_TARGA/2200-Basisdaten_TG_ab_1995/TG-Automobil.txt --output TG-Automobil.txt

The documentation of the data : Documentation

About

A Python script delivering advanced regex and parsing capabilities to extract tire and wheel dimensions from Swiss vehicles' type approval codes. Designed for diverse data formats, it offers an essential solution for businesses and individuals in the automotive sector to ensure accurate tire and wheel selection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages