==================================================
`Battlegrounds Developer API Docs <https://developer.playbattlegrounds.com/docs/en/introduction.html>`_
************
Installation
************
.. code-block:: bash
pip install pubg
***************
Usage
***************
Setup
=====
.. code-block:: python
from pubg import Battlegrounds, Region
battlegrounds = Battlegrounds(api_key='API_KEY', region=Region.pc_na)
Match Data
==========
.. code-block:: python
matches = battlegrounds.matches()
print(matches.id)
print(matches.created_at)
print(matches.duration)
for roster in matches.rosters:
print(roster.id)
for participant in roster.participants:
print(participant.id)
print(participant.actor)
print(participant.shard_id)
print(roster.won)
print(roster.shard_id)
for asset in matches.assets:
print(asset.id)
print(asset.title_id)
print(asset.shard_id)
print(asset.name)
print(asset.description)
print(asset.created_at)
print(asset.filename)
print(asset.content_type)
print(asset.url)
print(matches.game_mode)
print(matches.patch_version)
print(matches.title_id)
print(matches.shard_id)
Status
======
.. code-block:: python
status = Battlegrounds.status()
print(status.id)
print(status.released_at)
print(status.version)
More will be available as I get more information about the API
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Metadata
Release files for pubg 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pubg-0.0.3.tar.gz | 3.0 kB | Without provenance | Details for pubg-0.0.3.tar.gz |
Release files / pubg-0.0.3.tar.gz
| Download URL | pubg-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dd948ed070e1b8f42aab1042b356e6ac7e43c172fc736bcf2e08653aeaa82b5
|
|
BLAKE2b-256 checksum How to use checksums |
9bb965578a17adca4d03555f32c9f4b82903afbc27add4ce704952e918571f20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pubg 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.