Skip to main content

Python lib related to Habref referential (INPN)

Project description

Habref-api-module

pytest codecov

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.2.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

pypn_habref_api-0.3.2-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file pypn_habref_api-0.3.2.tar.gz.

File metadata

  • Download URL: pypn_habref_api-0.3.2.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pypn_habref_api-0.3.2.tar.gz
Algorithm Hash digest
SHA256 3444c399e5df5e5c7280b1179c74a5eb61e33b23ee815a6afbbca9e071aba507
MD5 e4fed12d20f6bc1febaaea0211530981
BLAKE2b-256 61e61da67ecb41bd8e47950c7f235dce447aa7b49223663fc01da6abf3b0336a

See more details on using hashes here.

File details

Details for the file pypn_habref_api-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pypn_habref_api-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34ce6ffab816aad53060d14736d36f8413b0f6e5f2c9ce9302053e47dd0b6a7d
MD5 feb3b0c2865bc251dfc39c13079e0a23
BLAKE2b-256 d82c9eb0232836af6b4aaa5d96edb934a7a70fe5722ddbf1c09d1cfeae0812a7

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