{"id":37081545,"url":"https://github.com/gubenkoved/simplini","last_synced_at":"2026-01-14T09:54:36.366Z","repository":{"id":317260370,"uuid":"1065916375","full_name":"gubenkoved/simplini","owner":"gubenkoved","description":"Simple comments preserving INI parser for Python","archived":false,"fork":false,"pushed_at":"2025-10-07T18:10:09.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T20:15:15.968Z","etag":null,"topics":["ini","ini-parser","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/simplini/","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/gubenkoved.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-28T17:27:47.000Z","updated_at":"2025-10-07T18:10:13.000Z","dependencies_parsed_at":"2025-09-29T21:43:50.613Z","dependency_job_id":null,"html_url":"https://github.com/gubenkoved/simplini","commit_stats":null,"previous_names":["gubenkoved/simplini"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gubenkoved/simplini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gubenkoved%2Fsimplini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gubenkoved%2Fsimplini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gubenkoved%2Fsimplini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gubenkoved%2Fsimplini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gubenkoved","download_url":"https://codeload.github.com/gubenkoved/simplini/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gubenkoved%2Fsimplini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","ini-parser","python3"],"created_at":"2026-01-14T09:54:33.511Z","updated_at":"2026-01-14T09:54:36.360Z","avatar_url":"https://github.com/gubenkoved.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Simplini Logo](resources/logo.png)\n\n[![CI](https://github.com/gubenkoved/simplini/actions/workflows/ci.yml/badge.svg)](https://github.com/gubenkoved/simplini/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA **simple** INI file parser and writer for Python that works.\n\n## Installation\n\n```bash\npip install simplini\n```\n\n## Why?\n\nThe reasons this library was created:\n\n* Standard library configparser does not support round trip editing (comments will not be written back), see https://docs.python.org/3/library/configparser.html\n* Alternatives like https://github.com/DiffSK/configobj have a lot of bugs and are not actively maintained\n\n## Comparison\n\n| Library        | Round-trip editing | Maintenance  | Correctness | Configurability | Multi-line values | Error reporting  |\n|----------------|--------------------|--------------|-------------|-----------------|-------------------|------------------|\n| `configparser` | ❌                  | 🟢           | ✅       | ✅               | ✅                  | 🙂            |\n| `ConfigObj`    | ✅                  | 🔴           | 🐛      | ❌               | ❌                  | 🤔                 |\n| `python-ini`   | ❌                  | ❓           | ❓      | ✅               | ❓                | 🙁                 |\n| `ini-parser`   |  ✅                 | ❓           | 🐛       | ❌                | ❌                 | 🙁               |\n| `simplini`     | ✅                  | 🟢           | ✅        | ✅               | ✅                  | 🥰 |\n\n## Features\n\n* Simple API\n* Round-trip editing preserving comments\n* Non-ambiguous strings encoding\n* Configurable parsing and rendering behavior\n* No surprises like sudden interpolation or lower-casing option names\n\n## Usage\n\nBasic usage example:\n\n```python\nfrom simplini import IniConfig\n\n# create a new INI config\nconfig = IniConfig()\n\n# add values to the default section\nconfig.set(\"app_name\", \"My App\")\nconfig.set(\"version\", \"1.0.0\")\n\n# you can use section object to interact with section settings\ndb_section = config.ensure_section(\"database\")\ndb_section.comment = ['Contains database settings']\n\ndb_provider_opt = db_section.set(\"provider\", \"mysql\")\ndb_provider_opt.comment = [\n    \"Controls the DB provider to be used\"\n]\n\n# ... or set values directly via root config object\nconfig.set(\"version\", \"1.2.3\", section_name=\"database\")\n\n# save to file\nconfig.save(\"config.ini\")\n\n# load back from file\nloaded_config = IniConfig.load(\"config.ini\")\n\napp_name = loaded_config.get(\"app_name\")  # My App\nversion = loaded_config.get(\"version\")  # 1.0.0\n\ndb_section = loaded_config.get_section(\"database\")\n\ndb_provider = db_section.get(\"provider\")  # mysql\ndb_version = db_section.get(\"version\")  # 1.2.3\n```\n\nExample config file output:\n```ini\napp_name = \"My App\"\n\nversion = \"1.0.0\"\n\n# Contains database settings\n[database]\n\n# Controls the DB provider to be used\nprovider = \"mysql\"\n\nversion = \"1.2.3\"\n\n```\n\n## License\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgubenkoved%2Fsimplini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgubenkoved%2Fsimplini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgubenkoved%2Fsimplini/lists"}