{"id":23127864,"url":"https://github.com/hcikikci/python-configparser","last_synced_at":"2025-06-16T13:05:55.447Z","repository":{"id":192105767,"uuid":"263687480","full_name":"hcikikci/python-configparser","owner":"hcikikci","description":"It contains modules developed to easily perform basic operations on the config Files.","archived":false,"fork":false,"pushed_at":"2024-12-14T19:11:46.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T17:15:25.345Z","etag":null,"topics":["configparser","configuration","options","python","sections"],"latest_commit_sha":null,"homepage":null,"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/hcikikci.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}},"created_at":"2020-05-13T16:40:34.000Z","updated_at":"2024-12-14T19:11:50.000Z","dependencies_parsed_at":"2023-09-02T15:53:40.882Z","dependency_job_id":"b5f81500-5837-446e-9203-24c389d069f7","html_url":"https://github.com/hcikikci/python-configparser","commit_stats":null,"previous_names":["hcikikci/configparser-modules","hcikikci/python-configparser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcikikci%2Fpython-configparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcikikci%2Fpython-configparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcikikci%2Fpython-configparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hcikikci%2Fpython-configparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hcikikci","download_url":"https://codeload.github.com/hcikikci/python-configparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128739,"owners_count":20888234,"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","configuration","options","python","sections"],"created_at":"2024-12-17T09:15:24.052Z","updated_at":"2025-04-04T05:42:52.177Z","avatar_url":"https://github.com/hcikikci.png","language":"Python","readme":"# Configparser-Modules\n\nThis module is a tool developed to easily perform basic operations on config files in Python. It simplifies managing .ini files using the ConfigParser library.\n\n## Features\n\n- Add and delete sections\n- Rename sections\n- Update options\n- Search sections\n- Get values\n\n## Installation\n\nClone the project and add it to your Python environment:\n\n```bash\ngh repo clone hcikikci/python-configparser\n```\n\n## Usage\n\n### Available Functions:\n\n1. `Add_Section(filename, section, **kwargs)`:\n\n   - Adds a new section and options\n\n   ```python\n   Add_Section(\"database.ini\", \"Settings\", username=\"user1\", password=\"pass123\")\n   ```\n\n2. `Delete_Section(filename, section)`:\n\n   - Deletes the specified section\n\n   ```python\n   Delete_Section(\"database.ini\", \"Settings\")\n   ```\n\n3. `Update_Option(filename, section, **kwargs)`:\n\n   - Updates existing options\n\n   ```python\n   Update_Option(\"database.ini\", \"Settings\", username=\"newuser\", password=\"newpass\")\n   ```\n\n4. `Rename_Section(filename, section_from, section_to)`:\n\n   - Renames a section\n\n   ```python\n   Rename_Section(\"database.ini\", \"Settings\", \"NewSettings\")\n   ```\n\n5. `Find_Section(filename, str_inside_of_section)`:\n\n   - Finds sections containing the specified text\n\n   ```python\n   sections = Find_Section(\"database.ini\", \"Account\")\n   ```\n\n6. `Get_Value(filename, section, *args)`:\n   - Retrieves values for specified options\n   ```python\n   values = Get_Value(\"database.ini\", \"Settings\", \"username\", \"password\")\n   ```\n\n## Error Handling\n\nThe module returns appropriate error messages in the following cases:\n\n- When attempting to add an existing section\n- When attempting to delete a non-existent section\n- When attempting to update a non-existent option\n- When attempting to rename a non-existent section\n\n## License\n\nThis project is open source.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhcikikci%2Fpython-configparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhcikikci%2Fpython-configparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhcikikci%2Fpython-configparser/lists"}