Skip to main content

A command line tool to fetch worldwide data about Corona Virus

Project description

coronapy-cli

Track the Coronavirus disease (COVID-19) in the command line.

  • 🚀 Get worldwide Coronavirus disease (COVID-19) reporting
  • 🤯 Active daily reporting of your country's COVID-19 statistics
  • 🗃️ Data: Country, Cases, Deaths, Recovered, Active, Critical

Install

pip install coronapy-cli

Project Structure

├───coronapy
│    ├───lib
│       ├───__init.py__
│       ├───color.py
│       ├───get_countries.py
│       ├───get_country.py
│       └───get_world_wide.py
│    ├───__init__.py
│    └───cli.py
├───.gitignore
├───LICENSE.txt
├───READMR.md
├───setup.cgd
└───setup.py

Usage

Worldwide Information

# Display data for Worldwide Cases.
coronapy all

# Display a chart of Total Cases, Total Deaths and Recovered Cases.
coronapy all --chart

# Alias: Display  a char.
coronapy all -c

All Countries

# Display data for all countries.
coronapy countries

# Sort data by type, the default type is 'cases'.
coronapy countries --sort cases

# Alias: Sort data by type.
corcoronapyona countries -s recovered

Single Country

# Display data for given country.
coronapy country <country_name>

# Display a chart of Total Cases, Total Deaths and Recovered Cases for given country i.e. China.
coronapy country China --chart

# Alias: Display  a char.
coronapy country China -c

# Display a histogram shows cases or deaths data in last 20 day for given country i.e. USA.
coronapy country usa --hist

# You can set what kind of data (cases or deaths), the default is 'cases'.
coronapy country usa --hist --type deaths

# Alias:
coronapy country usa -h -t cases

Sort Data

# All sorting parameters.
coronapy countries -s country
coronapy countries -s cases
coronapy countries -s todayCases
coronapy countries -s deaths
coronapy countries -s todayDeaths
coronapy countries -s recovered
coronapy countries -s active
coronapy countries -s critical

CLI Help

# Display the help data.
coronapy --help

Contributing

Give us a star, Fork repo & make a PR.

Authors

  • MouadBH

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coronapy-cli-1.2.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

coronapy_cli-1.2.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file coronapy-cli-1.2.2.tar.gz.

File metadata

  • Download URL: coronapy-cli-1.2.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for coronapy-cli-1.2.2.tar.gz
Algorithm Hash digest
SHA256 f4e030b7ec9477ee3e5a99d955407a980a481ce54f7bdc40a021019f735f0b5c
MD5 2402d45fe2c694cecc7eaed6f7b11682
BLAKE2b-256 9b518a1a37bd4c3904c825584927d36779dd7a70be6ae86144c8f3d9bb413c09

See more details on using hashes here.

File details

Details for the file coronapy_cli-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: coronapy_cli-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for coronapy_cli-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c20c7f4fcda14eedd688b590b32bb1ebffc35b327c7254615afe92a4bd1be3ab
MD5 f0d07328b23c97dff9e04d5488ec5dc1
BLAKE2b-256 8ef8bc362dd3563a24d330f39a16664c6eb980b5f3c9e97ab03f255f16a4056e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page