Skip to main content

# Pyris

IRIS INSEE geolocalization

Pyris try to collect data about IRIS from the French INSEE institute

## Data

IRIS shapes at https://www.data.gouv.fr/fr/datasets/contour-des-iris-insee-tout-en-un/

Get and insert data with:

  • data/download_data.sh

  • data/insert_data.sh

Data will be stored in a PostgreSQL database with the PostGIS extension. The name of database is pyris but you can change it in the insert_data.sh.

You need to install PostgreSQL, PostGIS. For Debian:

sudo apt-get install postgresql postgis

Test the insertion with a simple:

`sql SELECT gid,depcom,nom_com,iris,typ_iris FROM geoiris LIMIT 10; `

## REST API

You can:

  • URL/iris/2386 to the some information about a specific IRIS code

  • URL/search/lon=-0.58961&lat=43.26079 to get the IRIS code and related content from a coordinate

## Launch the Web App

Specify the path to the YAML configuration file. Don’t forget to set the user/password for the database access.

export PYRIS_APP_SETTINGS=/path/to/app.yml

See an [example of a app.yml file](https://github.com/garaud/pyris/blob/master/app.yml)

## Requirements

  • postgresql

  • postgis

  • flask

  • flask restplus

  • psycopg2

  • pyaml

Metadata

Release files for pyris 0.2

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

Source distribution (sdist)

Source distribution for pyris 0.2
File Size Uploaded
pyris-0.2.tar.gz 7.3 kB Details

Release files / pyris-0.2.tar.gz

Download URL pyris-0.2.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fb084f671a3fa52f3c75b9e48bf78d8378a861162a3dde73d915bb751572d125
BLAKE2b-256 checksum
How to use checksums
12e74505474e447899f61f233629466aa508e052cb8826e7336a0463d64a516d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7.1

2 release files

0.7

2 release files

0.6

2 release files

0.5

1 release file

0.4

1 release file

0.3

1 release file

This release

0.2 This release

1 release file

0.1

1 release file

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