Skip to main content

Python package to generate an Italian person randomly.

Project description

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability Pypi project Pypi total project downloads

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

Tests Coverage

Since some software handling coverages sometime get slightly different results, here’s three of them:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

Python package to generate an Italian person randomly.

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

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

random_italian_person-1.0.3.tar.gz (449.7 kB view details)

Uploaded Source

File details

Details for the file random_italian_person-1.0.3.tar.gz.

File metadata

  • Download URL: random_italian_person-1.0.3.tar.gz
  • Upload date:
  • Size: 449.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for random_italian_person-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8dbc083cfa7fc5537b96dcf355e561ea6de95ce4dfa6f5fcaa579a6d554cb32c
MD5 e96209ab5dd32c5e09870be601022a77
BLAKE2b-256 4128bb78c39bdb674b4f8861e26d457cd78efd5bed403b9b74546b16c3e74b7c

See more details on using hashes here.

Provenance

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