Skip to main content

stalcraft-api unofficial python library

Project description

stalcraft-api unofficial python library

📄 Официальная документация API: https://eapi.stalcraft.net

ℹ️ Для использования полноценной версии API вы должны пройти верификацию от EXBO

подробнее


Установка

pip install stalcraft-api --upgrade

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())

Поиск ID предмета

from stalcraft import Client, Item



TOKEN = "YOUR_TOKEN"



client = Client(TOKEN)



print(client.auction(Item("Гадюка").item_id).lots())

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

stalcraft-api-0.0.5.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

stalcraft_api-0.0.5-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file stalcraft-api-0.0.5.tar.gz.

File metadata

  • Download URL: stalcraft-api-0.0.5.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for stalcraft-api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 37cceac45e640b61ab07c6fecde60ed3013fabc8e046411ace3fd5ceb55d4ad4
MD5 224a66a6fd2486f55122137d38cbd257
BLAKE2b-256 49b9d15d804b06a0d0c35eb4e58b5a9e39a7463868dbd9b0ef89ec90c0d2cf2a

See more details on using hashes here.

File details

Details for the file stalcraft_api-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: stalcraft_api-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for stalcraft_api-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5b243d4f657c7ce891c7c4448602e02364ba661619043019da66ead4c56308
MD5 0190eaf5b97804649a88cd63582379b3
BLAKE2b-256 c657c9460e6499048d1b94019b15ec34030afa161618a03c6b35a943f825df49

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