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
Metadata
Release files for PUBGpy 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PUBGpy-1.1.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PUBGpy-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.2 kB
Release files / PUBGpy-1.1.tar.gz
| Download URL | PUBGpy-1.1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd640a9f5c380adcb69dcb3703064e7cf7b6f09d6a6dc043ee43462d1a10d5d7
|
|
BLAKE2b-256 checksum How to use checksums |
808eaa647878228b2bf808e9e5dc657ff54d6edc0ebf1b703108dc81f66c369f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / PUBGpy-1.1-py3-none-any.whl
| Download URL | PUBGpy-1.1-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
934ba4c5e50c122e898c86c863292cc9cc84e5d58ccf3870d2b97fc7bba78b0f
|
|
BLAKE2b-256 checksum How to use checksums |
01b19e6832cfdcf20c163db03499af069643c0b4e2bee6fe69082125b49da498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|