Skip to main content

A python wrapper for Battleground API

Project description

PUBGpy

CodeFactor PyPi Downloading PyPi Version PyPi Version

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.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

PUBGpy-1.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PUBGpy-1.1.tar.gz
  • Upload date:
  • Size: 19.1 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.1.tar.gz
Algorithm Hash digest
SHA256 bd640a9f5c380adcb69dcb3703064e7cf7b6f09d6a6dc043ee43462d1a10d5d7
MD5 51bb7b66a7c4e2a6629bcddc11605371
BLAKE2b-256 808eaa647878228b2bf808e9e5dc657ff54d6edc0ebf1b703108dc81f66c369f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PUBGpy-1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 934ba4c5e50c122e898c86c863292cc9cc84e5d58ccf3870d2b97fc7bba78b0f
MD5 9e3cea6f1377a065c085ddb5b0fc2c36
BLAKE2b-256 01b19e6832cfdcf20c163db03499af069643c0b4e2bee6fe69082125b49da498

See more details on using hashes here.

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