random_italian_person
=========================================================================================
|pip| |downloads|
Python package to generate an Italian person randomly.
How do I install this package?
----------------------------------------------
As usual, just download it using pip:
.. code:: shell
pip install random_italian_person
Usage examples
-----------------------------------------------
.. code:: python
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:
.. code:: python
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 |
+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+
.. |pip| image:: https://badge.fury.io/py/random-italian-person.svg
:target: https://badge.fury.io/py/random-italian-person
:alt: Pypi project
.. |downloads| image:: https://pepy.tech/badge/random-italian-person
:target: https://pepy.tech/badge/random-italian-person
:alt: Pypi total project downloads
Raw data
{
"_id": null,
"home_page": "https://github.com/LucaCappelletti94/random_italian_person",
"name": "random-italian-person",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "LucaCappelletti94",
"author_email": "cappelletti.luca94@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/75/8e/d29d1dcca547cd64fddd8f980fe1e7dc6e8cdd1fb32bdbcd1369a794be88/random_italian_person-1.0.5.tar.gz",
"platform": null,
"description": "random_italian_person\n=========================================================================================\n|pip| |downloads|\n\nPython package to generate an Italian person randomly.\n\nHow do I install this package?\n----------------------------------------------\nAs usual, just download it using pip:\n\n.. code:: shell\n\n pip install random_italian_person\n\n\nUsage examples\n-----------------------------------------------\n\n.. code:: python\n\n from random_italian_person import RandomItalianPerson\n\n person = RandomItalianPerson()\n\n print(person.describe())\n # 'Rodrigo Benedetti \u00e8 nata/o a Molazzana (LU) il 1972-12-18. Ora vive a Cagliari (CA) in Via Giuseppe Garibaldi 109.'\n\nGenerate a CSV of random italian persons\n-----------------------------------------------\nOne of the most common usages for this library is to render\nfake datasets for testing porposes. For instance,\nto generate a CSV with 5 random person you can use:\n\n.. code:: python\n\n import pandas as pd\n from random_italian_person import RandomItalianPerson\n\n df = pd.DataFrame([\n RandomItalianPerson().data\n for _ in range(5)\n ])\n\nThe obtained dataframe will look like:\n\n+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+\n| 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 |\n+=======================+============+===========+===========+=======+======================+==================+================+=============+=======================+=============+===================+================+=======+================+=================+==================+\n| Marche | Macerata | Di Felice | Giacomina | F | Mosciano Sant'angelo | Teramo | Abruzzo | 64023 | TE | 1945-09-18 | Viale De Amicis | 76 | 62020 | Colmurano | MC | DFLGMN45P58F764B |\n+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+\n| Friuli Venezia Giulia | Udine | Galli | Imen | F | Isola Dovarese | Cremona | Lombardia | 26031 | CR | 1942-03-10 | Via Udine | 2 | 33020 | Verzegnis | UD | GLLMNI42C50E356T |\n+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+\n| Abruzzo | Pescara | Rosso | Eva | F | Cellarengo | Asti | Piemonte | 14010 | AT | 2001-12-31 | Via G. Fonzi | 58 | 65010 | Spoltore | PE | RSSVEA01T71C438U |\n+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+\n| Emilia Romagna | Bologna | Grasso | Emanuele | M | Caposele | Avellino | Campania | 83040 | AV | 1942-08-27 | Via G. Massarenti | 223/5 | 40138 | Bologna | BO | GRSMNL42M27B674L |\n+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+\n| Sicilia | Palermo | Pastorino | Lenuta | F | Borzonasca | Genova | Liguria | 16041 | GE | 1972-09-05 | Via Montalbo | 124 | 90142 | Palermo | PA | PSTLNT72P45B067T |\n+-----------------------+------------+-----------+-----------+-------+----------------------+------------------+----------------+-------------+-----------------------+-------------+-------------------+----------------+-------+----------------+-----------------+------------------+\n\n\n.. |pip| image:: https://badge.fury.io/py/random-italian-person.svg\n :target: https://badge.fury.io/py/random-italian-person\n :alt: Pypi project\n\n.. |downloads| image:: https://pepy.tech/badge/random-italian-person\n :target: https://pepy.tech/badge/random-italian-person\n :alt: Pypi total project downloads\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python package to generate an Italian person randomly.",
"version": "1.0.5",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "758ed29d1dcca547cd64fddd8f980fe1e7dc6e8cdd1fb32bdbcd1369a794be88",
"md5": "22daee8bd77d41deca965124ae601b7b",
"sha256": "6efb0b63da4bdacb5c4f45d1587fe25d2f17146993f50fc6c908137b8377294f"
},
"downloads": -1,
"filename": "random_italian_person-1.0.5.tar.gz",
"has_sig": false,
"md5_digest": "22daee8bd77d41deca965124ae601b7b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 448343,
"upload_time": "2023-04-02T10:26:36",
"upload_time_iso_8601": "2023-04-02T10:26:36.586596Z",
"url": "https://files.pythonhosted.org/packages/75/8e/d29d1dcca547cd64fddd8f980fe1e7dc6e8cdd1fb32bdbcd1369a794be88/random_italian_person-1.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-02 10:26:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "LucaCappelletti94",
"github_project": "random_italian_person",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "random-italian-person"
}