tavosPy
Processes water outages from Tavos and provides them in a object with proper types
Example usage
Print raw data
tavospy = TavosPy()
tavospy.update()
print(tavospy.getData())
Print data in human readable format
tavospy = TavosPy()
tavospy.update()
for waterOutage in tavospy.getData():
printString = ""
if(waterOutage['date']['start']):
printString = printString + waterOutage['date']['start'].strftime("%d.%m.%Y %H:%M")
if(waterOutage['date']['end']):
printString = printString + " - " + waterOutage['date']['end'].strftime("%d.%m.%Y %H:%M")
printString = printString + ": "
if(waterOutage['city'] != ""):
printString = printString + waterOutage['city']
if(waterOutage['street'] != ""):
printString = printString + " (" + waterOutage['street'] + ")"
if(waterOutage['typeOfDefect'] != ""):
printString = printString + " - " + waterOutage['typeOfDefect']
if(waterOutage['notes'] != ""):
printString = printString + " (" + waterOutage['notes'] + ")"
print(printString)
Disclaimer
Project and/or author is in no way associated with Tavos and provides this code completely free, according to LICENSE file.
Metadata
Release files for tavosPy 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tavosPy-0.5.tar.gz | 3.8 kB | Without provenance | Details for tavosPy-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tavosPy-0.5-py3-none-any.whl | Python 3 | none | any | Details for tavosPy-0.5-py3-none-any.whl |
Total release size: 7.8 kB
Release files / tavosPy-0.5.tar.gz
| Download URL | tavosPy-0.5.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
848b62abc255c44258b8737b5e389b2366bc41b1cb29e0da075fa3edc6436dd6
|
|
BLAKE2b-256 checksum How to use checksums |
3f32b971dd0cef1f9790cbf60004cff5812c9de2f282122a42097a8ed1013913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.26.0 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.13
|
Release files / tavosPy-0.5-py3-none-any.whl
| Download URL | tavosPy-0.5-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7de66886b4c677274a4caa14764dcd8f562cb2d193b97e41ac7d7814c5da601a
|
|
BLAKE2b-256 checksum How to use checksums |
509ec327c4777b2b2cd46382132ac044701c5f577320296c9f28d8a19efba439
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.26.0 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.13
|
Security for tavosPy 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.