Skip to main content

Vehicle related Provider for the Faker Python package.

Project description

Latest version released on PyPi Build status of the master branch on Mac/Linux Test coverage Apache license version 2.0

faker_vehicle is a provider for the Faker Python package.

It provides vehicle related fake data for testing purposes:

  • Vehicle Make

  • Vehicle Model

  • Vehicle Make / Model

  • Vehicle Make / Model / Year

  • Vehicle Make / Model / Category

  • Vehicle Year

  • Vehicle Object (you can format)

Usage

Install with pip:

pip install faker_vehicle

Or install with setup.py

git clone https://github.com/kennethwsmith/faker_vehicle.git
cd faker_vehicle && python setup.py install

Add the VehicleProvider to your Faker instance:

from faker import Faker
from faker_vehicle import VehicleProvider

fake = Faker()
fake.add_provider(VehicleProvider)

fake.vehicle_year_make_model()
# 2014 Volkswagen Golf
fake.vehicle_year_make_model_cat()
# 1996 Dodge Ram Wagon 1500 (Van/Minivan)
fake.vehicle_make_model()
# Volvo V40
fake.vehicle_make()
# BMW
fake.vehicle_model()
# SL
fake.vehicle_year()
# 2008
fake.vehicle_category()
# Wagon
json.dumps(fake.vehicle_object())
# {"Year": 1996, "Make": "Chrysler", "Model": "New Yorker", "Category": "Sedan"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faker_vehicle-0.1.1.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

faker_vehicle-0.1.1-py2.py3-none-any.whl (73.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file faker_vehicle-0.1.1.tar.gz.

File metadata

  • Download URL: faker_vehicle-0.1.1.tar.gz
  • Upload date:
  • Size: 68.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for faker_vehicle-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ace0bea50d48eb922e2a2ba3e07237154cd71d7e928f66ebe5750aabe0948569
MD5 a8831f8ce8d51e84945eee40a506b247
BLAKE2b-256 6c86ae211a7296a3c9a6b7459c44d9b1a43fb68006eb7bb9d940070edfeda9e7

See more details on using hashes here.

File details

Details for the file faker_vehicle-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: faker_vehicle-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 73.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for faker_vehicle-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3a964de1fd272be6ef4d0dbc0f562c5a0d1d973de06e05efd28b7a3fb1e2ab08
MD5 363ceaa65b0eddcfaa1d621129f4dc25
BLAKE2b-256 7ebf8b0b9355fbfa336cfa4a1524a4a28cc068f2a23347e949ea4e137606e1f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page