Skip to main content

Python API Client for https://lolz.live/ & https://lzt.market/ & https://antipublic.one/

Project description

🚀 Installation

Install the package using pip:

pip install LOLZTEAM

Also you can download the package from here and install it manually.

pip install LOLZTEAM-<version>.tar.gz or pip install LOLZTEAM-<version>.whl

💻 Usage

Import the required modules and initialize the API clients:

from LOLZTEAM.Client import Forum, Market, Antipublic
from LOLZTEAM.Client.Base import Constants
import asyncio

token = "your_token"

forum = Forum(token=token)
market = Market(token=token)
antipublic = Antipublic(token="Antipublic_key")

# API Client Parameters

# - **token** (str): Your token.
# - **language** (str["ru", "en"]): Language of the API responses.
# - **delay_min** (float): Minimal delay between requests.
# - **proxy** (str): Proxy string.
#   > protocol://ip:port or protocol://login:password@ip:port (socks5://login:password@192.168.1.1:8080 or http://login:password@192.168.1.1:8080)
# - **timeout** (float): Request timeout.


# All following examples also work for Market & Antipublic clients

forum.settings.logger.enable()                                        # 📝 Start logging
# Forum & Market client will log into {user_id}.{Client_name}.log file
# Antipublic client will log into Antipublic.log file
forum.settings.delay.enable()                                         # 🕒 Enable auto delay (Auto delay is enabled by default for Market & Forum but not for Antipublic)

response = forum.users.get(user_id=2410024)                           # ⚡ Sync request
job = forum.users.get.job(user_id=2410024)                            # 📋 Job creation (Always SYNC)
response = forum.request("GET", "/users/2410024")                     # ⚡ Custom request (You can use full url or just path)
job = forum.request.job("GET", "/users/2410024")                      # 📋 Job creation for custom request

async def async_example():
    response = await forum.users.get(user_id=2410024)                 # ⚡ Async request
    job = forum.users.get.job(user_id=2410024)                        # 📋 Job creation (Always SYNC)
    response = await forum.request("GET", "/users/2410024")           # ⚡ Custom async request
    job = forum.request.job("GET", "/users/2410024")                  # 📋 Job creation for custom request

asyncio.run(async_example())

# You should just add ".job" between function name and parentheses to create a job.
# You can't create a job for methods that are uploading files (like avatar/background) and ofc not for client.batch(...) method.
# P.s Your IDE probably may not show that ".job" function exists but it does.

forum.settings.token = "token"                                        # 🔑 Change token
forum.settings.language = "en"                                        # 🌍 Change language (Antipublic client doesn't support language changing)
forum.settings.proxy = "http://login:password@192.168.1.1:8080"       # 🌐 Change proxy
forum.settings.delay.min = 3                                          # 🕒 Set minimal delay (E.g. When your minimal delay is 3 seconds, and a method you want to use has a 
                                                                      #     delay of 0.2 seconds, your script will sleep for 3 seconds instead of 0.2 seconds)
forum.settings.delay.disable()                                        # 🕒 Disable auto delay
forum.settings.logger.disable()                                       # 📝 Stop logging

# You can view all changeable settings in LOLZTEAM/Client/Base/Core.py file

📚 Documentation

Package Documentation:

Forum API Client Market API Client Antipublic API Client

Official API Documentation:

Forum API Market API Antipublic API

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

lolzteam-2.1.1.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lolzteam-2.1.1-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file lolzteam-2.1.1.tar.gz.

File metadata

  • Download URL: lolzteam-2.1.1.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for lolzteam-2.1.1.tar.gz
Algorithm Hash digest
SHA256 6a4b14aecf9618c74d730dd98bdb78d63e36440aa1e4ff29b8bc955e0ebf2475
MD5 51c85f90b2ff5b63bce8768321f8b3a3
BLAKE2b-256 7718526b63585a853d5c17813397701faa8c6e0a3336ba3df1a7d45e3bb96b65

See more details on using hashes here.

File details

Details for the file lolzteam-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: lolzteam-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 51.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for lolzteam-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39157d290b50bf65c34d16372acaa65c08fe36cb42b057ae1ec1c9b944b697d2
MD5 0696cd6723b68b22883c288d3729220c
BLAKE2b-256 1c953abc1023f3fe9d28675601456cadd8745163c62b1595ba2662569979f437

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page