Skip to content
/ rosie Public
forked from okfn-brasil/rosie

🤖 Python application responsible for Serenata de Amor's intelligence

License

Notifications You must be signed in to change notification settings

danjesus/rosie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rosie, the robot

Build Status Code Climate Coverage Status

A Python application reading receipts from the Quota for Exercising Parliamentary Activity (aka CEAP) from the Brazilian Chamber of Deputies and outputs, for each of the receipts, a probability of corruption and a list of reasons why it was considered this way.

Running

With Docker

$ docker build -t rosie .
$ docker run --rm -v /tmp/serenata-data:/tmp/serenata-data rosie

Then check your /tmp/serenata-data/ directory in you host machine for irregularities.xz.

Without Docker

Setup

$ conda update conda
$ conda create --name serenata_rosie python=3
$ source activate serenata_rosie
$ ./setup

Running

$ python rosie.py run

A /tmp/serenata-data/irregularities.xz file will be created. It's a compacted CSV with all the irregularities Rosie is able to find.

Also a target directory (where files are saved) can de passed — for example:

$ python rosie.py run /my/serenata/directory/

Test suite

$ python rosie.py test

About

🤖 Python application responsible for Serenata de Amor's intelligence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%