django-istat-localization


Namedjango-istat-localization JSON
Version 0.2.7.2 PyPI version JSON
download
home_pagehttps://github.com/FraCata00/django-istat-localization
SummaryA Django app to add ISTAT data resources Regions, Provinces and Cities from updated Official CSV file.
upload_time2023-11-03 07:51:04
maintainer
docs_urlNone
authorFrancesco Cataldo
requires_python>=3.8
license: OSI Approved :: BSD License
keywords
VCS
bugtrack_url
requirements asgiref Django django-filter djangorestframework Markdown pytz sqlparse typing_extensions
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =============================
Django ISTAT API localization
=============================

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-localization",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Francesco Cataldo",
    "author_email": "francy111200@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/17/33/00bbd318e283c072b961f9b519fc3604e1d6708c948d82225d903a8a0112/django-istat-localization-0.2.7.2.tar.gz",
    "platform": null,
    "description": "=============================\nDjango ISTAT API localization\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.7.2",
    "project_urls": {
        "Homepage": "https://github.com/FraCata00/django-istat-localization"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "554091c5583854cf5c1e3e71213d70b8d1ff41ff5fb8b835faaa5f971cd813db",
                "md5": "f95b1e5925a553662d9a9afa3f2202d0",
                "sha256": "0cef35ce3298d3a9a63b1d8cffcf47dd83644ad178becbaad8efd4af4ff94714"
            },
            "downloads": -1,
            "filename": "django_istat_localization-0.2.7.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f95b1e5925a553662d9a9afa3f2202d0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15981,
            "upload_time": "2023-11-03T07:51:03",
            "upload_time_iso_8601": "2023-11-03T07:51:03.003599Z",
            "url": "https://files.pythonhosted.org/packages/55/40/91c5583854cf5c1e3e71213d70b8d1ff41ff5fb8b835faaa5f971cd813db/django_istat_localization-0.2.7.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "173300bbd318e283c072b961f9b519fc3604e1d6708c948d82225d903a8a0112",
                "md5": "5e28a2aa364af53acdb4b9d3f1a13509",
                "sha256": "81d3a73ace9b11270d6ce4d827e9bb5f592559fa062a2eafc40be455f88a7670"
            },
            "downloads": -1,
            "filename": "django-istat-localization-0.2.7.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5e28a2aa364af53acdb4b9d3f1a13509",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10768,
            "upload_time": "2023-11-03T07:51:04",
            "upload_time_iso_8601": "2023-11-03T07:51:04.611761Z",
            "url": "https://files.pythonhosted.org/packages/17/33/00bbd318e283c072b961f9b519fc3604e1d6708c948d82225d903a8a0112/django-istat-localization-0.2.7.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-03 07:51:04",
    "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": [
        {
            "name": "asgiref",
            "specs": [
                [
                    "==",
                    "3.7.2"
                ]
            ]
        },
        {
            "name": "Django",
            "specs": [
                [
                    "==",
                    "4.2.7"
                ]
            ]
        },
        {
            "name": "django-filter",
            "specs": [
                [
                    "==",
                    "23.3"
                ]
            ]
        },
        {
            "name": "djangorestframework",
            "specs": [
                [
                    "==",
                    "3.14.0"
                ]
            ]
        },
        {
            "name": "Markdown",
            "specs": [
                [
                    "==",
                    "3.5.1"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    "==",
                    "2023.3.post1"
                ]
            ]
        },
        {
            "name": "sqlparse",
            "specs": [
                [
                    "==",
                    "0.4.4"
                ]
            ]
        },
        {
            "name": "typing_extensions",
            "specs": [
                [
                    "==",
                    "4.8.0"
                ]
            ]
        }
    ],
    "lcname": "django-istat-localization"
}
        
Elapsed time: 0.29150s