apiverve-vindecoder 1.2.3__tar.gz → 1.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {apiverve_vindecoder-1.2.3/src/apiverve_vindecoder.egg-info → apiverve_vindecoder-1.2.4}/PKG-INFO +63 -8
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/README.md +62 -7
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/pyproject.toml +1 -1
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/apiClient.py +2 -1
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/setup.py +1 -1
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/setup_dep.py +1 -1
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4/src/apiverve_vindecoder.egg-info}/PKG-INFO +63 -8
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/LICENSE +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/setup.cfg +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/__init__.py +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/exceptions.py +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/tests/__init__.py +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/tests/test_api.py +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder.egg-info/SOURCES.txt +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder.egg-info/dependency_links.txt +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder.egg-info/requires.txt +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder.egg-info/top_level.txt +0 -0
- {apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/tests/test_api.py +0 -0
{apiverve_vindecoder-1.2.3/src/apiverve_vindecoder.egg-info → apiverve_vindecoder-1.2.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apiverve-vindecoder
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
4
4
|
Summary: VIN Decoder turns a 17-character Vehicle Identification Number into the vehicle it identifies. Returns make, model, year, trim, body class and manufacturer, plus engine specifications, plant of manufacture, and the safety equipment fitted to that specific build. Optionally adds every safety recall issued for that vehicle and its NHTSA 5-star crash-test rating.
|
|
5
5
|
Author-email: APIVerve <hello@apiverve.com>
|
|
6
6
|
License: MIT
|
|
@@ -70,7 +70,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
70
70
|
query = {
|
|
71
71
|
"vin": "1HGCM82633A004352",
|
|
72
72
|
"recalls": true,
|
|
73
|
-
"safetyRating": true
|
|
73
|
+
"safetyRating": true,
|
|
74
|
+
"fuelEconomy": true
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
try:
|
|
@@ -112,7 +113,8 @@ Using the API client, you can perform requests to the API.
|
|
|
112
113
|
query = {
|
|
113
114
|
"vin": "1HGCM82633A004352",
|
|
114
115
|
"recalls": true,
|
|
115
|
-
"safetyRating": true
|
|
116
|
+
"safetyRating": true,
|
|
117
|
+
"fuelEconomy": true
|
|
116
118
|
}
|
|
117
119
|
```
|
|
118
120
|
|
|
@@ -321,6 +323,54 @@ print(result)
|
|
|
321
323
|
"forwardCollisionWarning": "notAvailable",
|
|
322
324
|
"laneDepartureWarning": "notAvailable"
|
|
323
325
|
}
|
|
326
|
+
},
|
|
327
|
+
"fuelEconomy": {
|
|
328
|
+
"unit": "MPG",
|
|
329
|
+
"city": {
|
|
330
|
+
"min": 19,
|
|
331
|
+
"max": 19,
|
|
332
|
+
"value": 19
|
|
333
|
+
},
|
|
334
|
+
"highway": {
|
|
335
|
+
"min": 27,
|
|
336
|
+
"max": 27,
|
|
337
|
+
"value": 27
|
|
338
|
+
},
|
|
339
|
+
"combined": {
|
|
340
|
+
"min": 22,
|
|
341
|
+
"max": 22,
|
|
342
|
+
"value": 22
|
|
343
|
+
},
|
|
344
|
+
"exact": true,
|
|
345
|
+
"variantsMatched": 1,
|
|
346
|
+
"electricRangeMiles": null,
|
|
347
|
+
"co2GramsPerMile": {
|
|
348
|
+
"min": 404,
|
|
349
|
+
"max": 404,
|
|
350
|
+
"value": 404
|
|
351
|
+
},
|
|
352
|
+
"annualFuelCostUsd": {
|
|
353
|
+
"min": 3050,
|
|
354
|
+
"max": 3050,
|
|
355
|
+
"value": 3050
|
|
356
|
+
},
|
|
357
|
+
"variants": [
|
|
358
|
+
{
|
|
359
|
+
"epaId": 18657,
|
|
360
|
+
"model": "Accord",
|
|
361
|
+
"vehicleClass": "Midsize Cars",
|
|
362
|
+
"powertrain": "Gasoline",
|
|
363
|
+
"fuelType": "Regular",
|
|
364
|
+
"displacementL": 3,
|
|
365
|
+
"cylinders": 6,
|
|
366
|
+
"drive": "Front-Wheel Drive",
|
|
367
|
+
"transmission": "Automatic 5-spd",
|
|
368
|
+
"cityMpg": 19,
|
|
369
|
+
"highwayMpg": 27,
|
|
370
|
+
"combinedMpg": 22,
|
|
371
|
+
"electricRangeMiles": null
|
|
372
|
+
}
|
|
373
|
+
]
|
|
324
374
|
}
|
|
325
375
|
}
|
|
326
376
|
}
|
|
@@ -342,7 +392,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
342
392
|
query = {
|
|
343
393
|
"vin": "1HGCM82633A004352",
|
|
344
394
|
"recalls": true,
|
|
345
|
-
"safetyRating": true
|
|
395
|
+
"safetyRating": true,
|
|
396
|
+
"fuelEconomy": true
|
|
346
397
|
}
|
|
347
398
|
|
|
348
399
|
try:
|
|
@@ -367,7 +418,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
367
418
|
query = {
|
|
368
419
|
"vin": "1HGCM82633A004352",
|
|
369
420
|
"recalls": true,
|
|
370
|
-
"safetyRating": true
|
|
421
|
+
"safetyRating": true,
|
|
422
|
+
"fuelEconomy": true
|
|
371
423
|
}
|
|
372
424
|
|
|
373
425
|
try:
|
|
@@ -405,7 +457,8 @@ from apiverve_vindecoder.apiClient import VindecoderAPIClient, VindecoderAPIClie
|
|
|
405
457
|
query = {
|
|
406
458
|
"vin": "1HGCM82633A004352",
|
|
407
459
|
"recalls": true,
|
|
408
|
-
"safetyRating": true
|
|
460
|
+
"safetyRating": true,
|
|
461
|
+
"fuelEconomy": true
|
|
409
462
|
}
|
|
410
463
|
|
|
411
464
|
# Using context manager ensures proper cleanup
|
|
@@ -435,7 +488,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]", debug=True)
|
|
|
435
488
|
query = {
|
|
436
489
|
"vin": "1HGCM82633A004352",
|
|
437
490
|
"recalls": true,
|
|
438
|
-
"safetyRating": true
|
|
491
|
+
"safetyRating": true,
|
|
492
|
+
"fuelEconomy": true
|
|
439
493
|
}
|
|
440
494
|
|
|
441
495
|
# Debug information will be printed to console
|
|
@@ -454,7 +508,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
454
508
|
query = {
|
|
455
509
|
"vin": "1HGCM82633A004352",
|
|
456
510
|
"recalls": true,
|
|
457
|
-
"safetyRating": true
|
|
511
|
+
"safetyRating": true,
|
|
512
|
+
"fuelEconomy": true
|
|
458
513
|
}
|
|
459
514
|
|
|
460
515
|
try:
|
|
@@ -46,7 +46,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
46
46
|
query = {
|
|
47
47
|
"vin": "1HGCM82633A004352",
|
|
48
48
|
"recalls": true,
|
|
49
|
-
"safetyRating": true
|
|
49
|
+
"safetyRating": true,
|
|
50
|
+
"fuelEconomy": true
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
try:
|
|
@@ -88,7 +89,8 @@ Using the API client, you can perform requests to the API.
|
|
|
88
89
|
query = {
|
|
89
90
|
"vin": "1HGCM82633A004352",
|
|
90
91
|
"recalls": true,
|
|
91
|
-
"safetyRating": true
|
|
92
|
+
"safetyRating": true,
|
|
93
|
+
"fuelEconomy": true
|
|
92
94
|
}
|
|
93
95
|
```
|
|
94
96
|
|
|
@@ -297,6 +299,54 @@ print(result)
|
|
|
297
299
|
"forwardCollisionWarning": "notAvailable",
|
|
298
300
|
"laneDepartureWarning": "notAvailable"
|
|
299
301
|
}
|
|
302
|
+
},
|
|
303
|
+
"fuelEconomy": {
|
|
304
|
+
"unit": "MPG",
|
|
305
|
+
"city": {
|
|
306
|
+
"min": 19,
|
|
307
|
+
"max": 19,
|
|
308
|
+
"value": 19
|
|
309
|
+
},
|
|
310
|
+
"highway": {
|
|
311
|
+
"min": 27,
|
|
312
|
+
"max": 27,
|
|
313
|
+
"value": 27
|
|
314
|
+
},
|
|
315
|
+
"combined": {
|
|
316
|
+
"min": 22,
|
|
317
|
+
"max": 22,
|
|
318
|
+
"value": 22
|
|
319
|
+
},
|
|
320
|
+
"exact": true,
|
|
321
|
+
"variantsMatched": 1,
|
|
322
|
+
"electricRangeMiles": null,
|
|
323
|
+
"co2GramsPerMile": {
|
|
324
|
+
"min": 404,
|
|
325
|
+
"max": 404,
|
|
326
|
+
"value": 404
|
|
327
|
+
},
|
|
328
|
+
"annualFuelCostUsd": {
|
|
329
|
+
"min": 3050,
|
|
330
|
+
"max": 3050,
|
|
331
|
+
"value": 3050
|
|
332
|
+
},
|
|
333
|
+
"variants": [
|
|
334
|
+
{
|
|
335
|
+
"epaId": 18657,
|
|
336
|
+
"model": "Accord",
|
|
337
|
+
"vehicleClass": "Midsize Cars",
|
|
338
|
+
"powertrain": "Gasoline",
|
|
339
|
+
"fuelType": "Regular",
|
|
340
|
+
"displacementL": 3,
|
|
341
|
+
"cylinders": 6,
|
|
342
|
+
"drive": "Front-Wheel Drive",
|
|
343
|
+
"transmission": "Automatic 5-spd",
|
|
344
|
+
"cityMpg": 19,
|
|
345
|
+
"highwayMpg": 27,
|
|
346
|
+
"combinedMpg": 22,
|
|
347
|
+
"electricRangeMiles": null
|
|
348
|
+
}
|
|
349
|
+
]
|
|
300
350
|
}
|
|
301
351
|
}
|
|
302
352
|
}
|
|
@@ -318,7 +368,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
318
368
|
query = {
|
|
319
369
|
"vin": "1HGCM82633A004352",
|
|
320
370
|
"recalls": true,
|
|
321
|
-
"safetyRating": true
|
|
371
|
+
"safetyRating": true,
|
|
372
|
+
"fuelEconomy": true
|
|
322
373
|
}
|
|
323
374
|
|
|
324
375
|
try:
|
|
@@ -343,7 +394,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
343
394
|
query = {
|
|
344
395
|
"vin": "1HGCM82633A004352",
|
|
345
396
|
"recalls": true,
|
|
346
|
-
"safetyRating": true
|
|
397
|
+
"safetyRating": true,
|
|
398
|
+
"fuelEconomy": true
|
|
347
399
|
}
|
|
348
400
|
|
|
349
401
|
try:
|
|
@@ -381,7 +433,8 @@ from apiverve_vindecoder.apiClient import VindecoderAPIClient, VindecoderAPIClie
|
|
|
381
433
|
query = {
|
|
382
434
|
"vin": "1HGCM82633A004352",
|
|
383
435
|
"recalls": true,
|
|
384
|
-
"safetyRating": true
|
|
436
|
+
"safetyRating": true,
|
|
437
|
+
"fuelEconomy": true
|
|
385
438
|
}
|
|
386
439
|
|
|
387
440
|
# Using context manager ensures proper cleanup
|
|
@@ -411,7 +464,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]", debug=True)
|
|
|
411
464
|
query = {
|
|
412
465
|
"vin": "1HGCM82633A004352",
|
|
413
466
|
"recalls": true,
|
|
414
|
-
"safetyRating": true
|
|
467
|
+
"safetyRating": true,
|
|
468
|
+
"fuelEconomy": true
|
|
415
469
|
}
|
|
416
470
|
|
|
417
471
|
# Debug information will be printed to console
|
|
@@ -430,7 +484,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
430
484
|
query = {
|
|
431
485
|
"vin": "1HGCM82633A004352",
|
|
432
486
|
"recalls": true,
|
|
433
|
-
"safetyRating": true
|
|
487
|
+
"safetyRating": true,
|
|
488
|
+
"fuelEconomy": true
|
|
434
489
|
}
|
|
435
490
|
|
|
436
491
|
try:
|
{apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/apiClient.py
RENAMED
|
@@ -26,7 +26,8 @@ class VindecoderAPIClient:
|
|
|
26
26
|
VALIDATION_RULES = {
|
|
27
27
|
"vin": {"type": "string", "required": True, "minLength": 1, "maxLength": 17},
|
|
28
28
|
"recalls": {"type": "boolean", "required": False},
|
|
29
|
-
"safetyRating": {"type": "boolean", "required": False}
|
|
29
|
+
"safetyRating": {"type": "boolean", "required": False},
|
|
30
|
+
"fuelEconomy": {"type": "boolean", "required": False}
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
# Format validation patterns
|
{apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4/src/apiverve_vindecoder.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apiverve-vindecoder
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
4
4
|
Summary: VIN Decoder turns a 17-character Vehicle Identification Number into the vehicle it identifies. Returns make, model, year, trim, body class and manufacturer, plus engine specifications, plant of manufacture, and the safety equipment fitted to that specific build. Optionally adds every safety recall issued for that vehicle and its NHTSA 5-star crash-test rating.
|
|
5
5
|
Author-email: APIVerve <hello@apiverve.com>
|
|
6
6
|
License: MIT
|
|
@@ -70,7 +70,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
70
70
|
query = {
|
|
71
71
|
"vin": "1HGCM82633A004352",
|
|
72
72
|
"recalls": true,
|
|
73
|
-
"safetyRating": true
|
|
73
|
+
"safetyRating": true,
|
|
74
|
+
"fuelEconomy": true
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
try:
|
|
@@ -112,7 +113,8 @@ Using the API client, you can perform requests to the API.
|
|
|
112
113
|
query = {
|
|
113
114
|
"vin": "1HGCM82633A004352",
|
|
114
115
|
"recalls": true,
|
|
115
|
-
"safetyRating": true
|
|
116
|
+
"safetyRating": true,
|
|
117
|
+
"fuelEconomy": true
|
|
116
118
|
}
|
|
117
119
|
```
|
|
118
120
|
|
|
@@ -321,6 +323,54 @@ print(result)
|
|
|
321
323
|
"forwardCollisionWarning": "notAvailable",
|
|
322
324
|
"laneDepartureWarning": "notAvailable"
|
|
323
325
|
}
|
|
326
|
+
},
|
|
327
|
+
"fuelEconomy": {
|
|
328
|
+
"unit": "MPG",
|
|
329
|
+
"city": {
|
|
330
|
+
"min": 19,
|
|
331
|
+
"max": 19,
|
|
332
|
+
"value": 19
|
|
333
|
+
},
|
|
334
|
+
"highway": {
|
|
335
|
+
"min": 27,
|
|
336
|
+
"max": 27,
|
|
337
|
+
"value": 27
|
|
338
|
+
},
|
|
339
|
+
"combined": {
|
|
340
|
+
"min": 22,
|
|
341
|
+
"max": 22,
|
|
342
|
+
"value": 22
|
|
343
|
+
},
|
|
344
|
+
"exact": true,
|
|
345
|
+
"variantsMatched": 1,
|
|
346
|
+
"electricRangeMiles": null,
|
|
347
|
+
"co2GramsPerMile": {
|
|
348
|
+
"min": 404,
|
|
349
|
+
"max": 404,
|
|
350
|
+
"value": 404
|
|
351
|
+
},
|
|
352
|
+
"annualFuelCostUsd": {
|
|
353
|
+
"min": 3050,
|
|
354
|
+
"max": 3050,
|
|
355
|
+
"value": 3050
|
|
356
|
+
},
|
|
357
|
+
"variants": [
|
|
358
|
+
{
|
|
359
|
+
"epaId": 18657,
|
|
360
|
+
"model": "Accord",
|
|
361
|
+
"vehicleClass": "Midsize Cars",
|
|
362
|
+
"powertrain": "Gasoline",
|
|
363
|
+
"fuelType": "Regular",
|
|
364
|
+
"displacementL": 3,
|
|
365
|
+
"cylinders": 6,
|
|
366
|
+
"drive": "Front-Wheel Drive",
|
|
367
|
+
"transmission": "Automatic 5-spd",
|
|
368
|
+
"cityMpg": 19,
|
|
369
|
+
"highwayMpg": 27,
|
|
370
|
+
"combinedMpg": 22,
|
|
371
|
+
"electricRangeMiles": null
|
|
372
|
+
}
|
|
373
|
+
]
|
|
324
374
|
}
|
|
325
375
|
}
|
|
326
376
|
}
|
|
@@ -342,7 +392,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
342
392
|
query = {
|
|
343
393
|
"vin": "1HGCM82633A004352",
|
|
344
394
|
"recalls": true,
|
|
345
|
-
"safetyRating": true
|
|
395
|
+
"safetyRating": true,
|
|
396
|
+
"fuelEconomy": true
|
|
346
397
|
}
|
|
347
398
|
|
|
348
399
|
try:
|
|
@@ -367,7 +418,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
367
418
|
query = {
|
|
368
419
|
"vin": "1HGCM82633A004352",
|
|
369
420
|
"recalls": true,
|
|
370
|
-
"safetyRating": true
|
|
421
|
+
"safetyRating": true,
|
|
422
|
+
"fuelEconomy": true
|
|
371
423
|
}
|
|
372
424
|
|
|
373
425
|
try:
|
|
@@ -405,7 +457,8 @@ from apiverve_vindecoder.apiClient import VindecoderAPIClient, VindecoderAPIClie
|
|
|
405
457
|
query = {
|
|
406
458
|
"vin": "1HGCM82633A004352",
|
|
407
459
|
"recalls": true,
|
|
408
|
-
"safetyRating": true
|
|
460
|
+
"safetyRating": true,
|
|
461
|
+
"fuelEconomy": true
|
|
409
462
|
}
|
|
410
463
|
|
|
411
464
|
# Using context manager ensures proper cleanup
|
|
@@ -435,7 +488,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]", debug=True)
|
|
|
435
488
|
query = {
|
|
436
489
|
"vin": "1HGCM82633A004352",
|
|
437
490
|
"recalls": true,
|
|
438
|
-
"safetyRating": true
|
|
491
|
+
"safetyRating": true,
|
|
492
|
+
"fuelEconomy": true
|
|
439
493
|
}
|
|
440
494
|
|
|
441
495
|
# Debug information will be printed to console
|
|
@@ -454,7 +508,8 @@ api = VindecoderAPIClient("[YOUR_API_KEY]")
|
|
|
454
508
|
query = {
|
|
455
509
|
"vin": "1HGCM82633A004352",
|
|
456
510
|
"recalls": true,
|
|
457
|
-
"safetyRating": true
|
|
511
|
+
"safetyRating": true,
|
|
512
|
+
"fuelEconomy": true
|
|
458
513
|
}
|
|
459
514
|
|
|
460
515
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/exceptions.py
RENAMED
|
File without changes
|
{apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/tests/__init__.py
RENAMED
|
File without changes
|
{apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder/tests/test_api.py
RENAMED
|
File without changes
|
{apiverve_vindecoder-1.2.3 → apiverve_vindecoder-1.2.4}/src/apiverve_vindecoder.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|