A python module to check for Riot Games server status for VALORANT without an API key
Project description
valoStatus
A python module to check for Riot Games server status for VALORANT valorant server status website
If you like this please star the repo :)
If you would like to contribute to the project feel free to make a PR and fix bugs or make the code even better :D
Installation
pip install valoStatus
Requiremnts
- Python3.6 and above
- Aiohttp
Region List
NA - North America
EU - Europe
BR - Brazil
AP - Asia Pacific
KR - Korea
LATAM - Latin America
Example code (we will use NA region as an example)
Check if there is an issue with the server
"""
`self.get_status_issue()` would
return either:
True == There is an issue
False == There is no issue
"""
from valoStatus import Region
region = Region("NA")
if region.get_status_issue() == True:
# code
else:
# code
Check if the Issue is either an incident or a Maintenance
"""
`self.incident_check()` and `self.maintenance_check()` would return:
True == There is an issue.
**we are not doing False here
since we already have a check for that
via `self.get_status_issue()`**
"""
from valoStatus import Region
region = Region("NA")
if region.get_status_issue() == True:
# code
else:
if region.incident_check() == True:
# code
elif region.maintenance_check() == True:
# code
Incidents
from valoStatus import Region
region = Region("NA")
#to get the title of the incident:
print(region.incidents_title())
#to get the date of the incident:
print(region.incidents_date())
#to get the reason of the incident:
print(region.incidents_reason())
Maintenances
from valoStatus import Region
region = Region("NA")
#to get the title of the maintenance:
print(region.maintenances_title())
#to get the date of the maintenance:
print(region.maintenances_date())
#to get the reason of the maintenance:
print(region.maintenances_reason())
Links
Support
DM @D3crypt360 on Twitter
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
valoStatus-2.0.14.tar.gz
(4.0 kB
view details)
File details
Details for the file valoStatus-2.0.14.tar.gz.
File metadata
- Download URL: valoStatus-2.0.14.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0f4c67105634e17c70e5f6b2cf793842f082b2fa7dc5786e6da0810fc450ac9
|
|
| MD5 |
6d9ec0609cad1274dd859fb45a8b7cfa
|
|
| BLAKE2b-256 |
ca56e5541d59f9142b713deb6e01f7b94d567a753a8148a1578bc557ccfbee09
|