New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ps2-analysis

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ps2-analysis

Daybreak Game's Planetside 2 data analysis (UNOFFICIAL)

  • 0.28.0
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc