Skip to main content

PUBG API wrapper module

Project description

PUBG API Wrapper for Pandas

This package is under development; thus, some features may not work correctly or exist.

Installation

You can install this module using pip (pip3)

pip install pubgapi-ku

Components

Modules

1. API Connector

The module contains Connector class which has functions to get raw JSON data using PUBG API provided by PUBG Developer Portal (https://developer.pubg.com/). All data which can be collected using this module can also be collected by the DataWrapper class, which provides data as Pandas DataFrame type using Connector class internally. Therefore, there is no need to necessarily use API Connector module and Connector class in most cases.

Usage

To use Connector class, you must generate a PUBG API key. Refer instruction of PUBG Developer Portal (https://documentation.pubg.com/en/getting-started.html)

from pubgapiku import api_connector

conn = Connector(<your_api_key>)
sample_matches = conn.sample_matches()
Functions
  • Return a dictionary(dict)-type containing a list of sample matches within 24 hours in UTC When the API request was not successful (the response code was not 200), the function returns None

  • Return a dictionary-type value containing players information When the API request was not successful (the response code was not 200), the function returns None

    • Keyword arguments
      • ids:list[str] Filters by player IDs
      • names:list[str] Filters by player names
  • Return a dictionary-type value containing a match's information When the API request was not successful (the response code was not 200), the function returns None

    • Argument
      • match_id:str The ID of the match for which you want to collect information
  • Return the address of telemetry data of a match from the match's data When the address of telemetry data was not found, the function return None

    • Argument
      • match_data:dict A match data which is obtained from match function
  • Return a dictionary-type value containing a match's telemetry data of the target match When the request was not successful (the response code was not 200), the function returns None

    • Argument
      • addr:str The address of the target telemetry data obtained from telemetry_addr function

2. Data Wrapper

The module contains DataWrapper class, which has functions to get PUBG data from PUBG API as Pandas DataFrame data type Since DataWrapper class works based on Collector class, a PUBG API key is also needed to use DataWrapper class

Usage
Functions

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

pubgapi_ku-0.15.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

pubgapi_ku-0.15-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pubgapi_ku-0.15.tar.gz.

File metadata

  • Download URL: pubgapi_ku-0.15.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for pubgapi_ku-0.15.tar.gz
Algorithm Hash digest
SHA256 bb038b792fad2fab9c2ae28813d66e78cdfaf53d06a41c46bce2690fa036e442
MD5 13b41fe4e66fc67483599e9739cfcf9e
BLAKE2b-256 ea9384ba924708467ae557671b89ee12cec3457eebd8404e45fd0b3b20fba5dd

See more details on using hashes here.

File details

Details for the file pubgapi_ku-0.15-py3-none-any.whl.

File metadata

  • Download URL: pubgapi_ku-0.15-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for pubgapi_ku-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 711188d627b75648a6a6391acda35a4160e2e150616f02237916b618c954b897
MD5 58d254edda9ab5b6dcf6ab58274839a7
BLAKE2b-256 c2967210c6d2f8234835220b2a3b3a00244992834956e7c87f806a37d2221eaf

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