Stalcraft API unofficial python library
Project description
<<<<<<< HEAD
StalcraftApi
Stalcraft API implementation in Python
=======
stalcraft-api unofficial python library
📄 Официальная документация API
Информация
Для использования полноценной версии API вы должны пройти верификацию от EXBO
Установка
git clone https://github.com/onejeuu/stalcraft-api.git
Quick Start
from stalcraft import (
Client, ApiLink
)
TOKEN = "YOUR_TOKEN"
client = Client(TOKEN, ApiLink.PRODUCTION)
Примеры использования
from stalcraft import (
Client, Region, Sort, Order
)
TOKEN = "YOUR_TOKEN"
client = Client(TOKEN)
print()
print("List of regions")
print(client.regions())
print()
print("List of characters on EU server")
print(client.characters(Region.EU))
print()
print("List of clans with offset 1 and limit 2")
print(client.clans(offset=1, limit=2))
print()
print("Information about emission")
print(client.emission())
print()
print("List of friends character Test-1")
print(client.friends("Test-1"))
item = client.auction("y1q9")
print()
print("List of lots item with id y1q9 with offset 5 and limit 2 and sort by buyout price")
print(item.lots(offset=5, limit=2, sort=Sort.BUYOUT_PRICE))
print()
print("List of history item with id y1q9")
print(client.auction("y1q9").history())
clan = client.clan("647d6c53-b3d7-4d30-8d08-de874eb1d845")
print()
print("Information about clan with id 647d6c53-b3d7-4d30-8d08-de874eb1d845")
print(clan.info())
print()
print("Members in clan with id 647d6c53-b3d7-4d30-8d08-de874eb1d845")
print(client.clan("647d6c53-b3d7-4d30-8d08-de874eb1d845").members())
e78c0a7 (release)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for stalcraft_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d728a591b76afe6b962c2b9754d598940703f3359e21d53476c28ba7cc65fb7 |
|
MD5 | d06ecb7ef20bce9f8ace59df697d27cd |
|
BLAKE2b-256 | 889120a5680f54dbd3f785cbca19c011da015b45d4ea142d8d17ea26c8773e7c |