{"id":13501254,"url":"https://github.com/pytest-dev/iniconfig","last_synced_at":"2025-03-29T08:32:14.331Z","repository":{"id":40302888,"uuid":"66012563","full_name":"pytest-dev/iniconfig","owner":"pytest-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-03T11:06:08.000Z","size":102,"stargazers_count":56,"open_issues_count":5,"forks_count":30,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-17T11:02:53.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pytest-dev.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","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":"2016-08-18T16:20:15.000Z","updated_at":"2025-02-25T10:58:06.000Z","dependencies_parsed_at":"2024-11-05T21:34:13.031Z","dependency_job_id":null,"html_url":"https://github.com/pytest-dev/iniconfig","commit_stats":{"total_commits":123,"total_committers":15,"mean_commits":8.2,"dds":0.4796747967479674,"last_synced_commit":"16793eaddac67de0b8d621ae4e42e05b927e8d67"},"previous_names":["ronnypfannschmidt/iniconfig"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Finiconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Finiconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Finiconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Finiconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytest-dev","download_url":"https://codeload.github.com/pytest-dev/iniconfig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162092,"owners_count":20733351,"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":[],"created_at":"2024-07-31T22:01:30.712Z","updated_at":"2025-03-29T08:32:13.983Z","avatar_url":"https://github.com/pytest-dev.png","language":"Python","readme":"iniconfig: brain-dead simple parsing of ini files\n=======================================================\n\niniconfig is a small and simple INI-file parser module\nhaving a unique set of features:\n\n* maintains order of sections and entries\n* supports multi-line values with or without line-continuations\n* supports \"#\" comments everywhere\n* raises errors with proper line-numbers\n* no bells and whistles like automatic substitutions\n* iniconfig raises an Error if two sections have the same name.\n\nIf you encounter issues or have feature wishes please report them to:\n\n    https://github.com/RonnyPfannschmidt/iniconfig/issues\n\nBasic Example\n===================================\n\nIf you have an ini file like this:\n\n.. code-block:: ini\n\n    # content of example.ini\n    [section1] # comment\n    name1=value1  # comment\n    name1b=value1,value2  # comment\n\n    [section2]\n    name2=\n        line1\n        line2\n\nthen you can do:\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e import iniconfig\n    \u003e\u003e\u003e ini = iniconfig.IniConfig(\"example.ini\")\n    \u003e\u003e\u003e ini['section1']['name1'] # raises KeyError if not exists\n    'value1'\n    \u003e\u003e\u003e ini.get('section1', 'name1b', [], lambda x: x.split(\",\"))\n    ['value1', 'value2']\n    \u003e\u003e\u003e ini.get('section1', 'notexist', [], lambda x: x.split(\",\"))\n    []\n    \u003e\u003e\u003e [x.name for x in list(ini)]\n    ['section1', 'section2']\n    \u003e\u003e\u003e list(list(ini)[0].items())\n    [('name1', 'value1'), ('name1b', 'value1,value2')]\n    \u003e\u003e\u003e 'section1' in ini\n    True\n    \u003e\u003e\u003e 'inexistendsection' in ini\n    False\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Finiconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-dev%2Finiconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Finiconfig/lists"}