Skip to main content

SCP API for python (https://api.scpslgame.com/)

Project description

pyscpapi

Installing

You can get the library directly from PyPI:

python3 -m pip install pyscpapi

If you are using Windows, then the following should be used instead:

py -3 -m pip install pyscpapi

HOW TO USE

Read official API: https://api.scpslgame.com/

Simple Code:

import asyncio
from Pyscp_Api.api import API

async def start():
    ip = await API.ip()
    serverinfo = await API.serverinfo(id_ = YOUR_ID, key = YOUR_KEY, list_ = "true", players = "true")
    lobbylist = await API.lobbylist(key = YOUR_KEY, minimal = "Test")
    return (ip, serverinfo, lobbylist)
  
ip, serverinfo, lobbylist = asyncio.run(start())
print(f"IP:          {ip}")
print(f"Server Info: {serverinfo}")
print(f"Lobby List:  {lobbylist}")

Donate

https://money.yandex.ru/to/410015858804944/0

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

pyscpapi-1.1.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

pyscpapi-1.1.0-py3-none-any.whl (3.0 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