{"id":16959506,"url":"https://github.com/crdoconnor/usy","last_synced_at":"2026-05-19T02:38:26.442Z","repository":{"id":83485899,"uuid":"84236222","full_name":"crdoconnor/usy","owner":"crdoconnor","description":"Ultra-simple YAML - Roundtrippable YAML parser that only parses comments and a flat list of key/value pairs.","archived":false,"fork":false,"pushed_at":"2018-04-14T13:56:08.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T19:48:02.209Z","etag":null,"topics":["parser","python","simple","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crdoconnor.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-03-07T19:10:56.000Z","updated_at":"2018-04-14T13:56:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"efbcbf0b-fab0-4200-863a-ce6d6e5caf7e","html_url":"https://github.com/crdoconnor/usy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Fusy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Fusy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Fusy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crdoconnor%2Fusy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crdoconnor","download_url":"https://codeload.github.com/crdoconnor/usy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244816232,"owners_count":20515063,"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":["parser","python","simple","yaml"],"created_at":"2024-10-13T22:45:09.937Z","updated_at":"2026-05-19T02:38:26.394Z","avatar_url":"https://github.com/crdoconnor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ultra Simple YAML\n=================\n\nUltra Simple YAML is a tiny module designed to parse a *very*\nrestricted subset of YAML. It is a sister project of\n`StrictYAML \u003chttps://github.com/crdoconnor/strictyaml/\u003e`_\nwhich parses a larger subset of YAML (still restricted, albeit\nfor different reasons).\n\nIt is designed to be includeable in larger projects where\nincluding an entire additional module is not desirable or possible\nbut you still don't want to use INI.\n\nIt is licensed with a BSD-2 Clause license - the least restrictive\npossible.\n\n\nInstall\n-------\n\nAll the code is in one file: usy.py. Simply copy that file into\nyour code base.\n\nUsage\n-----\n\nGiven the following file example.yaml:\n\n.. code-block:: yaml\n\n  # Simple YAML file\n  property1: value1\n  property2: 2\n\n\nCopy the file usy.py into your project and use:\n\n.. code-block:: python\n\n  \u003e\u003e\u003e with open('example.yaml', 'r') as handle:\n  \u003e\u003e\u003e     contents = handle.read()\n  \u003e\u003e\u003e parsed = usy.load(contents)\n  \u003e\u003e\u003e parsed\n  USY({\"property1\": \"value1\", \"property2\": \"2\"})\n\n  \u003e\u003e\u003e parsed[\"property1\"]\n  value1\n\n  \u003e\u003e\u003e parsed[\"property2\"] == \"2\"\n  True\n\n  \u003e\u003e\u003e parsed[\"property3\"] = \"3\"\n  \u003e\u003e\u003e parsed.as_yaml()\n  # Simple YAML file\n  property1: value1\n  property2: 2\n  property3: 3\n\n\nWhat can and cannot be parsed?\n------------------------------\n\n* Only key/value pairs and comments will be parsed.\n* No nested key/value pairs will be parsed or saved.\n* No lists will be parsed.\n* All values will be parsed as strings.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdoconnor%2Fusy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrdoconnor%2Fusy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrdoconnor%2Fusy/lists"}