Asynchronous wrapper for Pacifices Cloud.
Project description
Version 1 is not compatible with 0.1.0
Index
Install
- Pypi:
pip3 install aiopes
- Git:
pip3 install git+https://github.com/WardPearce/aiopes.git
Example
import asyncio
import aiopes
PES = aiopes.client(
api_key="..."
)
async def example():
try:
async for data, server in PES.servers():
print(data.id)
server_target = server
except aiopes.exceptions.InvalidAuthorization:
print("Invalid API Key.")
else:
async for location in PES.locations():
print(location.city)
async for group in PES.mapgroups():
print(group.name)
for map_details in group.maps():
print(map_details.name)
print(await PES.mods())
print(await PES.plugins())
print(await PES.tickrates())
async for gamemode in PES.gamemodes():
print(gamemode.name)
async for file in PES.files():
print(file.name)
if await PES.validate.settings(rcon="new_rcon"):
print("Setting is valid")
loop = asyncio.get_event_loop()
loop.run_until_complete(example())
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
aiopes-1.0.0.tar.gz
(7.2 kB
view details)
Built Distribution
aiopes-1.0.0-py3-none-any.whl
(23.0 kB
view details)
File details
Details for the file aiopes-1.0.0.tar.gz
.
File metadata
- Download URL: aiopes-1.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b9069e72c96101232b69507b27689e0b2b46851cc240ae138baa8509a65c66 |
|
MD5 | bbb59aa30a43fdb252cfb762ee713517 |
|
BLAKE2b-256 | 9cdf24e791b401735c2a3d6484b0b8d3888dd24188989061373b1a478e0095dc |
File details
Details for the file aiopes-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: aiopes-1.0.0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aca29b6fbefb7de823299cbdcf35dd2f1bba91e82d1e4c2613e62780b16178a |
|
MD5 | 13246719946fd40380a1fbe7519c80ff |
|
BLAKE2b-256 | 678b08412563d6d4628d2f4f8e20408fc38b05b4b03bc0c0f29e3cf387efbe43 |