{"id":13872150,"url":"https://github.com/Ponyboy47/ConfigParser","last_synced_at":"2025-07-16T01:33:02.379Z","repository":{"id":63920331,"uuid":"167876066","full_name":"Ponyboy47/ConfigParser","owner":"Ponyboy47","description":"A pure-Swift INI Config parser","archived":false,"fork":false,"pushed_at":"2019-12-12T00:38:13.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T14:44:56.525Z","etag":null,"topics":["configparser","ini","ini-parser","spm","swift","swift-package-manager"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/Ponyboy47.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}},"created_at":"2019-01-28T00:44:25.000Z","updated_at":"2022-08-12T15:59:03.000Z","dependencies_parsed_at":"2022-11-29T10:45:32.117Z","dependency_job_id":null,"html_url":"https://github.com/Ponyboy47/ConfigParser","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponyboy47%2FConfigParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponyboy47%2FConfigParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponyboy47%2FConfigParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ponyboy47%2FConfigParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ponyboy47","download_url":"https://codeload.github.com/Ponyboy47/ConfigParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226090030,"owners_count":17572114,"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":["configparser","ini","ini-parser","spm","swift","swift-package-manager"],"created_at":"2024-08-05T23:00:35.195Z","updated_at":"2024-11-23T19:31:38.640Z","avatar_url":"https://github.com/Ponyboy47.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# ConfigParser\n\nA pure-Swift implementation of the INI config parser\n\n## Installation\n### Swift Package Manager\n```swift\n.package(url: \"https://github.com/Ponyboy47/ConfigParser.git\", from: \"0.4.0\")\n```\n\n## Usage\n```swift\nimport ConfigParser\n\nlet confString = \"\"\"\n[section1]\nkey1 = value1\nkey2 = 1, 2, 3, 4\n\n[section2]\nkey1 = test\nkey2 = 1234\n\"\"\"\n\nlet config = try ConfigParser.parse(confString)\n\n// Use subscripts to get the value you want in the type you want\nlet key1s1: String? = config[section: \"section1\", key: \"key1\"] // Optional\u003cString\u003e(value1)\nlet key2s1 = config[section: \"section2\", key: \"key1\", default: [4, 3, 2, 1]] // [1, 2, 3, 4]\n```\nSupported Types:\n- String\n- Bool\n- Int (8,16,32,64 and all the UInt variants)\n- Double\n- Float and Float80\n- Arrays of any of the above types\n\n## TODO\n- [ ] Section/Key name validation (must start with an alphabet character)\n- [x] Retrieve values as specified type\n  - [x] Bool\n  - [x] String (default)\n  - [x] Double/Float\n  - [x] Int\n  - [x] Array\n- [x] Write config to file\n- [ ] Escape sequences (bug fix)\n- [ ] Multi-line values\n- [x] Read from string\n- [ ] Customizable options\n  - [ ] Delimeter (ie: ':' instead of '=')\n  - [ ] Don't trim whitespace\n  - [ ] Nested sections\n    - [ ] Dotted section titles\n    - [ ] Indented sections\n  - [ ] Duplicate key behavior\n    - [ ] Keep first\n    - [ ] Overwrite\n    - [ ] Error\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPonyboy47%2FConfigParser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPonyboy47%2FConfigParser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPonyboy47%2FConfigParser/lists"}