Skip to main content

Faker but fast and dumb instead of slow and smart

Project description

fakeish

faker but fast and dumb instead of slow and smart

Usage

To generate random but possibly overlapping data:

from fakeish import Fakeish

f = Fakeish()
rand_ssn = f.ssn()

In order to generate data that is both random and non-overlapping, however, some light configuration is needed. The following code will

f = Fakeish()
f.configure_unique_samples_list("ssn", 50)

non_overlapping_ssns = [f.unique.ssn() for i in range(50)]

Configuration sample type can also be any of the following: emails, first_names, first_names_male, first_names_female, last_names, names, names_male, names_female.

In order to generate the same random data each time, the Fakeish object can be seeded:

f = Fakeish()
f.seed(<int>)
# configure / generate data here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fakeish-0.3.0.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

fakeish-0.3.0-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page