.. image:: https://img.shields.io/github/license/FraCata00/django-istat-italian-places
:alt: GitHub
.. image:: https://img.shields.io/github/languages/top/FraCata00/django-istat-italian-places
:alt: GitHub top language
.. image:: https://img.shields.io/pypi/wheel/django-istat-italian-places
:alt: PyPI - Wheel
.. image:: https://img.shields.io/github/v/release/FraCata00/django-istat-italian-places
:alt: GitHub release (with filter)
.. image:: https://img.shields.io/github/actions/workflow/status/FraCata00/django-istat-italian-places/python-publish.yml
:alt: GitHub Workflow Status (with event)
.. image:: https://img.shields.io/github/issues/FraCata00/django-istat-italian-places
:alt: GitHub issues
.. image:: https://img.shields.io/github/issues-pr/FraCata00/django-istat-italian-places
:alt: GitHub pull requests
.. image:: https://github.com/FraCata00/django-istat-italian-places/workflows/CodeQL/badge.svg
:alt: https://github.com/FraCata00/django-istat-italian-places/actions?query=workflow%3ACodeQL
===============================
Django ISTAT API italian places
===============================
Django ISTAT is a Django app to localize the ISTAT API.
The result is a Django app that you can plug into your existing Django project to localize the ISTAT API.
- The resources are: Region, Provinces and Cities.
- The data are taken from the ISTAT API (https://www.istat.it/it/archivio/6789)
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "comuni_italiani" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...,
"comuni_italiani",
]
2. Include the polls URLconf in your project urls.py like this::
path("comuni_italiani/", include("comuni_italiani.urls")),
3. Run ``python manage.py migrate`` to create the comuni_italiani models.
4. Start the development server
5. Run the management command to populate the database with the ISTAT API data::
``python manage.py import_istat_data``
(If use the --force option, the command start without asking for confirmation)
6. Visit http://127.0.0.1:8000/comuni-italiani/ to view the API index.
7. Visit http://127.0.0.1:8000/comuni-italiani/regioni/ to view the API regioni.
8. Visit http://127.0.0.1:8000/comuni-italiani/province/ to view the API province.
9. Visit http://127.0.0.1:8000/comuni-italiani/comuni/ to view the API cities.
Raw data
{
"_id": null,
"home_page": "https://github.com/FraCata00/django-istat-localization",
"name": "django-istat-italian-places",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Francesco Cataldo",
"author_email": "francy111200@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/38/dc/3797a1552ad5ff40e6c66fb5d30044eebceb91bd6919911583d3c8add9d3/django_istat_italian_places-0.2.9.tar.gz",
"platform": null,
"description": ".. image:: https://img.shields.io/github/license/FraCata00/django-istat-italian-places\n :alt: GitHub\n\n.. image:: https://img.shields.io/github/languages/top/FraCata00/django-istat-italian-places\n :alt: GitHub top language\n\n.. image:: https://img.shields.io/pypi/wheel/django-istat-italian-places\n :alt: PyPI - Wheel\n\n.. image:: https://img.shields.io/github/v/release/FraCata00/django-istat-italian-places\n :alt: GitHub release (with filter)\n\n.. image:: https://img.shields.io/github/actions/workflow/status/FraCata00/django-istat-italian-places/python-publish.yml\n :alt: GitHub Workflow Status (with event)\n\n.. image:: https://img.shields.io/github/issues/FraCata00/django-istat-italian-places\n :alt: GitHub issues\n\n.. image:: https://img.shields.io/github/issues-pr/FraCata00/django-istat-italian-places\n :alt: GitHub pull requests\n\n.. image:: https://github.com/FraCata00/django-istat-italian-places/workflows/CodeQL/badge.svg\n :alt: https://github.com/FraCata00/django-istat-italian-places/actions?query=workflow%3ACodeQL\n\n===============================\nDjango ISTAT API italian places\n===============================\n\nDjango ISTAT is a Django app to localize the ISTAT API.\nThe result is a Django app that you can plug into your existing Django project to localize the ISTAT API.\n\n- The resources are: Region, Provinces and Cities.\n- The data are taken from the ISTAT API (https://www.istat.it/it/archivio/6789)\n\nDetailed documentation is in the \"docs\" directory.\n\nQuick start\n-----------\n\n1. Add \"comuni_italiani\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = [\n ...,\n \"comuni_italiani\",\n ]\n\n2. Include the polls URLconf in your project urls.py like this::\n\n path(\"comuni_italiani/\", include(\"comuni_italiani.urls\")),\n\n3. Run ``python manage.py migrate`` to create the comuni_italiani models.\n\n4. Start the development server\n\n5. Run the management command to populate the database with the ISTAT API data::\n\n ``python manage.py import_istat_data``\n\n (If use the --force option, the command start without asking for confirmation)\n\n6. Visit http://127.0.0.1:8000/comuni-italiani/ to view the API index.\n\n7. Visit http://127.0.0.1:8000/comuni-italiani/regioni/ to view the API regioni.\n\n8. Visit http://127.0.0.1:8000/comuni-italiani/province/ to view the API province.\n\n9. Visit http://127.0.0.1:8000/comuni-italiani/comuni/ to view the API cities.\n",
"bugtrack_url": null,
"license": ": OSI Approved :: BSD License",
"summary": "A Django app to add ISTAT data resources Regions, Provinces and Cities from updated Official CSV file.",
"version": "0.2.9",
"project_urls": {
"Homepage": "https://github.com/FraCata00/django-istat-localization"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1eef4eb191433fe370043e64fe0540cf5c409fe91c241aef3d3c09040e6ed56e",
"md5": "7ccbbab9ca72dbdd785f7021051d4c49",
"sha256": "a017c8649813cfb1f87ecf7fb342eb4e78a447ce0588e838f2052d4619443936"
},
"downloads": -1,
"filename": "django_istat_italian_places-0.2.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7ccbbab9ca72dbdd785f7021051d4c49",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 16748,
"upload_time": "2024-07-08T13:28:56",
"upload_time_iso_8601": "2024-07-08T13:28:56.550525Z",
"url": "https://files.pythonhosted.org/packages/1e/ef/4eb191433fe370043e64fe0540cf5c409fe91c241aef3d3c09040e6ed56e/django_istat_italian_places-0.2.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "38dc3797a1552ad5ff40e6c66fb5d30044eebceb91bd6919911583d3c8add9d3",
"md5": "555467d01b73c43c6452d5fa795ecb38",
"sha256": "455777d51056b33eea76cd2e7d01fc417956688e528b3f6dd786812f005a8a6f"
},
"downloads": -1,
"filename": "django_istat_italian_places-0.2.9.tar.gz",
"has_sig": false,
"md5_digest": "555467d01b73c43c6452d5fa795ecb38",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 11509,
"upload_time": "2024-07-08T13:28:58",
"upload_time_iso_8601": "2024-07-08T13:28:58.131610Z",
"url": "https://files.pythonhosted.org/packages/38/dc/3797a1552ad5ff40e6c66fb5d30044eebceb91bd6919911583d3c8add9d3/django_istat_italian_places-0.2.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-08 13:28:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "FraCata00",
"github_project": "django-istat-localization",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "django-istat-italian-places"
}