radu-diaconescu13 / catpol-declaratii

Crowd sourcing implementation of Moonsheep platform for Romanian asset declarations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catalog politic - Declaratii de avere GitHub contributors GitHub last commit License: MPL 2.0

code for romania twitter code for romania facebook

  • MAKING PUBLIC INFORMATION TRULY PUBLIC
  • data from asset declarations, including a net worth estimation

Important! This project is currently out of sync with the latest version of Moonsheep, a library that it is dependent on. In order for development to continue, we must first fix this critical issue.

Currently, in Romania, public information on elected officials is spread on a multitude of media, in a multitude of formats and requires a priori knowledge of the sources where data resides, making it hard, if not impossible for a regular citizen to make sense of the data.

Furthermore, no comprehensive analysis of data on elected officials can be attempted, as most of it is not digitised, hence not in an open format.

Catalog Politic is powered by the desire to centralise all public information on elected representatives and lower the information cost necessary for citizens, making public information truly public. For this end we are digitising hundreds of thousands of asset declarations, scrapping dozens of official websites and manually collecting data where no automation is possible.

Citizens, who want to find out more about their representatives, but lack the time, energy and know-how to find all the relevant data will gain access to in-depth information in a friendly and easy to digest format.

The platform will help journalists, watchdogs and researchers identify and verify information on elected officials. The data provided will offer an unprecedented starting point for in-depth analysis.

Catalog Politic - Declaratii de avere - aims to automate the process of parsing and extracting information from asset declarations of Romanian politicians and public figures, by providing a user friendly platform for volunteers to extract and map information to a fixed datamodel. The implementation is based on Moonsheep framework.

Built with | Repos and projects | Deployment | Contributing | Feedback | License | About Code4Ro

Built With

Django
Moonsheep

Programming languages

Python 3.5+
Please follow the Python style guide.

Platforms

Political Catalogue - Asset Declaration is a web application.

Frontend framework

Django

Package managers

Pip

Database technology & provider

This remains currently undecided.

Repos and projects

Moonsheep on GitHub
PyBossa on GitHub

Deployment

Installation process

  • Fork this repo
  • Clone your fork
  • Open the directory where you have cloned the repo (cd catpol-declaratii)
  • Optionally, you can create a virtual environment named "venv": python3 -m venv venv and then activate it: source venv/bin/activate
  • pip install -r requirements-dev.txt
  • export DJANGO_SETTINGS_MODULE=project_template.settings.dev
  • python manage.py migrate --run-syncdb
  • python manage.py runserver

Using Dockerfile:

  • Install docker
  • Fork this repo
  • Clone your fork
  • Open the directory where you have cloned the repo (cd catpol-declaratii)
  • Run the following command to create a Docker image for the project docker build -t catpol
  • Run the following command to run the Docker image docker run -p 8000 catpol
  • Show the container id running the catpol image docker ps
  • Inspect the container to get the host port docker inspect <container_id>, you should see something like:
            "Ports": {
                "8000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "32769"
                    }
                ]
            },
  • Connect to specified port on localhost and enjoy the solution

Contributing

If you would like to contribute to one of our repositories, first identify the scale of what you would like to contribute. If it is small (grammar/spelling or a bug fix) feel free to start working on a fix. If you are submitting a feature or substantial code contribution, please discuss it with the team and ensure it follows the product roadmap.

Our collaboration model is described here.

Get familiar with some basic coding guidelines.

Debugging

As you develop this app, you will surely add / remove / change database models (Django Models).
In order for your local server to acknowledge these changes, you will need to migrate your new structure.
During the development stage, while you're still testing things out and you don't care about the data in your local sqlite database, the following quick hack will update your models and clean the test database data:

rm  project_template/migrations/*
rm db.sqlite3
python manage.py makemigrations
python manage.py migrate --run-syncdb

Feedback

  • Request a new feature on GitHub.
  • Vote for popular feature requests.
  • File a bug in GitHub Issues.
  • Email us with other feedback contact@code4.ro

License

This project is licensed under the MPL 2.0 License - see the LICENSE.md file for details

About Code4Ro

Started in 2016, Code for Romania is a civic tech NGO, official member of the Code for All network. We have a community of over 500 volunteers (developers, ux/ui, communications, data scientists, graphic designers, devops, it security and more) who work pro-bono for developing digital solutions to solve social problems. #techforsocialgood. If you want to learn more details about our projects visit our site or if you want to talk to one of our staff members, please e-mail us at contact@code4.ro.

Last, but not least, we rely on donations to ensure the infrastructure, logistics and management of our community that is widely spread accross 11 timezones, coding for social change to make Romania and the world a better place. If you want to support us, you can do it here.

About

Crowd sourcing implementation of Moonsheep platform for Romanian asset declarations.


Languages

Language:Python 85.3%Language:HTML 13.0%Language:Dockerfile 1.0%Language:CSS 0.6%