{"id":17347866,"url":"https://github.com/tuokri/udk_configparser","last_synced_at":"2025-03-27T11:21:41.135Z","repository":{"id":62586126,"uuid":"254048114","full_name":"tuokri/udk_configparser","owner":"tuokri","description":"Config parser for UDK .ini files.","archived":false,"fork":false,"pushed_at":"2023-11-08T13:51:19.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T10:48:56.457Z","etag":null,"topics":["config","configparser","ini","ini-parser","udk","ue3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuokri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-08T09:49:57.000Z","updated_at":"2023-10-26T21:35:55.000Z","dependencies_parsed_at":"2025-02-01T15:44:59.164Z","dependency_job_id":"03752ad6-7864-4bcb-9210-e183cc7bb7f9","html_url":"https://github.com/tuokri/udk_configparser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Fudk_configparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Fudk_configparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Fudk_configparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Fudk_configparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuokri","download_url":"https://codeload.github.com/tuokri/udk_configparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832753,"owners_count":20679704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","configparser","ini","ini-parser","udk","ue3"],"created_at":"2024-10-15T16:50:22.894Z","updated_at":"2025-03-27T11:21:41.115Z","avatar_url":"https://github.com/tuokri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# udk_configparser\n\nLike CPython standard configparser but adjusted for UDK config files.\n\n## Installation\n\n```shell\npip install udk_configparser\n```\n\n## Example usage\n\n### Setting a single value\n\n```python\nfrom udk_configparser import UDKConfigParser\n\ncg = UDKConfigParser()\n\ncg.read(\"Engine.ini\")\ncg[\"Section\"][\"Key\"] = \"NewValue\"\n```\n\n### Setting a multi-value field and writing the file\n\n```python\n# Multi-value example.\npkg_name = \"MyPackage\"\nedit_packages = cg[\"UnrealEd.EditorEngine\"].getlist(\"+EditPackages\")\nif pkg_name not in edit_packages:\n    edit_packages.append(pkg_name)\n    # Currently, setting multi-value data requires manually \n    # joining the data to ensure it is written correctly.\n    cg[\"UnrealEd.EditorEngine\"][\"+EditPackages\"] = \"\\n\".join(edit_packages)\n\nwith open(\"Engine.ini\", \"w\") as config_file:\n    cg.write(config_file, space_around_delimiters=False)\n\n# Engine.ini before writing:\n#  [UnrealEd.EditorEngine]\n#  +EditPackages=UTGame\n#  +EditPackages=UTGameContent\n\n# After:\n#  [UnrealEd.EditorEngine]\n#  +EditPackages=UTGame\n#  +EditPackages=UTGameContent\n#  +EditPackages=MyPackage\n```\n\n## Known issues\n\n- Comments get removed during writes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuokri%2Fudk_configparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuokri%2Fudk_configparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuokri%2Fudk_configparser/lists"}