Thai Covid-19 status
Project description
Covid19-Open-API
Example usage
from covid19openapi import ThaiCovid19
if __name__ == '__main__':
thai = ThaiCovid19()
today = thai.get('today')
timeline = thai.get('timeline')
all_field = thai.get_all()
print(today)
print(all_field)
You can pass your source to the constructor
also you will need to somehow register api in config.py
Default source is "covid19.th-stat.com"
Get api based on your source field. e.g.
- today
- timeline
- cases
- cases_sum
- area
requests.get is used so you can pass kwargs as documented at https://requests.readthedocs.io/en/master/user/quickstart/
REFERENCES: https://covid19.th-stat.com/
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 Distribution
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 covid19-open-api-0.0.2.tar.gz.
File metadata
- Download URL: covid19-open-api-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7d627cc93c007babb5c53d55e25cc5288f5405e81ee543e8a0c6e6a551188fa
|
|
| MD5 |
90cc22a4220c057f512c68495123f0c5
|
|
| BLAKE2b-256 |
7431cbf2a7ccd155c5ce0e53d17e52751b50ff037c826c9eef19259e98bc51c6
|
File details
Details for the file covid19_open_api-0.0.2-py3-none-any.whl.
File metadata
- Download URL: covid19_open_api-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d89ef5b241b7559e7c8472470031545cd62b7191501d85817b351710d5888515
|
|
| MD5 |
bcbacf94c9c7fddffcd6043e5bfe6501
|
|
| BLAKE2b-256 |
cfc64df194b69eb95fee06d53093ac6049f15f6c9b93521b1f0ed86f5a600fd2
|