{"repo":"socialpoint-labs/unity-yaml-parser","free":true,"listed":false,"github":"https://github.com/socialpoint-labs/unity-yaml-parser","clone":"git clone https://github.com/socialpoint-labs/unity-yaml-parser.git","description":"Python3 library to manipulate Unity serialized files from outside the Unity Editor.","language":"Python","stars":179,"topics":["python-library","unity-yamls","pyyaml","unity"],"license":"MIT","category":"game-templates","readme_excerpt":"Unity YAML Parser # This project aims to provide a python3 API to load and dump Unity YAML files (configurations, prefabs, scenes, serialized data, etc) in the exact same format the internal Unity YAML serializer does. Using this API you will be able to easily manipulate(as python objects) Unity YAML files and save them just the same, keeping the YAML structure exactly as Unity does. This has the advantages of, first not having to configure PyYAML beforehand to deal with Unity YAMLs, and second as the modified file keeps the same structure and formatting that Unity does, when the YAML file is loaded by Unity it won't make formatting changes to it that will make any VCS report unexpected file changes. Installing ## Install and update using pip: A Simple Example ## Classes ## unityparser.UnityDocument ### Main class to load and dump files. unityparser.UnityDocument.load yaml(file path) #### Classmethod : Load the given YAML file path and return a UnityDocument file unityparser.UnityDocument.dump yaml(file path=None) #### Dump the UnityDocument to the previously loaded file location(overwrite). If file path argument is provided, dump the document to the specified location instead. This method keeps line endings of the original file when it dumps. unityparser.UnityDocument.entries #### Property : Return the list of documents found in the YAML. The objects in the list are of types Class named after the serialized Unity class(ie. MonoBehaviour, GameObject, Prefab, CustomName, etc).","default_branch":null,"files":null,"tree":[],"storefront":"/r/socialpoint-labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/socialpoint-labs/unity-yaml-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}