Git Product home page Git Product logo

anksh1997 / covid19-cli Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 4.0 513 KB

A CLI for getting covid-19 coronavirus status of your district or state or country at lightning speed right on your terminal built using https://api.covid19india.org.

License: MIT License

Python 97.58% Shell 2.42%
covid19-india covid19 python cli covid-19-tracker coronavirus coronavirus-tracking india command-line-tool covid19-data

covid19-cli's Introduction

Don't Forget To Update Covid19-Cli Frequently, Thank You For Using

Use pip install -U covid19-cli or pip install covid19-cli==x.y.z x.y.z is the latest version

Covid19-Cli

        A CLI application for getting covid-19 coronavirus 👾 status of your country, state or district at lightning ⚡ speed right on your terminal 💻 built using https://api.covid19india.org.

        Made with ❣️ using Python3.

PyPI version PyPI - Downloads

image

Dependencies

Installation (Not for development)

  • Note: Please update globally installed package frequently. 😇
  • Installing from pypi
    • pip install covid19-cli (use pip for Python3)
    • Already installed ?
  • Installing Manually :
    • git clone https://github.com/asprazz/covid19-cli.git
    • cd covid19-cli
      • Option 1:
        • (if windows) pip install .
        • (if linux/mac) sudo pip install . -H
      • Option 2:
        • (optional for linux users) if requires chmod +x install.sh
        • then run scripts/./install.sh

Usage

  • covid19 -e or covid19 --emergency : for printing emergency numbers
  • covid19 -h or covid19 --help : for printing emergency numbers
  • covid19 {COUNTRY} :
    • covid19 World : for whole World's status world is special keyword
    • covid19 India or covid19 Ind or covid19 In : for India's status
    • covid19 USA or covid19 Us : for Fetching Usa's status
    • covid19 UK or covid19 GBR : for Fetching UK's status
    • covid19 World -a or covid19 World --all : for Fetching all countries at once
    • covid19 India -a or covid19 India --all : for Fetching all states at once (alternative to covid India -s mh)
    • For fetching states in India (only for India)
      • covid19 India -s maharashtra or covid19 Ind -s=maharashtra : for both country's and state's status
      • covid19 India -s mh : will work the same way
      • covid19 India -s all or covid19 In -s=ALL : for all states of India
  • See CODES.md (https://github.com/asprazz/covid19-cli/blob/master/CODES.md)
  • See Documentation (https://github.com/asprazz/covid19-cli/blob/master/docs/)

Contributing Guidelines

Development

  • Please, follow the contributing guidelines
  • Fork the repository and clone it to your local environment
  • Activate environment if any ( venv or conda for more details )
  • Running covid19
    • Running locally
      • cd covid19-cli
      • python covid19/__main__.py
    • Installing globally from your local repository
      • cd covid19-cli
        • Option 1:
          • (if windows) pip install .
          • (if linux/mac) sudo pip install . -H
        • Option 2:
          • (optional for linux users) if requires chmod +x install.sh
          • then run scripts/./install.sh
        • option 3:
          • python setup.py install
  • Fix 🔧 something broken or Build 🔨 something interesting
  • Don't forget to target develop branch only

Contributing Guidelines

Development

  • Please, follow the contributing guidelines
  • Fork the repository and clone it to your local environment
  • Activate environment if any ( venv or conda for more details )
  • Running covid19
    • Running locally
      • cd covid19-cli
      • python covid19/__main__.py
    • Installing globally from your local repository
      • cd covid19-cli
        • Option 1:
          • (if windows) pip install .
          • (if linux/mac) sudo pip install . -H
        • Option 2:
          • (optional for linux users) if requires chmod +x install.sh
          • then run scripts/./install.sh
        • option 3:
          • python setup.py install

Error reports

Special Thanks To Covid19India

Contributors

covid19-cli's People

Contributors

anksh1997 avatar kulkarnisuraj avatar naaru-01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

covid19-cli's Issues

Create CODES.md Fiile

Thank you for brainstorming
Is your feature request related to a problem? Please describe.
Its not actually a problem its an enhancement
In both of the APIS we are using some code words like
covid19 India --state mh llike MH here
or
covid19 Gbr like GBR here (Great Britain)

Describe the solution you'd like
We will like to have CODES.md

Save CODES.md file either on root or in docs/ folder
but don't forget to give link in README.md

Modify README.md file

  • The README.md file is quite boring and incomplete
  • Update the file according to your creativity

Date wise increment details

Thank you for brainstorming
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

number formatting doesn't work , locale setting unsupported

Describe the bug
whenever tried to run the program I get an error saying
locale setting unsupported . Maybe related to number formatting on windows

To Reproduce
Steps to reproduce the behaviour:

  1. change working directory to covid19-cli
  2. run python covid19/__main__.py india

Expected behaviour
should display the data properly

Screenshots

locale bug

Desktop (please complete the following information):

  • OS: Windows 10
  • Terminal : git bash

Additional context
I think the problem is with locale.setlocale() on windows

Update Screenshot

Describe the bug

After fixing issue #14
We need a brand new screen shot in Readme.md

Indian comma for any number printed

Thank you for brainstorming
You are welcome. Thank you too, for making this.
Is your feature request related to a problem? Please describe.
It is always difficult to gauge how many lakh, crore people are affected. Say 533088
Describe the solution you'd like
Ensure Indian style commas. For example, write 533088 as 5,33,088
Describe alternatives you've considered
If not possible 533,088 American style numbering would be bearable too.
Additional context

Not necessary

World status fetcher (same as country's) but with all the countries

Thank you for brainstorming
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Content is misPlaced on windows command prompt

Describe the bug
Colouring isn't happening on windows.
Need to improve the code Or need an alternate approach to colour the output

Expected behavior
Coloured output should be there.

Screenshots
IMG_20200404_183430_400

Desktop (please complete the following information):

  • OS: [Windows]
  • Terminal [Microsoft CMD]

first digit is missing

Describe the bug
The first digit is missing in every number.

To Reproduce
Steps to reproduce the behavior:

  1. covid19 India -s Maharastra

Expected behavior
image

A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [Linux (Ubuntu)]
  • Terminal bash

Additional context
It seems that fixing the Indian comma #14 issue caused this.

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.