An API wrapper for the ERLC API
Project description
ERLC Client Example
Setting Up
Initialize the ERLC Client
import asyncio
import logging
from ERLC.erlc import client
erlc_client = client()
Connect to the ERLC Client
server_key = 'your_server_key'
global_key = 'your_global_key'
await erlc_client.config(server_key, global_key)
if erlc_client.connected:
print("Connected to ERLC!")
else:
print("Failed to connect to ERLC.")
Example Usage
server_key = 'your_server_key'
global_key = 'your_global_key'
await erlc_client.config(server_key, global_key)
if erlc_client.connected:
print("Connected to ERLC!")
else:
print("Failed to connect to ERLC.")
bans = await erlc_client.server.bans()
print(bans)
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
ERLC-1.2.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
ERLC-1.2.2-py3-none-any.whl
(2.9 kB
view hashes)