All Projects → okfn-brasil → vitimas-da-intolerancia

okfn-brasil / vitimas-da-intolerancia

Licence: LGPL-3.0 license
Conheça as vítimas de ódio político

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects
Dockerfile
14818 projects

Travis CI Codecov Code Climate

#VítimasDaIntolerância

Hate crimes monitor for political motivated assaults in Brazil.

Requires a Google account, Python 3.7 and Redis.

Settings

Basic settings are set in a .env file. You can copy .env.sample as .env and set it up according to your environment.

The repository initial setup includes a sample Google Sheets document with some data. You can copy this document and create your own. To setup the application to read a custom spreadsheet:

  • The unique ID from the Google Sheet URL is the SPREADSHEET_ID
  • The gid URL parameter Google generates when exporting each spreadsheet as CSV is the value of CASES_SPREADSHEET_GID and STORIES_SPREADSHEET_GID

Running the server

Install the dependencies with pip install -r requirements.txt and spin up the server with:

$ python run.py

If you wanna clear the cache:

$ python clear_cache.py

Contributing

Make yourself at home, write tests and format code with Black:

$ black .

Tests

Run tests with:

$ pytest
$ black . --check
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].