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 indiscover_infantry_weapons.jsondiscover_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 indiscover_vehicle_weapons.jsongenerate_infantry_weapons.py: no output; simply an example ofInfantryWeaponobjects generationgenerate_vehicle_weapons.py: no output; simply an example ofVehicleWeaponobjects 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_IDenvironment variable - Create a folder inside the
examplesfolder of the cloned repository:datafiles - Run the scripts and check the outputs
Release files for ps2-analysis 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ps2_analysis-0.28.0.tar.gz | 24.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ps2_analysis-0.28.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.4 kB
Release files / ps2_analysis-0.28.0.tar.gz
| Download URL | ps2_analysis-0.28.0.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c22728ba2fa4f31c93fdc6d85914477d5e336a8142e0bd406a1bde57662e0d5
|
|
BLAKE2b-256 checksum How to use checksums |
ea32d881d3c8f3fbb83b6b374b92d7417e9d5f5f549bf01b11370ca6bfd0878c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.2 Linux/5.9.9-arch1-1
|
Release files / ps2_analysis-0.28.0-py3-none-any.whl
| Download URL | ps2_analysis-0.28.0-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
204dc9fa230bba64b9f52413b4ec3cde377de793c8a33bb14e8908a396a3af40
|
|
BLAKE2b-256 checksum How to use checksums |
689fe53ce913d32a63de2938a0adc7983e46d49c748e87d02be335aa943ebd30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.2 Linux/5.9.9-arch1-1
|