{"id":22021803,"url":"https://github.com/mezantrop/salpy","last_synced_at":"2025-08-18T23:04:00.691Z","repository":{"id":177057236,"uuid":"659452464","full_name":"mezantrop/salpy","owner":"mezantrop","description":"Self-altering Python code class","archived":false,"fork":false,"pushed_at":"2023-06-29T19:10:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-18T23:02:45.672Z","etag":null,"topics":["python","self-modifying-code"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mezantrop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-27T21:44:11.000Z","updated_at":"2023-06-28T19:10:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7efbfcc-1f7a-4709-b3e1-e25cfd1841bd","html_url":"https://github.com/mezantrop/salpy","commit_stats":null,"previous_names":["mezantrop/salpy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mezantrop/salpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezantrop%2Fsalpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezantrop%2Fsalpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezantrop%2Fsalpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezantrop%2Fsalpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mezantrop","download_url":"https://codeload.github.com/mezantrop/salpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezantrop%2Fsalpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271073387,"owners_count":24694538,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["python","self-modifying-code"],"created_at":"2024-11-30T06:15:11.442Z","updated_at":"2025-08-18T23:04:00.648Z","avatar_url":"https://github.com/mezantrop.png","language":"Python","funding_links":["https://www.buymeacoffee.com/mezantrop"],"categories":[],"sub_categories":[],"readme":"# A Python class to help creating self-altering code\n\n\u003ca href=\"https://www.buymeacoffee.com/mezantrop\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n## Usage\n\n```Python\nimport salpy\n\n# Changeme\n\nnew_code = \"\"\"\nprint(\"Hello world!\")\nexit(0)\n\"\"\"\n\nslp = salpy.Salpy()\nslp.read()\n\n#\n# slp.find_line(...)\n# slp.find_block(...)\n# slp.del_line(...)\n# slp.insert_line(...)\n# slp.replace_line(...)\n# slp.insert_lines(...)\n#\n\nentry_point = slp.replace_line(old_string='Changeme', new_string=new_code)\nslp.write()\n```\n\nEarly stage of development, don't expect everything to work properly. If you have an idea, a question, or have found\na problem, do not hesitate to open an issue or mail me: Mikhail Zakharov zmey20000@yahoo.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmezantrop%2Fsalpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmezantrop%2Fsalpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmezantrop%2Fsalpy/lists"}