Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Italian Protezione Civile data source #46

Open
andreagrandi opened this issue Apr 5, 2020 · 0 comments
Open

Add Italian Protezione Civile data source #46

andreagrandi opened this issue Apr 5, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request task This is a task that can be picked and coded

Comments

@andreagrandi
Copy link
Owner

Italian Protezione Civile publishes a very accurated dataset every day. The raw data is available at this address: https://github.com/pcm-dpc/COVID-19

To consider this task feature complete, we need:

  • create ITAPCRegion, ITAPCProvince, ITAPCNationalTrend models in db/models.py using the fields described here https://github.com/pcm-dpc/COVID-19 but translating the field names to english language (the import script will take care of mapping the original Italian name with the english name in the models)
  • create ITAPCRegion, ITAPCProvince, ITAPCNationalTrend schemas in schemas/schemas.py using the same fields and data types used for the models
  • create ITAPCCRUD class in services/crud.py
    • create get_regions_reports()
    • create get_provinces_reports()
    • create get_national_trend_reports()
  • create views in api/views.py
    • /v1/itapc/regions-reports/ --> get_regions_reports
    • /v1/itapc/provinces-reports/ --> get_provinces_reports
    • /v1/itapc/national-trend-reports/ --> get_national_trend_reports
  • create import_data_itapc.py import script to import the existing data
@andreagrandi andreagrandi added enhancement New feature or request task This is a task that can be picked and coded labels Apr 5, 2020
@andreagrandi andreagrandi self-assigned this Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request task This is a task that can be picked and coded
Projects
None yet
Development

No branches or pull requests

1 participant