Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 1.72 KB

quick_start.rst

File metadata and controls

75 lines (52 loc) · 1.72 KB

Quick start

Installation

pip install faker-file[all]

Usage

With Faker

Imports and initialization

_static/examples/quick_start/import_and_init_1.py

Usage examples

_static/examples/quick_start/import_and_init_1.py

If you just need bytes back (instead of creating the file), provide the raw=True argument (works with all provider classes and inner functions):

_static/examples/quick_start/import_and_init_1.py

See the full example here <_static/examples/quick_start/import_and_init_1.py>


With factory_boy

Imports and initialization

_static/examples/quick_start/factory_import_and_init_1.py

upload/models.py

_static/examples/quick_start/factory_models_1.py

See the full example here <_static/examples/quick_start/factory_models_1.py>

upload/factories.py

_static/examples/quick_start/factory_import_and_init_1.py

Usage example

_static/examples/quick_start/factory_import_and_init_1.py

See the full example here <_static/examples/quick_start/factory_import_and_init_1.py>