mcStalker is an Asynchronous API Wrapper for the MCStalker (https://mcstalker.com) API. It uses modern Pythonic structures to efficiently request information. It features optional caching, is modular, and is easy to integrate.
Project description
The MCStalker API Wrapper
Async-Friendly wrapper for the MCStalker API.
Endpoints currently supported -
- /stats
- /searchusername
- /searchserver
- /filterservers
YOU NEED AN API KEY TO USE THIS WRAPPER.
You can get a key at https://mcstalker.com/register
Imports -
- from mcStalker.mcStalker import Player
- from mcStalker.mcStalker import Server
- from mcStalker.mcStalker import Stats
Usage -
Stats -
from mcStalker.mcStalker import Stats
stats = Stats(apiKey)
asyncio.run(stats.returnStats() -> Stats._Stats Object)
Player -
from mcStalker.mcStalker import Player
player = Player(apiKey)
asyncio.run(player.returnPlayer(username) -> Player._Player Object)
Server -
from mcStalker.mcStalker import Server
server = Server(apiKey)
asyncio.run(server.returnServer(ip) -> Server._Server Object)
asyncio.run(server.returnTopServers() -> [Server._Server Object, Server._Server Object, ...])
Created by TheOnlyWayUp#1231 - https://github.com/TheOnlyWayUp/
MCStalker created by SSouper - https://github.com/SSouper
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
mcStalker-0.0.4.tar.gz
(6.5 kB
view hashes)