Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

INSEE/IRIS geolocalization

Project description

# Pyris

IRIS INSEE Geolocalizer

Pyris try to collect data about [IRIS]( from the French [INSEE]( institute. It’s possible from an address to find the IRIS code and some related data.

[IRIS]( are specific codes and data related to more than 50,000 districts, built by the [National Institute of Statistics and Economic Studies](

## Interactive Map


## REST API documentation


For instance, you can:

  • URL/iris/0104?limit=5 to the some information about a specific IRIS code
  • URL/search/q=place de la bourse Bordeaux to get the IRIS data from a specific address

## Data

IRIS shapes at

Go to the data directory and then:

  • ./

You have to install postgreSQL and PostGIS. For Debian:

sudo apt-get install postgresql postgis

Create a database name pyris with:

  • and to insert data

You have to be a PostgreSQL superuser to create the postgis extension for your database. If it’s not the case, you can do:

  • su
  • su - postgres
  • psql pyris -c “CREATE EXTENSION postgis;”

Test the insertion with a simple:

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

## Launch the Web App

First, download the few CSS & JavaScript dependencies with a bower install (just a Bootstrap and jQuery).

Then : > gunicorn -b or > gunicorn -b –env PYRIS_APP_SETTINGS=./appdev.yml if you have to specify db credentials or logging Flask app configuration.

See an [example of a app.yml file](

Visit http://localhost:5555/pyris

## Requirements

  • postgresql
  • postgis
  • flask
  • flask restplus
  • psycopg2
  • slumber
  • pyaml

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyris-0.6-py3-none-any.whl (866.3 kB) Copy SHA256 hash SHA256 Wheel py3 Mar 8, 2018
pyris-0.6.tar.gz (850.1 kB) Copy SHA256 hash SHA256 Source None Mar 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page