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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file fakeish-0.3.0.tar.gz.

File metadata

  • Download URL: fakeish-0.3.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.9.0

File hashes

Hashes for fakeish-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3801fd54ac418f26a3cde0875591b1898677512dde694e2e6e4d491d4d17afd1
MD5 8cc6b2046d68085fbbe5c2054e366a90
BLAKE2b-256 b299ec611fba59c3961faa24ad03e1d8ed578d00f3782d0ae9ebaec373cc3008

See more details on using hashes here.

File details

Details for the file fakeish-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: fakeish-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.9.0

File hashes

Hashes for fakeish-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cad7dd5f6145c1725e1152edb9643698822856b73df748a7bf108fafcdd4e9a5
MD5 6ec7cf535cb3d28339eee38fd3664ad0
BLAKE2b-256 700cf42df64653a59a63954098e1d0c5a059ee62bae820fbb203c800273ea69b

See more details on using hashes here.

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