This release is a pre-release and may not be stable for production use.
Python Xwing Builder for X-wing v2.0
An Xwing builder written in python
master branch:
beta branch:
Installation
Install from pypi
pip install pyxwb2
Install locally
git clone https://github.com/minsis/pyxwb2.git
cd pyxwb2
pip install .
Usage
There are two separate libraries to use here: one fro loading XWS import data and one for loading the entire xwing-data pack for usage in an app or web app, etc
XWS Data Load
To load and validate an XWB json file you can load it in. With a basic XWS load you get a full manifest of data for the pilots included.
from pyxwb2 import XwingSquadron
squadron = XwingSquadron()
squadron.import_squad("xws-squad.json")
As per the XWS standard point costs are ignored on import and loaded from the manifest. If the source is trusted then the json schema is ignored.
To load trusted data
from pyxwb2 import XwingSquadron
squadron = XwingSquadron(trust_source=True)
squadron.import_squad("xws-squad.json")
X-wing Data Pack
This loads the entire manifest data from xwing-data. Gives you access to the entire data strcutre that it has to offer.
from pyxwb2 import XwingDataPack
data = XwingDataPack()
Citing
xwing-data2
The dataset included is provided by guidokessels/xwing-data2 under the MIT license
- Author: guidokessels
- Title: xwing-data2
- Version: 1.21.0
- Availability: xwing-data2
xws
The ruleset spec used is provided by elistevens/xws-spec
- Author: elistevens
- Title: xws-spec
- Version: 2.0.0
- Availability: xws-spec
Release files for pyxwb2 0.2.1b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyxwb2-0.2.1b0.tar.gz | 260.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyxwb2-0.2.1b0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 673.8 kB
Release files / pyxwb2-0.2.1b0.tar.gz
| Download URL | pyxwb2-0.2.1b0.tar.gz |
|---|---|
| Size | 260.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f575d0b53ad9d2a0cdd0821badae74fb7a18931b474b9b05aa6eb7af6acb0684
|
|
BLAKE2b-256 checksum How to use checksums |
b51dfe410cbb0cb0177db5a15df13dab533b2c2c24653d655fa4312b2fcf18aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|
Release files / pyxwb2-0.2.1b0-py3-none-any.whl
| Download URL | pyxwb2-0.2.1b0-py3-none-any.whl |
|---|---|
| Size | 413.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18677586d0b54b00232625ea9b0e098baed9c772b0381b42f6162355f682477f
|
|
BLAKE2b-256 checksum How to use checksums |
5df69f8eb6115b0241bf43042d334fc3eb65eec0b5e1c4807fc85807a6556575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|