Skip to main content

A python wrapper for Battleground API

Project description

PUBGpy

A python wrapper for Battleground API.
It is composed of asynchronous devices, enabling more efficient use of modules.

It is not difficult to use, but there are some differences from official documents.

If you have any questions, 건유1019#0001 on discord or e-mail (gunyu1019@yhs.kr), you may ask.

Installation

// Windows
py -3 -m pip install pubgpy

// Linux / MacOS
python3 -m pip install pubgpy

Quick Example

import pubgpy
import asyncio

token = "<PUBG TOKEN>"


async def main():
    client = pubgpy.Client(token=token, platform=pubgpy.Platforms.STEAM)

    player = await client.player("gunyu1128")
    resp = await player.season_stats(season=pubgpy.get_season(d_season=10, platform=pubgpy.Platforms.STEAM))

    print("Nickname: {}".format(player.name))
    print("Assets: {}".format(resp.squad.kills))
    print("Kills: {}".format(resp.squad.kills))

event = asyncio.get_event_loop()
event.run_until_complete(main())

License

MIT License
Copyright (c) 2021 gunyu1019

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

PUBGpy-1.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

PUBGpy-1.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file PUBGpy-1.0.tar.gz.

File metadata

  • Download URL: PUBGpy-1.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for PUBGpy-1.0.tar.gz
Algorithm Hash digest
SHA256 5ac52de588e7b0437d39284ccc7fa2debaaa3ca14cb43f6d0fe41f4f2c035a2a
MD5 a09467ea46f9c3a47ea81dfc68cc8353
BLAKE2b-256 65fcf881e5eac349ca17ff163a9840b876c8a3719ad4655d987e2887ddc57d62

See more details on using hashes here.

File details

Details for the file PUBGpy-1.0-py3-none-any.whl.

File metadata

  • Download URL: PUBGpy-1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for PUBGpy-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28758e9758ab5aa003255599464efc46b862e952587324e6f8a0d3d5fd2f7f44
MD5 dfbf7e921a18010e9d0ea9be3e1f63a7
BLAKE2b-256 2bab4cfe70ccf9962cda6cedb793e32813901d57d0870bb0f91c4ae246a87c9d

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