-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
149 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include src *.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,35 @@ | ||
# Habref-api-module | ||
|
||
API d'interrogation d'Habref: référentiel des Habitat de l'INPN : https://inpn.mnhn.fr/telechargement/referentiels/habitats | ||
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 | ||
------------ | ||
## Technologies | ||
|
||
* Python 3 | ||
* Flask | ||
* SqlAlchemy | ||
- Python 3 | ||
- Flask | ||
- SQLAlchemy | ||
|
||
Installation | ||
------------ | ||
## Installation | ||
|
||
* Créer un virtualenv et l'activer | ||
- Créer un virtualenv et l'activer : | ||
|
||
:: | ||
``` | ||
virtualenv -p /usr/bin/python3 venv | ||
source venv/bin/acticate | ||
``` | ||
|
||
virtualenv -p /usr/bin/python3 venv | ||
source venv/bin/acticate | ||
- Installer le module : | ||
|
||
* Installer le module | ||
``` | ||
pip install https://github.com/PnX-SI/Habref-api-module/archive/<X.Y.Z>.zip | ||
``` | ||
|
||
:: | ||
|
||
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``. | ||
|
||
* 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ée un schéma de base de données nommé `ref_habitat` | ||
|
||
:: | ||
|
||
# depuis le virtualenv | ||
install_habref_schema <database uri> | ||
# ex: | ||
# install_habref_schema "postgresql://geonatadmin:monpassachanger@localhost:5432/geonature2db" | ||
``` | ||
# Depuis le virtualenv | ||
install_habref_schema <database uri> | ||
# Exemple : | ||
# install_habref_schema "postgresql://geonatadmin:monpassachanger@localhost:5432/geonature2db" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.2 | ||
0.1.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.