Python lib related to Habref referential (INPN)
Project description
Habref-api-module
API d'interrogation d'Habref : référentiel des typologies d’habitats et de végétation pour la France (https://inpn.mnhn.fr/telechargement/referentiels/habitats).
Technologies
- Python 3
- Flask
- SQLAlchemy
Installation
- Créer un virtualenv et l'activer :
virtualenv -p /usr/bin/python3 venv
source venv/bin/acticate
- Installer le module :
pip install https://github.com/PnX-SI/Habref-api-module/archive/<X.Y.Z>.zip
- Installer le schéma de base de données :
Le module est fourni avec une commande pour installer la base de données. Cette commande télécharge le référentiel Habref et créé un schéma de base de données nommé ref_habitats
.
# Depuis le virtualenv
install_habref_schema <database uri>
# Exemple :
# install_habref_schema "postgresql://geonatadmin:monpassachanger@localhost:5432/geonature2db"
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
pypn_habref_api-0.3.1.tar.gz
(25.1 kB
view hashes)
Built Distribution
Close
Hashes for pypn_habref_api-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4680b6663a5c95fc97a3175a4c0d283610f3a8c08df9f231af977f969b2f29a6 |
|
MD5 | a2a4c097733bd3d1b9940925b6d4f346 |
|
BLAKE2b-256 | 301aca62281f1f8c703be121a49d4bc5eacba55f165b28d853e8500ca30f8ec0 |