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.3.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

faker_vehicle-0.1.3-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.3.tar.gz.

File metadata

  • Download URL: faker_vehicle-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 49c180bed306744142d5ba9979b13b56f8af5fb5ab1b2badd86fb1db67861a4f
MD5 f15d2241fcfece164a034fb5e6f13d35
BLAKE2b-256 a7d414b9224da22cf2e153e024cadf7697ce7f013878e6d97bc10f01fd6a2656

See more details on using hashes here.

File details

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

File metadata

  • Download URL: faker_vehicle-0.1.3-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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c7ddffd279734c600ea96e1aa0b246697a6f01f94654fa3616d8ce45c28bf842
MD5 f85bedb573477a2dab7fa45892d80f64
BLAKE2b-256 f21308d0c88252c94e117f6a9516540e5d4ce043bf6bdeb341852f7a08908fdb

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