yaml / pyyaml

Canonical source repository for PyYAML
MIT License
2.54k stars 515 forks source link

[Joke Issue] Attempt to write the most complex YAML file in human history #788

Open Evil0ctal opened 6 months ago

Evil0ctal commented 6 months ago

Hello, if you are opening this issue, I want to clarify that this issue is not related to the PYYaml library. It's merely a joke between my friend and I while we were trying to write a linear format translator for YAML files as a test for our translator's reliability. This issue might be closed (perhaps it should be closed?).

Demonstration of the linear format:

Used to split YAML files into separate lines so that ChatGPT can translate the content within. For instance, translating a Minecraft plugin configuration file that is extremely long and has strict format requirements. Eventually, the translator converts the linear format back to a YAML file to ensure the file's readability.

[str]: key1: value1
[list]: key2: value2|[str], value3|[str], value4|[str]
[int]: key3: 123
[float]: key4: 123.456
[bool]: key5: true
[list]: key6: 1|[int], 2|[int], 3|[int]
[list]: key7: 1.1|[float], 2.2|[float], 3.3|[float]
[list]: key8: true|[bool], false|[bool], true|[bool]
[list]: key9: 1|[int], 2.2|[float], true|[bool]
[str]: path1.path2.path3: value1

In summary, we want to create a very complex YAML file to test the translator's performance and reliability. If you can write complex YAML structures, please PR to this repository:

The most complex YAML file in human history

Thank you for reading this far, and I wish you a wonderful day :)