django-inspire-eu


Namedjango-inspire-eu JSON
Version 0.2.4 PyPI version JSON
download
home_pagehttps://github.com/xusy2k/django-inspire-eu
SummaryDjango implementation from the the themes of infrastructure for spatial information in Europe (INSPIRE)
upload_time2024-07-04 10:32:27
maintainerNone
docs_urlNone
authorJesús Zoyo
requires_pythonNone
licenseMIT
keywords django-inspire-eu django gis gdal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            Django Inspire EU
=================

[![Django 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2](https://img.shields.io/badge/django-2.0,%202.1,%202.2,%203.0,%203.1,%203.2,%204.0,%204.1,%204.2,%205.0,%205.1,%205.2-092E20.svg)](https://www.djangoproject.com)
[![Documentation Status](https://readthedocs.org/projects/django-inspire-eu/badge/?version=latest)](https://django-inspire-eu.readthedocs.io/en/latest/?badge=latest)
[![image](https://badge.fury.io/py/django-inspire-eu.svg)](https://badge.fury.io/py/django-inspire-eu)
[![See Build Status on Travis CI](https://travis-ci.com/xusy2k/django-inspire-eu.svg?branch=master)](https://travis-ci.com/xusy2k/django-inspire-eu)
[![image](https://codecov.io/gh/xusy2k/django-inspire-eu/branch/master/graph/badge.svg)](https://codecov.io/gh/xusy2k/django-inspire-eu)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

This package is the django implementation from the
[themes](https://inspire.ec.europa.eu/Themes/Data-Specifications/2892)
of the infrastructure for spatial information in Europe (INSPIRE)

Documentation
-------------

The full documentation is at <https://django-inspire-eu.readthedocs.io>.

Quickstart
----------

1.  Install Django Inspire EU:

    > -   Stable version, preferably within a virtual environment:
    >
    >     >
    >     >     $ mkvirtualenv django-inspire-eu
    >     >     $ pip install django-inspire-eu
    >
    > -   Development version:
    >
    >     > ``` {.sourceCode .bash}
    >     > $ pip install -e git+https://github.com/xusy2k/django-inspire-eu.git@master#egg=django-inspire_eu
    >     > ```
    >

2.  Add it to your _INSTALLED\_APPS_:

    > ``` {.sourceCode .python}
    > INSTALLED_APPS = (
    >     ...
    >     "inspire_eu.apps.InspireEuConfig",
    >     ...
    > )
    > ```

3. Customize [settings](https://django-inspire-eu.readthedocs.io/en/latest/settings.html):

    > -   [INSPIRE\_EU\_THEMES](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#inspire-eu-themes)
    > -   [INSPIRE\_EU\_DEFAULT\_SRID](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#inspire-eu-default-srid)
    > -   [INSPIRE\_EU\_BASE\_MODEL](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#inspire-eu-base-model)
    > -   [MIGRATION\_MODULES](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#migration-modules): **Very important** if you
    >     want avoid problems with migrations files

4. Make and execute migrations:

    > ``` {.sourceCode .bash}
    > python manage.py makemigrations
    > python manage.py migrate
    > ```

5. Populate base models:

    > This django command fetch values from
    > <https://inspire.ec.europa.eu>. In particular: Status:
    > ([valid](https://inspire.ec.europa.eu/registry/status/valid),
    > [invalid](https://inspire.ec.europa.eu/registry/status/invalid),
    > [retired](https://inspire.ec.europa.eu/registry/status/retired)),
    > [Theme](https://inspire.ec.europa.eu/theme/),
    > [Application Schema](https://inspire.ec.europa.eu/applicationschema/),
    > [Code List](https://inspire.ec.europa.eu/codelist/) and
    > For each Code List key, fetch all its Code List Values
    >
    > ``` {.sourceCode .bash}
    > python manage.py load_initial_inspire [-l <language>]  # Default: en
    > ```

6. Add Django Inspire EU's URL patterns:

    > ``` {.sourceCode .python}
    > from inspire_eu import urls as inspire_eu_urls
    >
    > urlpatterns = [
    >     ...
    >     url(r"^", include(inspire_eu_urls)),
    >     ...
    > ]
    > ```

Working example
---------------

Follow steps at [django-example
directory](https://github.com/xusy2k/django-inspire-eu/tree/master/django-example/)

Running Tests
-------------

Does the code actually work?

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox

Development commands
--------------------

    pip install -r requirements_dev.txt
    invoke -l

Credits
-------

Tools used in rendering this package:

-   [Cookiecutter](https://github.com/audreyr/cookiecutter)
-   [cookiecutter-djangopackage](https://github.com/pydanny/cookiecutter-djangopackage)

History
-------

### 0.2.4 (2024-07-04)

-   Made optional `python-slugify` and `feedparser`
-   Fixed documentation's build
-   Upgrade of `django-example`
-   Fixed old `OSMGeoAdmin` for Django 4.0 and newer

### 0.2.3 (2024-07-03)

-   Checked `ugettext` and `gettext` for compatibility with Django 4.0 and upper
-   python-slugify optional, using django slugify as fallback
-   Set django.db.models.BigAutoField

### 0.2.2 (2021-06-01)

-   Fixed related_name and related_query_name at AbstractOfficialArea model
-   Updated python-slugify according its documentation

### 0.2.1 (2021-03-19)

-   Added BaseInspireEUModel at CadastralZoning and CadastralParcel
-   Typo fixed AbstractCadastralParcel.national\_cadastal\_reference to
    AbstractCadastralParcel.national\_cadastral\_reference

### 0.2.0 (2021-02-26)

-   First release on PyPI.

### 0.1.0 (2021-02-07)

-   First release on GitHub.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xusy2k/django-inspire-eu",
    "name": "django-inspire-eu",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "django-inspire-eu, django, gis, gdal",
    "author": "Jes\u00fas Zoyo",
    "author_email": "xus@zoyolabs.com",
    "download_url": "https://files.pythonhosted.org/packages/af/c1/0af0938781834d241ed8fc9aac7d319497afc0b366bf7875fa2fbfe7350f/django_inspire_eu-0.2.4.tar.gz",
    "platform": null,
    "description": "Django Inspire EU\n=================\n\n[![Django 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2](https://img.shields.io/badge/django-2.0,%202.1,%202.2,%203.0,%203.1,%203.2,%204.0,%204.1,%204.2,%205.0,%205.1,%205.2-092E20.svg)](https://www.djangoproject.com)\n[![Documentation Status](https://readthedocs.org/projects/django-inspire-eu/badge/?version=latest)](https://django-inspire-eu.readthedocs.io/en/latest/?badge=latest)\n[![image](https://badge.fury.io/py/django-inspire-eu.svg)](https://badge.fury.io/py/django-inspire-eu)\n[![See Build Status on Travis CI](https://travis-ci.com/xusy2k/django-inspire-eu.svg?branch=master)](https://travis-ci.com/xusy2k/django-inspire-eu)\n[![image](https://codecov.io/gh/xusy2k/django-inspire-eu/branch/master/graph/badge.svg)](https://codecov.io/gh/xusy2k/django-inspire-eu)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nThis package is the django implementation from the\n[themes](https://inspire.ec.europa.eu/Themes/Data-Specifications/2892)\nof the infrastructure for spatial information in Europe (INSPIRE)\n\nDocumentation\n-------------\n\nThe full documentation is at <https://django-inspire-eu.readthedocs.io>.\n\nQuickstart\n----------\n\n1.  Install Django Inspire EU:\n\n    > -   Stable version, preferably within a virtual environment:\n    >\n    >     >\n    >     >     $ mkvirtualenv django-inspire-eu\n    >     >     $ pip install django-inspire-eu\n    >\n    > -   Development version:\n    >\n    >     > ``` {.sourceCode .bash}\n    >     > $ pip install -e git+https://github.com/xusy2k/django-inspire-eu.git@master#egg=django-inspire_eu\n    >     > ```\n    >\n\n2.  Add it to your _INSTALLED\\_APPS_:\n\n    > ``` {.sourceCode .python}\n    > INSTALLED_APPS = (\n    >     ...\n    >     \"inspire_eu.apps.InspireEuConfig\",\n    >     ...\n    > )\n    > ```\n\n3. Customize [settings](https://django-inspire-eu.readthedocs.io/en/latest/settings.html):\n\n    > -   [INSPIRE\\_EU\\_THEMES](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#inspire-eu-themes)\n    > -   [INSPIRE\\_EU\\_DEFAULT\\_SRID](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#inspire-eu-default-srid)\n    > -   [INSPIRE\\_EU\\_BASE\\_MODEL](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#inspire-eu-base-model)\n    > -   [MIGRATION\\_MODULES](https://django-inspire-eu.readthedocs.io/en/latest/settings.html#migration-modules): **Very important** if you\n    >     want avoid problems with migrations files\n\n4. Make and execute migrations:\n\n    > ``` {.sourceCode .bash}\n    > python manage.py makemigrations\n    > python manage.py migrate\n    > ```\n\n5. Populate base models:\n\n    > This django command fetch values from\n    > <https://inspire.ec.europa.eu>. In particular: Status:\n    > ([valid](https://inspire.ec.europa.eu/registry/status/valid),\n    > [invalid](https://inspire.ec.europa.eu/registry/status/invalid),\n    > [retired](https://inspire.ec.europa.eu/registry/status/retired)),\n    > [Theme](https://inspire.ec.europa.eu/theme/),\n    > [Application Schema](https://inspire.ec.europa.eu/applicationschema/),\n    > [Code List](https://inspire.ec.europa.eu/codelist/) and\n    > For each Code List key, fetch all its Code List Values\n    >\n    > ``` {.sourceCode .bash}\n    > python manage.py load_initial_inspire [-l <language>]  # Default: en\n    > ```\n\n6. Add Django Inspire EU's URL patterns:\n\n    > ``` {.sourceCode .python}\n    > from inspire_eu import urls as inspire_eu_urls\n    >\n    > urlpatterns = [\n    >     ...\n    >     url(r\"^\", include(inspire_eu_urls)),\n    >     ...\n    > ]\n    > ```\n\nWorking example\n---------------\n\nFollow steps at [django-example\ndirectory](https://github.com/xusy2k/django-inspire-eu/tree/master/django-example/)\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n    source <YOURVIRTUALENV>/bin/activate\n    (myenv) $ pip install tox\n    (myenv) $ tox\n\nDevelopment commands\n--------------------\n\n    pip install -r requirements_dev.txt\n    invoke -l\n\nCredits\n-------\n\nTools used in rendering this package:\n\n-   [Cookiecutter](https://github.com/audreyr/cookiecutter)\n-   [cookiecutter-djangopackage](https://github.com/pydanny/cookiecutter-djangopackage)\n\nHistory\n-------\n\n### 0.2.4 (2024-07-04)\n\n-   Made optional `python-slugify` and `feedparser`\n-   Fixed documentation's build\n-   Upgrade of `django-example`\n-   Fixed old `OSMGeoAdmin` for Django 4.0 and newer\n\n### 0.2.3 (2024-07-03)\n\n-   Checked `ugettext` and `gettext` for compatibility with Django 4.0 and upper\n-   python-slugify optional, using django slugify as fallback\n-   Set django.db.models.BigAutoField\n\n### 0.2.2 (2021-06-01)\n\n-   Fixed related_name and related_query_name at AbstractOfficialArea model\n-   Updated python-slugify according its documentation\n\n### 0.2.1 (2021-03-19)\n\n-   Added BaseInspireEUModel at CadastralZoning and CadastralParcel\n-   Typo fixed AbstractCadastralParcel.national\\_cadastal\\_reference to\n    AbstractCadastralParcel.national\\_cadastral\\_reference\n\n### 0.2.0 (2021-02-26)\n\n-   First release on PyPI.\n\n### 0.1.0 (2021-02-07)\n\n-   First release on GitHub.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django implementation from the the themes of infrastructure for spatial information in Europe (INSPIRE)",
    "version": "0.2.4",
    "project_urls": {
        "Homepage": "https://github.com/xusy2k/django-inspire-eu"
    },
    "split_keywords": [
        "django-inspire-eu",
        " django",
        " gis",
        " gdal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "099d3371f372a9048719c43867e39d0af9127bb9b4e9aae220ca677c08e0d4b7",
                "md5": "242a325f072a2781b7a9dada804ad862",
                "sha256": "346ed4398c5f606cc8326e880ae1e4bd6e4f382f89d737c631134db21813d019"
            },
            "downloads": -1,
            "filename": "django_inspire_eu-0.2.4-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "242a325f072a2781b7a9dada804ad862",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 43668,
            "upload_time": "2024-07-04T10:32:24",
            "upload_time_iso_8601": "2024-07-04T10:32:24.285017Z",
            "url": "https://files.pythonhosted.org/packages/09/9d/3371f372a9048719c43867e39d0af9127bb9b4e9aae220ca677c08e0d4b7/django_inspire_eu-0.2.4-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afc10af0938781834d241ed8fc9aac7d319497afc0b366bf7875fa2fbfe7350f",
                "md5": "7b15009c00bb16b3a4fddf0ff50fc641",
                "sha256": "06036e8522858cfa08411ff9eddf513e05622ea9e1f9c35a4a7be9667b4c9739"
            },
            "downloads": -1,
            "filename": "django_inspire_eu-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "7b15009c00bb16b3a4fddf0ff50fc641",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 36928,
            "upload_time": "2024-07-04T10:32:27",
            "upload_time_iso_8601": "2024-07-04T10:32:27.731828Z",
            "url": "https://files.pythonhosted.org/packages/af/c1/0af0938781834d241ed8fc9aac7d319497afc0b366bf7875fa2fbfe7350f/django_inspire_eu-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-04 10:32:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xusy2k",
    "github_project": "django-inspire-eu",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "django-inspire-eu"
}
        
Elapsed time: 0.26528s