Skip to main content

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


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.3.6.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

ERLC-1.3.6-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

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