ForgeryPy documentation

ForgeryPy3 is a fake data generator fully compatible with Python 2 and 3.

ForgeryPy3 solves the problem ofgenerating simple, random, yetmeaningful data for testing and development.

ForgeryPy3 is a fork of Tomek Wójcik’sForgeryPy project, which is,in turn, based on the Rubyforgery gem.

ForgeryPy3 takes up where ForgeryPy left off, reflecting the currentstate of the originalforgery package, carefully following itsAPI.

Using

Basic usage is easy and straightforward. Fire up your Python REPL andtry:

>>>importforgery_py>>>forgery_py.address.street_address()'4358 Shopko Junction'>>>forgery_py.basic.hex_color()'3F0A59'>>>forgery_py.credit_card.type()'Visa>>>forgery_py.currency.description()'Slovenia Tolars'>>>forgery_py.date.date()datetime.date(2012, 7, 27)>>>forgery_py.email.address()'debra@tavu.edu>>>forgery_py.internet.ip_v4()'150.64.188.100''>>>forgery_py.lorem_ipsum.title()'Pretium nam rhoncus ultrices!'>>>forgery_py.monetary.money()'$4.50'>>>forgery_py.name.full_name()'Mary Peters'>>>forgery_py.personal.language()'Hungarian'>>>forgery_py.russian_tax.person_inn()'768974545606'>>>forgery_py.time.zone()'Melbourne'

Modules

Source code

Source code is available onGitHub.

Credits

The project is based onForgeryPy package by Tomek Wójcik.

ForgeryPy, in its turn, gets use of dictionaries from the originalRubyforgery gem.

License

The project is licensed under MIT License. For further information seeLINCENSE.

Indices and tables