Mtf2json

Latest version: v0.2.5

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.2.5

* Format change: renamed `weapon` to `name` in weapon entries
* New JSON section: `equipment`
* Items with a `:SIZE:` value are now correctly supported and stored in the new `equipment` section.
* E. g. `Liquid Storage (OMNIPOD):SIZE:1.0 (ARMORED)` will be stored as:

"equipment": [
{
"name": "Cargo (Liquid)",
"location": "left_torso",
"type": "transport bay",
"tags": [
"armored",
"omnipod"
],
"size": "1t"
},
]

* More items will be stored in the `equipment` section in future releases

0.2.4

- New handled keys:
- `base_chassis_heat_sinks`
- `ejection`
- `notes`
- The following keys are now explicitly ignored:
- `fluffimage`
- `imagefile`
- `nocrit`
- Added new option `--statistics`
- Refactoring and test improvements

0.2.3

- The `weapons` section is now a list of dictionaries
- this breaks compatibility with the old format
- Weapon quirks are now stored in the `weapon_quirks` section
- before that, only the last `weaponquirk` key was stored (verbatim) in case there were multiple of them
- The `mtf2json` version is now stored as the first key in every JSON file

0.2.2

- Empty values are now allowed (fixes errors for MTF files with e. g. empty `model` entry)
- Added `clanname` to the list of known keys
- Test improvements

0.2.1

Fixed license in the PyPi package.

0.2.0

- If a critical slot line contains `:size:` or `:SIZE:`, the value is set to the preceding string (the size part is discarded)
- fixes 15
- Updated latest supported commit to `dfeb43e28132c2723ac8e3147e41b00960b989fd`
- `<P>` and `</P>` are now also removed from fluff entries
- Added `--verbose` flag
- Added new testcases
- ShadowHawk SHD-5S
- Hermes_II_HER-4K_Hermes_III
- Code refactoring
- parsing is now done by a generator function
- only known keys are parsed, others are ignored
- lines without keys are ignored, unless it's a known special case
- replaced the `mtf2json.pyi` stub file with `py.typed`
- switched from `flake8` to `ruff` (for linting and formatting)
- reformatted all existing code

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.