Python http://kohnlehome.de/python/python-faker.pdf
Python: Zufallsdaten mit Faker
Installation
pip install Faker
Import und Objekt erstellen
from faker import Faker faker = Faker(’de_DE’)
Zufallsdaten erstellen
zufalls_name = faker.name() # z.B. Babette Stiffel
zufalls_adresse = faker.address() # z.B. Hertrampfgasse 287 \n67678 Wiedenbr¨uck zufalls_job = faker.job() # z.B. Schornsteinfeger
zufalls_text = faker.text() # z.B. Minima explicabo omnis rerum alias deleniti ab.
# Libero saepe ea quas consectetur commodi.
# Officiis officia iste.
zufalls_mac_adresse = faker.mac_address() # z.B. c4:96:c9:5e:2f:3e
Github
github.com/joke2k/faker
Franz Kohnle Seite 1 von 1 19. Juli 2020