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.4.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.4-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypn_habref_api-0.4.4.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.4.tar.gz
Algorithm Hash digest
SHA256 d74892a91213d21c5c8781cede6652484b6e067d92d78e1d49605e6cf5222043
MD5 14e69a59bf168991abf48e8d8a8ec32c
BLAKE2b-256 001016a816887f76470fad9686909e21c466962ac36aa8afe7fdf05845282a66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pypn_habref_api-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bd62fb9364f9a05d40e838f60c2d479ed3e5bd9966f6a87159288670547d9b95
MD5 c9572b4d495ed34de4b41e79cb981611
BLAKE2b-256 a21eebcf10c61692cf27bfd7317e263e3d2c55e3af2a773420f3b5c31bfc48f9

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