Random CSV generator
Tool for rendering plausible real-life CSV data. Since our primary use case involves testing Italian data-pipelines, the generated name and surname are Italian, as well as the birthplace and the address. The financial data is also, of course, fake, but all is as self-consistent as possible.
How do I install this package?
As usual, just download it using pip:
pip install random_csv_generator
Usage examples
Currently, the generated CSV contains FAKE data about Italian persons and some FAKE financial information.
from random_csv_generator import random_csv
df = random_csv(300) # To generate a CSV with 300 rows
| region | province | surname | name | sex | birth_municipality | birth_province | birth_region | birth_cap | birth_province_code | birthdate | address | house_number | cap | municipality | province_code | codice_fiscale | total_debit | paid_debit |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Toscana | Siena | Veronese | Giorgio | M | Castelnovo Bariano | Rovigo | Veneto | 45030 | RO | 2000-12-08 | Via Traversa Stazione | 15 | 53034 | Colle Di Val D'elsa | SI | VRNGRG00T08C215S | 15.347,00 € | 1.763,00 € |
| Lombardia | Brescia | Barsotti | Laura | F | Santa Luce | Pisa | Toscana | 56040 | PI | 1981-04-16 | Via Martiri Della Libertà | 291 | 25030 | Roncadelle | BS | BRSLRA81D56I217W | 24.015,00 € | 12.250,00 € |
| Calabria | Vibo Valentia | Landi | Edoardo | M | Certaldo | Firenze | Toscana | 50052 | FI | 1999-07-31 | Corso Umberto I | 250 | 89822 | Serra San Bruno | VV | LNDDRD99L31C540R | 73.788,00 € | 70.486,00 € |
| Lazio | Frosinone | Rossi | Giuseppe Oreste Massimo | M | Baricella | Bologna | Emilia Romagna | 40052 | BO | 1953-09-10 | Borgo San Nicola | 114 | 3020 | Pastena | FR | RSSGPP53P10A665N | 17.640,00 € | 15.303,00 € |
| Umbria | Perugia | Piras | Maurizio | M | Sadali | Cagliari | Sardegna | 08030 | CA | 1957-06-14 | Piazza D. Alighieri | 3 | 6061 | Castiglione Del Lago | PG | PRSMRZ57H14H659Q | 11.106,00 € | 10.210,00 € |
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for random-csv-generator 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| random_csv_generator-1.0.2.tar.gz | 5.0 kB | Without provenance | Details for random_csv_generator-1.0.2.tar.gz |
Release files / random_csv_generator-1.0.2.tar.gz
| Download URL | random_csv_generator-1.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d61b320e8d180f1c5dd083354b23f70c6cff148e1be9c98bf573201c140f360
|
|
BLAKE2b-256 checksum How to use checksums |
b2cb04fed2fee6d55e3605dd51ad13df5aa9747a46db7aeca069e803cbd336b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
|
Security for random-csv-generator 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.