Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Cube for elections data from

Project Description


Cube for elections data from


Create an instance:

cubicweb create elections my_instance_elections

Create the database:

cubicweb db-create my_instance_elections

Do not launch the db-init

Insert postgis:

psql my_instance_elections -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
psql my_instance_elections -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql

Finish the db initialization:

cubicweb db-init my_instance_elections

Push the osm data (see README of osmfrance cube for more details):

  • Shapefiles are taken from (also shared on

  • Launch the command:

    cubicweb-ctl osmfrance_import_shp my_instance_elections --regions=/path/to/osm/dataosm/ --departements=/path/to/osm/dataosm/ --arrondissements=/path/to/osm/dataosm/  --epci=/path/to/osm/dataosm/ --communes=/path/to/osm/dataosm/

Push the elections data:

cubicweb-ctl elections-import my_instance_elections

Rebuild the FTI index:

cubicweb-ctl db-rebuild-fti my_instance_elections

Release History

This version
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
(17.5 kB) Copy SHA256 Hash SHA256
Source None Dec 12, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers