Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting to YAML for storing data #9

Open
aelmosalamy opened this issue Nov 13, 2018 · 1 comment
Open

Converting to YAML for storing data #9

aelmosalamy opened this issue Nov 13, 2018 · 1 comment

Comments

@aelmosalamy
Copy link
Owner

aelmosalamy commented Nov 13, 2018

The file ac_dicts.py is getting bigger and is almost getting unreadable, 350+ lines with just 8 items and 5 rooms, so I was thinking about storing and converting all the data into .YAML files using ruamel.yaml and then whenever I am adding new items I add it to the YAML files, It will be more efficient and it will make ASCII Combat's files cleaner and more organized, ac_dicts.py will contain extractor functions and some random utility functions with the main purpose of reading the YAML data

EDIT: I am currently doing some research on either I should use ruamel.yaml or use Python's pickle, currently I give 1 point to YAML for human-readability

@codeswhite
Copy link
Contributor

codeswhite commented Jun 21, 2020

Check out TOML, PIP itself recently started to use it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants