Skip to content

Instantly share code, notes, and snippets.

@mainframed
Created June 6, 2019 21:04
Show Gist options
  • Save mainframed/72df2642a4643ddff4e391dffb780d1b to your computer and use it in GitHub Desktop.
Save mainframed/72df2642a4643ddff4e391dffb780d1b to your computer and use it in GitHub Desktop.
Generate fake credit card profiles for DB2
#!/usr/bin/env python
from faker import Faker
fake = Faker()
for i in xrange(1000000):
x = fake.credit_card_full().splitlines()
a = fake.address().splitlines()
print x[1] + " " + x[2] + ' ' + x[3].split()[1] + " " + a[0] + " " + a[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment