Skip to main content

Python lib related to nomenclatures

Project description

Nomenclature-api-module

pytest codecov

Flask (Python) module for Nomenclature API.

It is used in GeoNature but can also be used as a standalone API service to manage and returns various nomenclatures with their hierarchy.

Can be used as a standalone module or as git submodule.

Database

bib_nomenclatures_types contains nomenclatures types list.

id_type mnemonique label_fr label_en definition_fr definition_en source statut meta_create_date meta_update_date
10 TYP_DENBR Type de dénombrement Counting type Nomenclature des types de dénombrement possibles (comptage, estimation...) Possible counting types (count, estimation...) SINP Validated 2014-01-22 00:00:00 2015-12-16 00:00:00

t_nomenclatures contains all nomenclatures with their type, their parent (broader) and their hierarchy.

id_nomenclature id_type cd_nomenclature mnemonique label_fr definition_fr source statut id_broader hierarchy meta_create_date meta_update_date activ
10 10 8 Têtard Têtard Larve de batracien SINP Validé 2 010.008 2015-07-29 00:00:00 2015-10-09 00:00:00 true

Database usage

Get all nomenclatures of a type :

SELECT *
FROM nomenclatures.t_nomenclatures n
WHERE n.id_type = 100 AND n.active = true

Get all nomenclatures of a rank of a type :

SELECT *
FROM JAIPASCAPTE

Usage

API

  • Récupération des termes d'une nomenclature à partir de l'identifiant : /nomenclature/6[?regne=Animalia[&group2_inpn=Bivalves]] DEPRECIE

  • Récupération des termes d'une nomenclature à partir du code mnemonique :/nomenclature/STADE_VIE[?regne=Animalia[&group2_inpn=Bivalves]]

  • Récupération des termes d'un ensemble de nomenclature :

    • /nomenclatures?id_type=22&id_type=6[&regne=Animalia[&group2_inpn=Bivalves]] DEPRECIE
    • /nomenclatures?code_type=STADE_VIE&code_type=REF_HAB[&regne=Animalia[&group2_inpn=Bivalves]]

Interface d'administration des données

  • Accessible via l'url /nomenclatures/admin

Installation

Cloner repository and then launch in the folder:

python setup.py install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypnnomenclature-1.6.4.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

pypnnomenclature-1.6.4-py3-none-any.whl (81.9 kB view details)

Uploaded Python 3

File details

Details for the file pypnnomenclature-1.6.4.tar.gz.

File metadata

  • Download URL: pypnnomenclature-1.6.4.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pypnnomenclature-1.6.4.tar.gz
Algorithm Hash digest
SHA256 e140f4b9319de4b7016de34e17b0dcf1d6d960f92c762888e03bbb479abe9371
MD5 819958829247ead5a09b123c2e04d0e5
BLAKE2b-256 cf822195a04f9e7a9054eb6675be912ed6779b64f4b6a1ee827e02dae62271a6

See more details on using hashes here.

File details

Details for the file pypnnomenclature-1.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pypnnomenclature-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 139010c7f1b9196c36fd297244b0437e3f372f98d3c60e6572a7c8b0dd5f9f05
MD5 2500dde39bdbc5c5b03e422f597a6500
BLAKE2b-256 6c592b2a93f40eee5dd57948bfa2b112039afe5a3dd8175e3df19db8d67fd8fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page