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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypn_habref_api-0.4.1.tar.gz
Algorithm Hash digest
SHA256 8a906e1a9b8d1787408abe3316c4286a065628e5af79f177836046d4914beaf4
MD5 19340218f46f12c82d3bfd68927ef7e6
BLAKE2b-256 15fd780dfb7a2378cd534ad8426eef70c0c779a1435868a419c9362495b37b29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pypn_habref_api-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6795edaa1e346f24f567c965eb39d1639338f0416cb8b9a23d7ac48e66aea523
MD5 610036c0626189f6ee1839e2d10eac24
BLAKE2b-256 b63dd0f99c3f4abc062d154f0a538f3572588466f4915264f7050a8a99ff5a2a

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