How to use the vininfo.details._base.VinDetails function in vininfo

To help you get started, we’ve selected a few vininfo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github idlesign / vininfo / vininfo / details / renault.py View on Github external
from ._base import VinDetails, Detail
from ..dicts.bodies import *


class RenaultDetails(VinDetails):
    """Renault VIN details extractor."""

    model = Detail(('vds', 1), {
        '0': 'Twingo',
        '1': 'R4',
        '2': 'R25',
        '3': 'R4',
        '4': ['R21', 'Express'],
        '5': ['Clio I', 'Laguna', 'R19', 'Safrane'],
        'A': ['Megane I', 'Master'],
        'B': 'Clio II',
        'C': 'Kangoo',
        'D': 'Master',
        'E': ['Espace III', 'Avantime'],
        'G': 'Laguna II',
        'H': 'Master Propulsion',
github idlesign / vininfo / vininfo / details / opel.py View on Github external
'2': 'Z14XEP100HP',
        },
        'S': {
            'C': 'Z14XEP100HP',
            'D': 'A14NEL120HP',
            'E': 'A14NET140HP',
        },
        'J': {
            '8': 'A14NET140HP',
        },
    }

    return candidates.get(details.model.code, {})


class OpelDetails(VinDetails):
    """Opel VIN details extractor."""

    model = Detail(('vds', 0), {
        'F': 'Agila',
        'G': 'Insignia',
        'J': 'Mokka',
        'L': 'Antara',
        'M': 'Movano',
        'P': ['Astra J', 'Zafira C'],
        'R': 'Astra GTC J',
        'S': 'Meriva',
        'V': 'Combo II',
        'W': 'Cascada',
    })

    body = Detail(('vds', 2), {
github idlesign / vininfo / vininfo / details / avtovaz.py View on Github external
from ._base import VinDetails, Detail
from ..dicts.bodies import *


class AvtoVazDetails(VinDetails):
    """AvtoVAZ VIN details extractor."""

    model = Detail(('vds', 1), {
        'A': 'XRAY',
        'F': 'Vesta',
    })

    body = Detail(('vds', 2), {
        'B': BODY_HATCH_5,
        'K': BODY_SW_5,
        'L': BODY_SEDAN_4,
    })

    engine = Detail(('vds', 3), {
        '1': '21129',
        '2': '11189',
github idlesign / vininfo / vininfo / details / nissan.py View on Github external
from ._base import VinDetails, Detail
from ..dicts.bodies import *


class NissanDetails(VinDetails):
    """Nissan VIN details extractor."""

    model = Detail(('vds', 1), {
        'A': ['Armada', 'Titan', 'Maxima'],
        'B': 'Sentra',
        'C': 'Versa (07-11)',
        'D': ['Truck', 'Xterra (00-04)', 'Frontier'],
        'J': 'Maxima',
        'N': 'Xterra (05-11)',
        'R': 'Pathfinder',
        'S': ['240SX', 'Rogue (08-11)'],
        'U': 'Altima',
        'Z': ['300Z', '350Z', 'Murano'],
    })

    body = Detail(('vds', 3), {