Python lib related to nomenclatures
Project description
Nomenclature-api-module
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[®ne=Animalia[&group2_inpn=Bivalves]]DEPRECIE/nomenclatures?code_type=STADE_VIE&code_type=REF_HAB[®ne=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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypnnomenclature-1.6.6.tar.gz.
File metadata
- Download URL: pypnnomenclature-1.6.6.tar.gz
- Upload date:
- Size: 75.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10ffe53749ddc7249bacf19fff11eda1f17c06a93b59ef374f112ae5d17e1c54
|
|
| MD5 |
1f1641bde2201b35abafce2445e7035c
|
|
| BLAKE2b-256 |
253c3fcc7214abca283e946d541cf4068249748512fc5dce95121ec24055dbfa
|
File details
Details for the file pypnnomenclature-1.6.6-py3-none-any.whl.
File metadata
- Download URL: pypnnomenclature-1.6.6-py3-none-any.whl
- Upload date:
- Size: 83.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a6dc1028eeb2993e0e9a4c42fb2b347e48d0baba7a2d82d01e3c170aa5b0a4e
|
|
| MD5 |
577641661f135c215c718aebb3eb1b2e
|
|
| BLAKE2b-256 |
58a350edfc72ee5fb2efe5965955609b0dac36038193b8b67a9581a275c244a6
|