New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

faker-vehicle

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faker-vehicle

Vehicle related Provider for the Faker Python package.

  • 0.2.0
  • PyPI
  • Socket score

Maintainers
1

faker_vehicle

|pypi| |unix_build| |coverage| |license|

faker_vehicle is a provider for the Faker_ Python package.

It provides vehicle and machinery 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)

* Machine Make
* Machine Model
* Machine Make / Model
* Machine Make / Model / Year
* Machine Make / Model / Category
* Machine Year
* Machine Object (you can format)

Usage

Install with pip:

.. code:: bash

pip install faker_vehicle

Or install with setup.py

.. code:: bash

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

Add the VehicleProvider to your Faker instance:

.. code:: python

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"}

fake.machine_year_make_model()
# 2008 Caterpillar 5511C
fake.machine_year_make_model_cat()
# 2008 Caterpillar 5511C (Feller Buncher)
fake.machine_make_model()
# Caterpillar 5511C
fake.machine_make()
# Caterpillar
fake.machine_model()
# 5511C
fake.machine_year()
# 2008
fake.machine_category()
# Feller Buncher 
json.dumps(fake.machine_object())
# {"Year": 2008, "Make": "Caterpillar", "Model": "5511C", "Category": "Feller Buncher"}

.. |pypi| image:: https://img.shields.io/pypi/v/faker_vehicle.svg?style=flat-square&label=version :target: https://pypi.python.org/pypi/faker_vehicle :alt: Latest version released on PyPi

.. |unix_build| image:: https://img.shields.io/travis/kennethwsmith/faker_vehicle/master.svg?style=flat-square&label=unix%20build :target: http://travis-ci.org/kennethwsmith/faker_vehicle :alt: Build status of the master branch on Mac/Linux

.. |coverage| image:: https://img.shields.io/coveralls/kennethwsmith/faker_vehicle/master.svg?style=flat-square :target: https://coveralls.io/r/kennethwsmith/faker_vehicle?branch=master :alt: Test coverage

.. |license| image:: https://img.shields.io/badge/license-apache-blue.svg?style=flat-square :target: https://github.com/kennethwsmith/faker_vehicle/blob/master/LICENSE :alt: Apache license version 2.0

.. _Faker: https://github.com/joke2k/faker

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc