معرفی شرکت ها


covidactnow-1.1.76


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A wrapper allowing users to get specific state-based COVID statistics from the Covid Act Now database.
ویژگی مقدار
سیستم عامل -
نام فایل covidactnow-1.1.76
نام covidactnow
نسخه کتابخانه 1.1.76
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Prerit Das
ایمیل نویسنده <preritdas@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/covidactnow/
مجوز -
# Covid Act Now Database Wrapper This package is an extremely bare-bones wrapper around Covid Act Now's database of COVID-19 related information. View the PyPi project [here](https://pypi.org/project/covidactnow/), and the original post page [here](https://covidinfo.preritdas.com). Usage is simple. Install the package with `pip install covidactnow`. Instantiate a user object with your API key as an argument. You can easily generate an API key [here](https://covidactnow.org/data-api). ```python import covidactnow api = covidactnow.User(api_key = 'yourapikey') washingtonInfectionRate = api.infRate('WA') massachussettsVaxRate = api.vaxRate('MA') print(f"{washingtonInfectionRate = }") print(f"{massachussettsVaxRate = }") ``` This will result (with different data, of course): ``` washingtonInfectionRate = 1.16 massachussettsVaxRate = 76.3 ``` To view the docstring (explainer) of a particular function, use `covidactnow.User.infRate.__doc__` where `infRate` can be repalced with any other function. For example, running `print(covidactnow.User.freeBedPercentage.__doc__)` will return: `Get's the percentage of free hospital beds by state.` Depending on your IDE, hovering over a function in the editor will show the function's docstring (works in VS Code). ```python import covidactnow if __name__ == "__main__": print(covidactnow.User.infRate.__doc__) print(covidactnow.User.freeBedPercentage.__doc__) """ Result: >>> Gets today's COVID infection rate by state. >>> Get's the percentage of free hospital beds by state. """ ---- For more information on how the wrapper works, particularly how it was redesigned to be package-friendly, read the "Updated for Distribution" section of this [page](https://covidinfo.preritdas.com). Note that this version has been updated to get data from within a `User` class allowing individual API keys to be used (as opposed to defining a state as an object and defining statistics as object attributes).


نیازمندی

مقدار نام
==2.27.1 requests


نحوه نصب


نصب پکیج whl covidactnow-1.1.76:

    pip install covidactnow-1.1.76.whl


نصب پکیج tar.gz covidactnow-1.1.76:

    pip install covidactnow-1.1.76.tar.gz