{"id":17361455,"url":"https://github.com/alexandergrooff/lineinfile-python","last_synced_at":"2025-09-04T19:17:14.865Z","repository":{"id":116377633,"uuid":"199729643","full_name":"AlexanderGrooff/lineinfile-python","owner":"AlexanderGrooff","description":"Ansible's lineinfile module adapted in Python","archived":false,"fork":false,"pushed_at":"2019-07-30T21:35:36.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T16:52:13.289Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexanderGrooff.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":"2019-07-30T21:25:05.000Z","updated_at":"2020-12-28T22:56:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"9174d4f1-d775-4777-98ba-9b0bdc11f746","html_url":"https://github.com/AlexanderGrooff/lineinfile-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexanderGrooff/lineinfile-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderGrooff%2Flineinfile-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderGrooff%2Flineinfile-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderGrooff%2Flineinfile-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderGrooff%2Flineinfile-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderGrooff","download_url":"https://codeload.github.com/AlexanderGrooff/lineinfile-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderGrooff%2Flineinfile-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264506916,"owners_count":23619100,"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-10-15T19:33:31.497Z","updated_at":"2025-07-10T01:07:39.088Z","avatar_url":"https://github.com/AlexanderGrooff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lineinfile Python\n\nI often find myself wanting similar features of the lineinfile module from Ansible, which is why I decided to make a \nPython adaptation of the [lineinfile module](https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html)\nin [Ansible](https://www.ansible.com/).\n\n\n## List of features\n\nThe list of features supported in this adaptation is directly taken from the `lineinfile` module documentation.\n\n- [ ] Attributes\n- [ ] Backrefs\n- [ ] Backup\n- [x] Create\n- [ ] Firstmatch\n- [ ] Group\n- [ ] Insertafter\n- [ ] Insertbefore\n- [ ] Mode\n- [ ] Other\n- [ ] Owner\n- [x] Regexp\n- [ ] Selevel\n- [ ] Serole\n- [ ] Setype\n- [ ] Seuser\n- [ ] Unsafe_writes\n- [ ] Validate\n\n## Development\n```\ngit clone git@github.com:AlexanderGrooff/lineinfile-python.git\ncd lineinfile-python\nmkvirtualenv -a . -p python3 $(basename $(pwd))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandergrooff%2Flineinfile-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandergrooff%2Flineinfile-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandergrooff%2Flineinfile-python/lists"}