{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8" ], "description": "# Nomenclature-api-module\n\n[![pytest](https://github.com/PnX-SI/Nomenclature-api-module/actions/workflows/pytest.yml/badge.svg)](https://github.com/PnX-SI/Nomenclature-api-module/actions/workflows/pytest.yml)\n[![codecov](https://codecov.io/gh/PnX-SI/Nomenclature-api-module/branch/master/graph/badge.svg?token=KGZRGXFWCK)](https://codecov.io/gh/PnX-SI/Nomenclature-api-module)\n\nFlask (Python) module for Nomenclature API.\n\nIt is used in [GeoNature](https://github.com/PnX-SI/GeoNature) but can also be used as a standalone API service to manage and returns various nomenclatures with their hierarchy. \n\nCan be used as a standalone module or as git submodule. \n\n# Database\n\n`bib_nomenclatures_types` contains nomenclatures types list.\n\nid_type | mnemonique | label_fr | label_en | definition_fr | definition_en | source | statut | meta_create_date | meta_update_date\n------- | ---------- | -------- | -------- | ------------- | ------------- | ------ | ------ | ---------------- | ----------------\n10 | TYP_DENBR | Type de d\u00e9nombrement | Counting type | Nomenclature des types de d\u00e9nombrement possibles (comptage, estimation...) | Possible counting types (count, estimation...) | SINP | Validated | 2014-01-22 00:00:00 | 2015-12-16 00:00:00 | \n\n`t_nomenclatures` contains all nomenclatures with their type, their parent (broader) and their hierarchy.\n\nid_nomenclature | id_type | cd_nomenclature | mnemonique | label_fr | definition_fr | source | statut | id_broader | hierarchy | meta_create_date | meta_update_date | activ\n------- | ---------- | -------- | -------- | -------- | --------- | ------ | ------ | -------- | ------ | ------ | ------ | ------\n10 | 10 | 8 | T\u00eatard | T\u00eatard | Larve de batracien | SINP | Valid\u00e9 | 2 | 010.008 | 2015-07-29 00:00:00 | 2015-10-09 00:00:00 | true\n\n## Database usage\n\nGet all nomenclatures of a type :\n\n```\nSELECT *\nFROM nomenclatures.t_nomenclatures n\nWHERE n.id_type = 100 AND n.active = true\n```\n\nGet all nomenclatures of a rank of a type :\n\n```\nSELECT *\nFROM JAIPASCAPTE\n```\n\n# Usage\n\n# API\n\n* R\u00e9cup\u00e9ration des termes d'une nomenclature \u00e0 partir de l'identifiant : ```/nomenclature/6[?regne=Animalia[&group2_inpn=Bivalves]]```\n DEPRECIE\n\n* R\u00e9cup\u00e9ration des termes d'une nomenclature \u00e0 partir du code mnemonique :```/nomenclature/STADE_VIE[?regne=Animalia[&group2_inpn=Bivalves]]```\n* R\u00e9cup\u00e9ration des termes d'un ensemble de nomenclature :\n * ```/nomenclatures?id_type=22&id_type=6[®ne=Animalia[&group2_inpn=Bivalves]]``` DEPRECIE\n * ```/nomenclatures?code_type=STADE_VIE&code_type=REF_HAB[®ne=Animalia[&group2_inpn=Bivalves]]```\n\n\n# Interface d'administration des donn\u00e9es\n\n * Accessible via l'url /nomenclatures/admin\n\n# Installation\n\nCloner repository and then launch in the folder:\n\n```\npython setup.py install\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PnX-SI/Nomenclature-api-module", "keywords": "", "license": "", "maintainer": "Parcs nationaux des \u00c9crins et des C\u00e9vennes", "maintainer_email": "geonature@ecrins-parcnational.fr", "name": "pypnnomenclature", "package_url": "https://pypi.org/project/pypnnomenclature/", "platform": "", "project_url": "https://pypi.org/project/pypnnomenclature/", "project_urls": { "Homepage": "https://github.com/PnX-SI/Nomenclature-api-module" }, "release_url": "https://pypi.org/project/pypnnomenclature/1.5.1/", "requires_dist": [ "python-dotenv", "flask", "Flask-Admin", "flask-sqlalchemy", "flask-migrate", "psycopg2", "utils-flask-sqlalchemy (>=0.2.6)", "flask-marshmallow", "marshmallow-sqlalchemy", "pytest ; extra == 'tests'", "pytest-flask ; extra == 'tests'" ], "requires_python": "", "summary": "Python lib related to nomenclatures", "version": "1.5.1", "yanked": false, "yanked_reason": null }, "last_serial": 12567704, "releases": { "1.3.1.dev0": [ { "comment_text": "", "digests": { "md5": "092fef04ed993f34b6a6a4570efd80df", "sha256": "42e2c3457b4851da4f462d27b7938a86fb6b50276be00eb9a8436ab9e291ef88" }, "downloads": -1, "filename": "pypnnomenclature-1.3.1.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "092fef04ed993f34b6a6a4570efd80df", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19620, "upload_time": "2019-10-23T08:00:50", "upload_time_iso_8601": "2019-10-23T08:00:50.859436Z", "url": "https://files.pythonhosted.org/packages/dd/b8/737b7ce7c2b8b4bfd9ad2bc0391c5ff8e74cb869624c7fc2164f33e4564e/pypnnomenclature-1.3.1.dev0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b8d235117c5a1c4619d13516dae8d75c", "sha256": "70bbcc711b11af249af54922a578baaf66b18150e154cabcf008457de4ed7c02" }, "downloads": -1, "filename": "pypnnomenclature-1.3.1.dev0.tar.gz", "has_sig": false, "md5_digest": "b8d235117c5a1c4619d13516dae8d75c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6608, "upload_time": "2019-10-23T08:00:53", "upload_time_iso_8601": "2019-10-23T08:00:53.685099Z", "url": "https://files.pythonhosted.org/packages/81/28/f98e9f885e04d713aa5329a49b571fc4efe8909aae8bdc84b53e49b01626/pypnnomenclature-1.3.1.dev0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "9676a029637f2c8ef0dad54135864a13", "sha256": "7c8101bc2efec22b41ce09c523f00d64caaef15cf5176f38697265f311a44984" }, "downloads": -1, "filename": "pypnnomenclature-1.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9676a029637f2c8ef0dad54135864a13", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 74902, "upload_time": "2022-01-12T14:45:50", "upload_time_iso_8601": "2022-01-12T14:45:50.379409Z", "url": "https://files.pythonhosted.org/packages/00/09/9a1f303e55c17a6cbf35f801d90b28690d5b3293cc008204ebf7055e5610/pypnnomenclature-1.5.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "041896e8736c5dc79bd3e4970978650d", "sha256": "d5efa4ff5b5a7eb63afa5e3cf1b59ca64b0136290d6818814008cd497984cb80" }, "downloads": -1, "filename": "pypnnomenclature-1.5.1.tar.gz", "has_sig": false, "md5_digest": "041896e8736c5dc79bd3e4970978650d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 68320, "upload_time": "2022-01-12T14:45:51", "upload_time_iso_8601": "2022-01-12T14:45:51.458558Z", "url": "https://files.pythonhosted.org/packages/da/1b/e0dd06516803d8a5c6811804c0c2ddab4d3ef6f4a0fd207a2e3d52906d03/pypnnomenclature-1.5.1.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9676a029637f2c8ef0dad54135864a13", "sha256": "7c8101bc2efec22b41ce09c523f00d64caaef15cf5176f38697265f311a44984" }, "downloads": -1, "filename": "pypnnomenclature-1.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9676a029637f2c8ef0dad54135864a13", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 74902, "upload_time": "2022-01-12T14:45:50", "upload_time_iso_8601": "2022-01-12T14:45:50.379409Z", "url": "https://files.pythonhosted.org/packages/00/09/9a1f303e55c17a6cbf35f801d90b28690d5b3293cc008204ebf7055e5610/pypnnomenclature-1.5.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "041896e8736c5dc79bd3e4970978650d", "sha256": "d5efa4ff5b5a7eb63afa5e3cf1b59ca64b0136290d6818814008cd497984cb80" }, "downloads": -1, "filename": "pypnnomenclature-1.5.1.tar.gz", "has_sig": false, "md5_digest": "041896e8736c5dc79bd3e4970978650d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 68320, "upload_time": "2022-01-12T14:45:51", "upload_time_iso_8601": "2022-01-12T14:45:51.458558Z", "url": "https://files.pythonhosted.org/packages/da/1b/e0dd06516803d8a5c6811804c0c2ddab4d3ef6f4a0fd207a2e3d52906d03/pypnnomenclature-1.5.1.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }