Coder Social home page Coder Social logo

top-amendements-adoptes's Introduction

Baromètre amendements adoptés L'Hémicycle

  • Dépendances :
  sudo apt-get install pip
  sudo pip install virtualenv virtualenvwrapper
  source $(which virtualenvwrapper.sh)
  mkvirtualenv --no-site-packages baro-amdmts
  workon baro-amdmts
  pip install -r requirements.txt
  add2virtualenv .
  deactivate
  • Pour générer toutes les données et la version agrégée :
  python build_tops.py deputes
  python build_tops.py senateurs
  • Pour générer les données d'un mois :
  python build_month.py deputes 1501
  python build_month.py deputes 1209
  python build_month.py senateurs 1305
  • Pour générer les données cumulées entre 2 mois :
  python build_month.py deputes 1707 1709
  python build_month.py senateurs 1707 1709
  • Pour configurer l'envoi automatique du mail :
  cp config.sh{.example,}

Éditer les champs TEST_EMAILS et DEST_EMAILS et rêgler deux cron du type:

00 11  7 * *  <PATH TO REPO>/send_monthly_mail.sh
00 11  9 * *  <PATH TO REPO>/send_monthly_mail.sh 1 

Données issues de NosDéputés.fr et NosSénateurs.fr par Regards Citoyens sous licence ODBL pour le mensuel L'Hémicycle.

top-amendements-adoptes's People

Contributors

rc-bot avatar rouxrc avatar fmassot avatar teymour avatar

Stargazers

 avatar Arno Gaboury avatar  avatar

Watchers

Nicolas Joyard avatar James Cloos avatar  avatar  avatar  avatar  avatar

Forkers

fmassot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.