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
Raw data
{
"_id": null,
"home_page": "https://github.com/kennethwsmith/faker_vehicle",
"name": "faker-vehicle",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "faker vehicle test data",
"author": "kennethwsmith",
"author_email": "kennethwsmith+fakerveh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a3/f9/3432a540a3b6599b7365190df1030aaf93cb7c0113d2528b55511c6a48de/faker_vehicle-0.2.0.tar.gz",
"platform": "any",
"description": "faker_vehicle\n=============\n\n |pypi| |unix_build| |coverage| |license|\n\nfaker_vehicle is a provider for the `Faker`_ Python package.\n\nIt provides vehicle and machinery related fake data for testing purposes:\n\n * Vehicle Make\n * Vehicle Model\n * Vehicle Make / Model\n * Vehicle Make / Model / Year\n * Vehicle Make / Model / Category\n * Vehicle Year\n * Vehicle Object (you can format)\n\n * Machine Make\n * Machine Model\n * Machine Make / Model\n * Machine Make / Model / Year\n * Machine Make / Model / Category\n * Machine Year\n * Machine Object (you can format)\n\nUsage\n-----\n\nInstall with pip:\n\n.. code:: bash\n\n pip install faker_vehicle\n\nOr install with setup.py\n\n.. code:: bash\n\n git clone https://github.com/kennethwsmith/faker_vehicle.git\n cd faker_vehicle && python setup.py install\n\nAdd the ``VehicleProvider`` to your ``Faker`` instance:\n\n.. code:: python\n\n from faker import Faker\n from faker_vehicle import VehicleProvider\n\n fake = Faker()\n fake.add_provider(VehicleProvider)\n\n fake.vehicle_year_make_model()\n # 2014 Volkswagen Golf\n fake.vehicle_year_make_model_cat()\n # 1996 Dodge Ram Wagon 1500 (Van/Minivan)\n fake.vehicle_make_model()\n # Volvo V40\n fake.vehicle_make()\n # BMW\n fake.vehicle_model()\n # SL\n fake.vehicle_year()\n # 2008\n fake.vehicle_category()\n # Wagon\n json.dumps(fake.vehicle_object())\n # {\"Year\": 1996, \"Make\": \"Chrysler\", \"Model\": \"New Yorker\", \"Category\": \"Sedan\"}\n\n fake.machine_year_make_model()\n # 2008 Caterpillar 5511C\n fake.machine_year_make_model_cat()\n # 2008 Caterpillar 5511C (Feller Buncher)\n fake.machine_make_model()\n # Caterpillar 5511C\n fake.machine_make()\n # Caterpillar\n fake.machine_model()\n # 5511C\n fake.machine_year()\n # 2008\n fake.machine_category()\n # Feller Buncher \n json.dumps(fake.machine_object())\n # {\"Year\": 2008, \"Make\": \"Caterpillar\", \"Model\": \"5511C\", \"Category\": \"Feller Buncher\"}\n\n.. |pypi| image:: https://img.shields.io/pypi/v/faker_vehicle.svg?style=flat-square&label=version\n :target: https://pypi.python.org/pypi/faker_vehicle\n :alt: Latest version released on PyPi\n\n.. |unix_build| image:: https://img.shields.io/travis/kennethwsmith/faker_vehicle/master.svg?style=flat-square&label=unix%20build\n :target: http://travis-ci.org/kennethwsmith/faker_vehicle\n :alt: Build status of the master branch on Mac/Linux\n\n.. |coverage| image:: https://img.shields.io/coveralls/kennethwsmith/faker_vehicle/master.svg?style=flat-square\n :target: https://coveralls.io/r/kennethwsmith/faker_vehicle?branch=master\n :alt: Test coverage\n\n.. |license| image:: https://img.shields.io/badge/license-apache-blue.svg?style=flat-square\n :target: https://github.com/kennethwsmith/faker_vehicle/blob/master/LICENSE\n :alt: Apache license version 2.0\n\n.. _Faker: https://github.com/joke2k/faker\n\n\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Vehicle related Provider for the Faker Python package.",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/kennethwsmith/faker_vehicle"
},
"split_keywords": [
"faker",
"vehicle",
"test",
"data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1292906adbed8dd2a240ecd878032be13a754df53b0389e9825cd557814c7f60",
"md5": "e0729e965ffb86bcd74119b0dcc5832e",
"sha256": "30fa5eb81da17d6483be545431a9b51f76f2b6731ac3ee9c2e038560fca58e4a"
},
"downloads": -1,
"filename": "faker_vehicle-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0729e965ffb86bcd74119b0dcc5832e",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 162355,
"upload_time": "2020-11-13T19:53:01",
"upload_time_iso_8601": "2020-11-13T19:53:01.266495Z",
"url": "https://files.pythonhosted.org/packages/12/92/906adbed8dd2a240ecd878032be13a754df53b0389e9825cd557814c7f60/faker_vehicle-0.2.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a3f93432a540a3b6599b7365190df1030aaf93cb7c0113d2528b55511c6a48de",
"md5": "45ea6336cd76441669bec801498c590b",
"sha256": "3a7f1065da54b998f8875785282d3b1da4a422bc14fe0776a4a4ff4c1872a3b5"
},
"downloads": -1,
"filename": "faker_vehicle-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "45ea6336cd76441669bec801498c590b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 149620,
"upload_time": "2020-11-13T19:53:02",
"upload_time_iso_8601": "2020-11-13T19:53:02.537910Z",
"url": "https://files.pythonhosted.org/packages/a3/f9/3432a540a3b6599b7365190df1030aaf93cb7c0113d2528b55511c6a48de/faker_vehicle-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-11-13 19:53:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kennethwsmith",
"github_project": "faker_vehicle",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Faker",
"specs": [
[
"==",
"4.0.3"
]
]
},
{
"name": "coverage",
"specs": []
},
{
"name": "coveralls",
"specs": []
}
],
"lcname": "faker-vehicle"
}