Description
Kovid is a small CLI app to fetch data surrounding the coronavirus pandemic of 2019. I found myself checking Wikipedia constantly for information and since I work mostly in the terminal, like most of you, I thought I'd build this to put the data right at our fingertips.
π¦ Kovid alternatives and similar gems
Based on the "CLI Utilities" category.
Alternatively, view π¦ Kovid alternatives based on common mentions on social networks and blogs.
-
colorls
A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada: -
Ruby/Progressbar
Ruby/ProgressBar is a text progress bar library for Ruby. -
Terminal Table
Ruby ASCII Table Generator, simple and feature rich. -
colorize
Ruby string class extension. It add some methods to set color, background color and text effect on console easier using ANSI escape sequences. -
Terjira
Terjira is a very interactive and easy to use CLI tool for Jira. -
tty-progressbar
Display a single or multiple progress bars in the terminal. -
tty-spinner
A terminal spinner for tasks that have non-deterministic time frame. -
tty-command
Execute shell commands with pretty output logging and capture stdout, stderr and exit status. -
Tabulo
Plain text table generator for Ruby, with a DRY, column-based API -
tty-cursor
Terminal cursor movement and manipulation of cursor properties such as visibility -
tty-screen
Terminal screen detection - cross platform, major ruby interpreters -
circleci-cli
:cyclone: CLI client / command line tool for CircleCI -
tty-pager
Terminal output paging - cross-platform, major ruby interpreters -
TerminalImage
:desktop_computer: Show high resolution images on your terminal ! -
Sapristi
Elegant way to organize your windows in a linux multi monitor environment
Static code analysis for 29 languages.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of π¦ Kovid or a related project?
README
If you're looking to consume this in your Ruby-based application, you might want to check Sarskov out. Sarskov returns statistics in a JSON format.
π¦ Kovid
Kovid is a small CLI app to fetch data surrounding the coronavirus pandemic of 2019. I found myself checking Wikipedia constantly for information so I thought I'd build this to provide info directly in the terminal. It's where some of us spend time more.
Code contribution and ideas welcome.
βοΈ Installation
To install:
οΈ Wash your hands with soap and water for at least 20 seconds.
Run
gem install kovid
.
It's recommended you update often with gem update kovid
.
βοΈ Usage
You can run kovid --help
to see the full list of available commands.
Commands Overview
π· Fetching
kovid check COUNTRY
aliased askovid country COUNTRY
.kovid check COUNTRY -f
aliased askovid country COUNTRY --full
.
You can get continental information with the following commands:
kovid africa
.kovid europe
.kovid eu
. (The European Union)kovid sa
. (South America)kovid asia
.kovid world
. (Worldwide Statistics)
πΊπΈπΊπΈπΊπΈ
You can fetch US state-specific data:
kovid state STATE
ORkovid state "STATE NAME"
.kovid states --all
orkovid states -a
for data on all US states.
You can also use USPS abbreviations. Example: kovid state me
Provinces
You can fetch province specific data:
kovid province PROVINCE
orkovid province "PROVINCE NAME"
.
π· Comparing
kovid compare FOO BAR
(sorts by cases DESC).kovid compare FOO BAR -f
ORkovid compare FOO BAR --full
(sorts by cases DESC).
Where FOO
and BAR
are different countries.
You can compare as many countries as you want; kovid compare FOO BAR BAZ
OR kovid compare FOO BAR BAZ -f
πΊπΈπΊπΈπΊπΈ
You can compare US states with:
kovid states STATE STATE
Example:kovid states illinois "new york" california
ORkovid states il ny ca
You can compare provicnes with:
kovid provinces PROVINCE PROVINCE
Example:kovid provinces ontario manitoba
___ π· Historykovid history COUNTRY
(full history).kovid history COUNTRY N
(history in the last N days).kovid history STATE --usa
___ π· Top N (by cases/deaths for countries and US States)kovid top N
(top N countries in number of cases).kovid top N -d
ORkovid top N --deaths
(top N countries in number of deaths).kovid top N --states
(top N US states in number of cases).kovid top N --states -d
(top N countries in number of deaths). ___
NOTE: If you find it irritating to have to type kovid state STATE
, covid state STATE
works as well.
Commands Details
To fetch basic data on a country run:
kovid check ghana
. If the location contains spaces: kovid check "Diamond Princess"
For full table info on a country:
kovid check italy -f
OR kovid check italy --full
To compare country stats:
kovid compare germany poland spain
To compare a countries stats with a full table:
kovid compare poland italy usa china -f
OR kovid compare poland italy usa china --full
To fetch state-specific data run:
kovid state colorado
OR kovid state "north carolina"
To fetch EU data run:
kovid eu
To fetch data on Africa:
kovid africa
You can check historical statistics by running
kovid history italy 7
eg:
To check for total figures:
kovid world
To fetch top 5 countries in number of cases or deaths:
kovid top
kovid top --deaths
OR kovid top -d
It is also possible to fetch top US states in number of cases or deaths:
kovid top --states
kovid top --states --deaths
OR kovid top --states -d
To fetch more number of countries or US states you can pass N. eg:
kovid top 10
Data Source
JHU CSSE GISand Data and https://www.worldometers.info/coronavirus/ via NovelCOVID/API
π¨βπ» Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
π€² Contributing
There are multiple areas in this repo that can be improved or use some refactoring(there's a lot to be refactored in fact!). For that reason, bug reports and pull requests are welcome! This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
π License
The gem is available as open-source under the terms of the MIT License.
β€οΈ Code of Conduct
Everyone interacting in the Kovid project's codebases and issue trackers is expected to follow the code of conduct.
*Note that all licence references and agreements mentioned in the π¦ Kovid README section above
are relevant to that project's source code only.