An API wrapper for Pikud Haoref's unofficial rocket API.
Project description
PikudHaoref.py
An API wrapper for Pikud Haoref's unofficial rocket API written in python.
Features
- Very easy to use and user friendly.
- Object Oriented.
- Detect sirens in real time. (MORE COMING SOON)
Installation
Installing discordSuperUtils is very easy.
python -m pip install pikudhaoref.py
Examples
Siren detector example
import pikudhaoref
client = pikudhaoref.Client(update_interval=2)
print(client.history()) # client.history returns sirens that happened in the last 24 hours.
print(client.get_current_sirens()) # Returns the current sirens
@client.event()
def on_siren(sirens):
print(f"Siren alert! started sirens: {sirens}")
@client.event()
def on_siren_end(sirens):
print(f"Sirens {sirens} have ended.")
TODO
- Add multi language support.
- Add another version of history command.
Known Issues
- Currently, None!
Incase you do find bugs, please create an issue or a PR.
Support
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
pikudhaoref.py-0.0.3.tar.gz
(4.3 kB
view hashes)