https://github.com/56kyle/goon_parser
A parser for converting the static data in dm files into json
https://github.com/56kyle/goon_parser
Last synced: about 1 year ago
JSON representation
A parser for converting the static data in dm files into json
- Host: GitHub
- URL: https://github.com/56kyle/goon_parser
- Owner: 56kyle
- Created: 2022-05-11T22:11:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-03T05:28:28.000Z (about 4 years ago)
- Last Synced: 2025-01-23T05:17:18.360Z (over 1 year ago)
- Language: Python
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goon Parser
## Installation
#### Using Pip
pip install goon_parser
#### Using Poetry
poetry add goon_parser
## Usage
##### CLI
- Poetry
poetry run generate json './path/to/file.dm' './path/to/output.json'
poetry run generate json -r './path/to/folder' './path/to/output/folder'
- Flags
-r / --recursive = Will iterate through all files in the given folder and all sub folders
-f / --force = Will overwrite any files that are written if they exist already
##### Parser
from goon_parser.parser import get_dict, get_json
chemistry_recipes_dict = get_dict('./Chemistry_Recipes.dm')
chemistry_recipes_json = get_json('./Chemistry_Recipes.dm')