Skip to main content

random_italian_person

Pypi project Pypi total project downloads Github Actions

Python package to generate an Italian person randomly.

How do I install this package?

As usual, just download it using pip:

pip install random_italian_person

Usage examples

from random_italian_person import RandomItalianPerson

person = RandomItalianPerson()

print(person.describe())
# 'Rodrigo Benedetti è nata/o a Molazzana (LU) il 1972-12-18. Ora vive a Cagliari (CA) in Via Giuseppe Garibaldi 109.'

Generate a CSV of random italian persons

One of the most common usages for this library is to render fake datasets for testing porposes. For instance, to generate a CSV with 5 random person you can use:

import pandas as pd
from random_italian_person import RandomItalianPerson

df = pd.DataFrame([
    RandomItalianPerson().data
    for _ in range(5)
])

The obtained dataframe will look like:

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

Marche

Macerata

Di Felice

Giacomina

F

Mosciano Sant’angelo

Teramo

Abruzzo

64023

TE

1945-09-18

Viale De Amicis

76

62020

Colmurano

MC

DFLGMN45P58F764B

Friuli Venezia Giulia

Udine

Galli

Imen

F

Isola Dovarese

Cremona

Lombardia

26031

CR

1942-03-10

Via Udine

2

33020

Verzegnis

UD

GLLMNI42C50E356T

Abruzzo

Pescara

Rosso

Eva

F

Cellarengo

Asti

Piemonte

14010

AT

2001-12-31

Via G. Fonzi

58

65010

Spoltore

PE

RSSVEA01T71C438U

Emilia Romagna

Bologna

Grasso

Emanuele

M

Caposele

Avellino

Campania

83040

AV

1942-08-27

Via G. Massarenti

223/5

40138

Bologna

BO

GRSMNL42M27B674L

Sicilia

Palermo

Pastorino

Lenuta

F

Borzonasca

Genova

Liguria

16041

GE

1972-09-05

Via Montalbo

124

90142

Palermo

PA

PSTLNT72P45B067T

Metadata

Release files for random-italian-person 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for random-italian-person 1.0.6
File Size Uploaded Provenance Actions
random_italian_person-1.0.6.tar.gz 448.8 kB Without provenance Details for random_italian_person-1.0.6.tar.gz

Release files / random_italian_person-1.0.6.tar.gz

Download URL random_italian_person-1.0.6.tar.gz
Size 448.8 kB
Tags Source
SHA-256 checksum
How to use checksums
97f8d00b2a75839364a3bfccc87e843ae986bdf78c5e1a1f817ca96afd8869d5
BLAKE2b-256 checksum
How to use checksums
88755b024f167e6aa524acbf79bb17cd236005e591f43eaac287e8fa6ccf43a0
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-italian-person 1.0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page