{"id":17246540,"url":"https://github.com/adbancroft/tunerstudioiniparser","last_synced_at":"2025-03-26T05:25:18.680Z","repository":{"id":46330358,"uuid":"393765751","full_name":"adbancroft/TunerStudioIniParser","owner":"adbancroft","description":"TsIniParser - a TunerStudio INI parser","archived":false,"fork":false,"pushed_at":"2023-09-24T15:43:38.000Z","size":3589,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T07:14:12.519Z","etag":null,"topics":["ini","parser","tunerstudio"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adbancroft.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-07T18:46:51.000Z","updated_at":"2021-11-17T02:02:02.000Z","dependencies_parsed_at":"2022-09-19T09:50:50.002Z","dependency_job_id":null,"html_url":"https://github.com/adbancroft/TunerStudioIniParser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbancroft%2FTunerStudioIniParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbancroft%2FTunerStudioIniParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbancroft%2FTunerStudioIniParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbancroft%2FTunerStudioIniParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adbancroft","download_url":"https://codeload.github.com/adbancroft/TunerStudioIniParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245593852,"owners_count":20641148,"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":["ini","parser","tunerstudio"],"created_at":"2024-10-15T06:34:20.082Z","updated_at":"2025-03-26T05:25:18.659Z","avatar_url":"https://github.com/adbancroft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Python parser for TunerStudio INI files\n Example:\n\n    import sys\n    from ts_ini_parser import TsIniParser, DataClassTransformer\n    \n    parser = TsIniParser()\n    parser.define('LAMBDA', True)\n    parser.define('ALPHA_N', True)\n    with open(sys.argv[1], 'r') as  file:\n      tree = parser.parse(file)\n      # tree will contain the parsed INI file as a Lark Tree\n      # object with any #if preprocessing directives applied\n      #\n      # The Lark tree conatins a lot of detail that most consumers\n      # won't need. It's main appeal is that the tree elements can\n      # be tied back to the file lines \u0026 columns\n      #\n      # Apply a predefined transform to convert the tree into\n      # an idiomatic Python object tree\n      dataclass = DataClassTransformer().transform(tree)\n\n      injBatRates = dataclass['Constants'][6]['injBatRates']\n      print(injBatRates.dim1d)\n\nNote that this parser is less tolerant of format issues than TunerStudio:\n\n - Key-value pairs: the value must be comma delimited (TunerStudio\n   tolerates spaces)\n  - There must be a blank line at the end\n   - Expression markers (\"{\", \"}\") and parentheses (\"(\", \")\") must be balanced\n   - All identifiers must be Java/C/C++ [identifers](https://docs.microsoft.com/en-us/cpp/c-language/c-identifiers?view=msvc-160) (no spaces, quotes etc.)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadbancroft%2Ftunerstudioiniparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadbancroft%2Ftunerstudioiniparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadbancroft%2Ftunerstudioiniparser/lists"}