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

Uploaded Source

Built Distribution

faker_vehicle-0.1.2-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.2.tar.gz.

File metadata

  • Download URL: faker_vehicle-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fd37b5ffe7b3f3e0855abb392afbc5718b70ecde4f03dd70c07fe16651d25dc7
MD5 0c429d72bc769a279a7bb6b0cd6950ec
BLAKE2b-256 43e6c930ec5d5550f4ca4e864ca62ef4304e024b0bffd8c762349f5bc25c1ab5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: faker_vehicle-0.1.2-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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 10b164fca8f852fb23324d996ce503beadd4d42b5a9c28cf543f88b4735a4b82
MD5 bcc7124c2832d866efef706832f6a9ff
BLAKE2b-256 36c33a46b0c797a3355332ead55336890c4e2482d39c7f94351a401a37e3660b

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