NSW Covid Data
NSW Health does not provide an API for accessing current Covid cases, vaccinations and related information. This is a screen scaper to facilitate programmatic access.
Look how easy it is to use:
import logging
import asyncio
from nswcovid import NSWCovid
_logger = logging.getLogger(__name__)
loop = asyncio.get_event_loop()
covid = NSWCovid(loop=loop)
def event_receiver(event_type=None, statistic_id=None, statistic=None, ts=None):
_logger.debug(event_type)
_logger.debug(statistic_id)
_logger.debug(statistic)
_logger.debug(ts)
async def get_data():
await covid.refresh()
covid.track(event_receiver=event_receiver)
loop.run_until_complete(get_data())
Home Assistant
These library is primarily for the Home Assistant integration https://github.com/troykelly/homeassistant-au-nsw-covid
Features
Easy access to Covid data
Event push on change
Installation
Install NSWCovid by running:
install nswcovid
Contribute
Issue Tracker: https://github.com/troykelly/python-nswcovid/issues
Source Code: https://github.com/troykelly/python-nswcovid
Support
If you are having issues, please create an issue.
Metadata
Release files for nswcovid 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nswcovid-0.2.2.tar.gz | 43.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nswcovid-0.2.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 72.4 kB
Release files / nswcovid-0.2.2.tar.gz
| Download URL | nswcovid-0.2.2.tar.gz |
|---|---|
| Size | 43.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c764f040d432591e905d962a299d954ef3c0d929fd31a3b525e36659efc7f59
|
|
BLAKE2b-256 checksum How to use checksums |
a4e8e12f0ae729d151aeea5c58152893c500481c7175b764b304a0020a6375de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / nswcovid-0.2.2-py2.py3-none-any.whl
| Download URL | nswcovid-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c0f6d102315f8e4187d7151cf7b946fdaac5d424d3953358549be66f92426baa
|
|
BLAKE2b-256 checksum How to use checksums |
ebdd5b72c8879d23b23742b00f578ca1d26a98141db41da229683a6434f6ecfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|