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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypn_habref_api-0.4.3-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypn_habref_api-0.4.3.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pypn_habref_api-0.4.3.tar.gz
Algorithm Hash digest
SHA256 d26ab0aa0e8299d413ddee90e8c8030802220afceb0f8e6b6b364c6c4e2e10be
MD5 e263f0196be8e03f97b5c64edb5b7986
BLAKE2b-256 e299f798ab1a2975fa87947cf85fcc3e3080fe1146172177521cd674a85a23bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pypn_habref_api-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ed541598d8f21b167cf75fab6414804ea10ad18529593dc4c8212f0b58e0065
MD5 5b6128100288019ea631205f1f58a331
BLAKE2b-256 2b2b11474a95ba594ed0cb72ec16f435da1049b4cc7f4c13d07ca25714153e43

See more details on using hashes here.

Supported by

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