Skip to main content

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"

Metadata

Release files for pypn-habref-api 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypn-habref-api 1.0.0
File Size Uploaded
pypn_habref_api-1.0.0.tar.gz 28.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypn-habref-api 1.0.0
File Interpreter ABI Platform
pypn_habref_api-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.8 kB

Release files / pypn_habref_api-1.0.0.tar.gz

Download URL pypn_habref_api-1.0.0.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e9bd874fa4243e51d1b840a1cb5e3405973c21bd4a7cc3d6d354ab725fe1ea72
BLAKE2b-256 checksum
How to use checksums
6b279dad9c235cc03797a998332273611d9dfe507c7cd211b29777e49cfca267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pypn_habref_api-1.0.0-py3-none-any.whl

Download URL pypn_habref_api-1.0.0-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f425b39859571ce4d0a445d54ec6c05d726805d43f1da6f1e1fac0748cf3f04a
BLAKE2b-256 checksum
How to use checksums
bf7c32d7be85d05a4df7e4ee2adac8e321746d9a3540be59ad107afd9285e95e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page