Skip to main content

A Python module for monitoring Air Raid Alerts in Ukraine

Project description

Air Alerts

Air Alerts is a module for monitorining Air Raid Alerts in Ukraine. The module uses a complete map of alerts that provides incredibly accurate information.

Requirements

This module is lightweight and not need many libraries. You need only 2!

  • Requests
  • Pillow

All of needed libraries will be automaticly installed on your computer while you installing Air Alerts

Usage

Getting real-time information dictionary

import AirAlerts

alerts = AirAlerts.AlertClass()
real_time_alerts = alerts.get_alerts()

print(real_time_alerts)

This code will return an dictionary of alerts. It will look like this:

{
    "kyiv": False,
    "chernivtsi_region": False,
    "ivano-frankivsk_region": False,
    "volyn_region": False,
    "zakarpattia_region": False,
    "zaporizhia_region": False,
    "zhytomyr_region": False,
    "kirovohrad_region": False,
    "kyiv_region": False,
    "luhansk_region": False,
    "lviv_region": False,
    "mykolaiv_region": False,
    "odesa_region": False,
    "poltava_region": False,
    "rivne_region": False,
    "sumy_region": False,
    "ternopil_region": False,
    "kharkiv_region": False,
    "kherson_region": False,
    "khmelnytskyi_region": False,
    "chernihiv_region": False,
    "cherkasy_region" : False,
    "donetsk_region" : False
    "vinnytsia_region" : False
    "dnipropetrovsk_region" : False
}

Getting air alerts in list

import AirAlerts

alerts = AirAlerts.AlertClass()
alerts_list = alerts.alerts_list()

print(alerts_list)

This code will return a list of alerts that will look like this: ['kyiv','kyiv_region','luhansk_region']

Thanks everybody who is supporting this project. I appreciate it! Thanks to Ukrainian Army and all Ukrainian, Polish, Romanian, American, Israel and much much more people for helping Ukraine

Ukraine is very grateful for your help. And we wish one day that all ends

License

MIT License

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AirAlerts-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

AirAlerts-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file AirAlerts-1.0.0.tar.gz.

File metadata

  • Download URL: AirAlerts-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for AirAlerts-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dbca7332b26ad9b846ac091d510b1b8989be20fda99de69116d6e3cde2abf864
MD5 b032b8441bc97034b402cd3f3bf71dd7
BLAKE2b-256 d3610300a8221ee2ce78d1310bf045ec9d8dd6f268959f322f953dbd74d49852

See more details on using hashes here.

File details

Details for the file AirAlerts-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: AirAlerts-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for AirAlerts-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a873ba7c360f967316698f1e7050b4e1ceab9ca1a4181d58ebc05a2263699b72
MD5 f682a692c990df8e3ca2495825dcd2fb
BLAKE2b-256 3cd5201130fbc893f01623e54216f909518c329387a8dafefcea98b9e5c53ce2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page