Skip to main content

Generates pipe delimited test data

Project description

This testdatagen.nameandaddr module generates pipe (‘|’) delimited test data with the following fields - firstname, lastname, email, streetAddress, ZipCode, City, State, StateAbrv, County, Latitude, Longitude

The intention of this module is to provide a simple way to quickly generate person test data.

Usage :

from testdatagen import nameandaddr
nameandaddr.nameaddr(filename, recordcount)

example : nameandaddr.nameaddr('persons.csv', 300)

This example will create  a file named 'persons.csv' in the  directory where this program is located.
The file 'persons.csv' will have 300 lines.
It is recommended that you provide a fuly qualified file name (i.e. /path/filename)

It needs the included csv files to generate the test data. These files are listed below -

testdata_dn.csv
testdata_fn.csv
testdata_ln.csv
testdata_st.csv
us_postal_codes.csv

Of the above csv files, the first four are created using faker module. The last file is publicly available information.

Project details


Download files

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

Files for testdatagen, version 0.1.19
Filename, size File type Python version Upload date Hashes
Filename, size testdatagen-0.1.19.tar.gz (1.5 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page