Coder Social home page Coder Social logo

episcanner-downloader's Introduction

Episcanner Downloader

Episcanner Downloader is a data downloader for the Episcanner application. It retrieves data related to diseases like dengue and chikungunya and saves it in a specified directory.

Features

  • Fetches data related to diseases from the Episcanner application
  • Supports downloading data for specific diseases
  • Saves downloaded data to a designated directory

Installation

To install Episcanner Downloader, follow these steps:

  1. Clone the repository:
   git clone https://github.com/AlertaDengue/episcanner-downloader.git
  1. Navigate to the cloned directory:
   cd episcanner-downloader

Using Conda

  1. Create a Conda environment using the provided YAML file:
   conda env create -f conda/env-base.yaml
  1. conda activate episcanner
   conda activate episcanner
  1. Install the dependencies using Poetry:
   poetry install

Using a Virtual Environment (venv)

  1. Create a virtual environment:
   python -m venv env
  1. Activate the virtual environment:
   source env/bin/activate
  1. Install the dependencies using Poetry:
   poetry install

Setting Environment Variables

Before running Episcanner Downloader, make sure to set the required environment variables for connecting to the PSQL database. You can use the provided Makefile to create a .env file with the exported variables:

  1. Set the required environment variables for connecting to the PSQL database:
   export PSQL_USER=<your_psql_user>
   export PSQL_PASSWORD=<your_psql_password>
   export PSQL_HOST=<your_psql_host>
   export PSQL_PORT=<your_psql_port>
   export PSQL_USER=<your_psql_database>
  1. Create a .env file in the project root directory with the exported variables.
   make create-dotenv

Usage

To use Episcanner Downloader, follow these steps:

  1. Activate the project's virtual environment:
   source /path/to/episcanner-downloader/venv/bin/activate
  1. Run the Episcanner Downloader:
   mkdir data 
   python epi_scanner/downloader/export_data.py -s <source> -d <diseases> -o data 

Replace with the desired source (e.g., 'MG', or 'all' to download all states) and with the specific diseases you want to download (e.g., 'dengue chikungunya'). Specify the <output_directory> where the data should be saved.

License

Episcanner Downloader is licensed under the MIT License. See the LICENSE file for more details.

episcanner-downloader's People

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.