Skip to main content

Daybreak Game's Planetside 2 data analysis (UNOFFICIAL)

Project description

ps2-analysis [WORK IN PROGRESS]

ps2-analysis is a library written in Python >= 3.8 that fetches data from the Daybreak Planetside 2 Census API and eases advanced analysis.

It uses its sister project, the ps2-census client whose objective is simply to handle data retrieval from the Census API. Further parsing and exploitation is performed here in ps2-analysis.

Features:

  • Currently supports infantry and vehicle weapons data
  • Downloads datasets from the API and stores them locally as ndjson files
  • Parses data and generates class objects suitable for further processing

Installation

pip install ps2-analysis

Examples

Examples are available in the examples folder:

  • discover_infantry_weapons.py: updates the infantry weapons datafile and outputs all different (nested) key paths as well as associated set of values encountered within the whole dataset; example output in discover_infantry_weapons.json
  • discover_vehicle_weapons.py: updates the vehicle weapons datafile and outputs all different (nested) key paths as well as associated set of values encountered within the whole dataset; example output in discover_vehicle_weapons.json
  • generate_infantry_weapons.py: no output; simply an example of InfantryWeapon objects generation
  • generate_vehicle_weapons.py: no output; simply an example of VehicleWeapon objects generation

Development

Environment

In order to develop ps2-analysis:

  • Setup a virtual environment with python 3.8
  • Install poetry
  • Install dependencies with poetry install
  • Run tests with pytest
  • Update dependencies with poetry update

To run the examples in the examples folder:

  • Add your Census API service ID to the CENSUS_SERVICE_ID environment variable
  • Create a folder inside the examples folder of the cloned repository: datafiles
  • Run the scripts and check the outputs

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ps2_analysis-0.23.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

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

ps2_analysis-0.23.0-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file ps2_analysis-0.23.0.tar.gz.

File metadata

  • Download URL: ps2_analysis-0.23.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.2 Linux/5.7.12-arch1-1

File hashes

Hashes for ps2_analysis-0.23.0.tar.gz
Algorithm Hash digest
SHA256 005bae450b5adf577eeb0fd6de45ce4c2b0d3a7522f4ba7ee3332d89ab4140e4
MD5 14b9a285e64181352e9104d8651bd7ad
BLAKE2b-256 3b60f434c1e0e5f10330174c513f8d9d58c437783cd14cf65e2b6eb2ed39ee16

See more details on using hashes here.

File details

Details for the file ps2_analysis-0.23.0-py3-none-any.whl.

File metadata

  • Download URL: ps2_analysis-0.23.0-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.2 Linux/5.7.12-arch1-1

File hashes

Hashes for ps2_analysis-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f21a60d189c80885993bf411f183114d1eb56bfe5432a10c6aa0ee30881b15a
MD5 10dc4cf2b6bf76a193c0cfaa1122c9b9
BLAKE2b-256 1edecd3491f907e04c8bda730bd199dc57938a565b45f48a2aea76ef14d364b5

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