Covid-19 api wrote by python, you can get the covid-19 data from China and the world
Reason this release was yanked:
This verson is EOL
Project description
Pyeumonia
A covid-19 api to get the latest data from DXY.
Chinese user can see README-zh_CN.md.
中国用户可以访问README-zh_CN.md.
How to install
install pypi package:
pip install pyeumonia
Configurations
If you have already installed pyeumonia and it's newer than 0.1.0a0, it will automatically check for updates, you can also configure it by following the steps below to let it automatically update.
from pyeumonia.pyeumonia import Covid
covid = Covid(check_upgradable=True, auto_update=True)
If you don't want to check updates automatically, you can configure like this.
from pyeumonia.pyeumonia import Covid
covid = Covid(check_upgradable=False)
If you want to upgrade it manually, you can use pip install --upgrade pyeumonia.
Usage
Get the latest data from the world:
from pyeumonia.pyeumonia import Covid
covid = Covid(language='en_US')
data = covid.world_covid_data()
Get timeline data from a country:
from pyeumonia.pyeumonia import Covid
covid = Covid(language='en_US')
# Get covid-19 data from Japan in the last 30 days
data = covid.country_covid_data(country_name='Japan', show_timeline=30)
Open Source license
The project is open source and licensed under the GNU GPL v3 license. If you want to use it, please obey these license:
- You can use the project for your python projects.
- You can modify and redistribute the project, but you must use GPLv3 license and keep the author's name in your source code.
- For any purpose, this program is forbidden to use for commercial use, including but not limited to enterprise website, business application, business promotion.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyeumonia-0.1.1a0.tar.gz.
File metadata
- Download URL: pyeumonia-0.1.1a0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
195548a970eacad3b4315fff121dab5a235d3d29b3a80ad3028b4e88ea56f2ac
|
|
| MD5 |
c6ac7909da571282b336475e74efbcdb
|
|
| BLAKE2b-256 |
9062cb21c2cd30c496f191757830956f4ed5f4ac88fd2f86823b52823afab4c4
|
File details
Details for the file pyeumonia-0.1.1a0-py3.10.egg.
File metadata
- Download URL: pyeumonia-0.1.1a0-py3.10.egg
- Upload date:
- Size: 1.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775571edd46dd84e75c011ef5b81547f85633aac9e9d0e7c0d405263c71c56b7
|
|
| MD5 |
694aa557059a02618006780eb37f9058
|
|
| BLAKE2b-256 |
bee174ba3dc965fdbf04d9b2268502c224b5b3252e0a6a38f50ad66d6c77e5c2
|
File details
Details for the file pyeumonia-0.1.1a0-py3-none-any.whl.
File metadata
- Download URL: pyeumonia-0.1.1a0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7898df453fefcc15750ca5ad588ba45d05e76ca308948f820a91726e79065d4d
|
|
| MD5 |
11f311b913f207263b3fb9b1639ac232
|
|
| BLAKE2b-256 |
eaaa3dd8cadc47f659048daab88dc12d4819fa5cb40f5b2e6e3eefe98f099734
|