{"id":18613940,"url":"https://github.com/enthought/elfrewriter","last_synced_at":"2025-07-30T16:04:34.952Z","repository":{"id":10864637,"uuid":"13149981","full_name":"enthought/elfrewriter","owner":"enthought","description":"Default Repo description from terraform module","archived":false,"fork":false,"pushed_at":"2013-09-27T14:31:03.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-07T20:43:40.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enthought.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-27T12:32:06.000Z","updated_at":"2021-06-01T20:34:27.000Z","dependencies_parsed_at":"2022-08-29T22:11:51.952Z","dependency_job_id":null,"html_url":"https://github.com/enthought/elfrewriter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/enthought/elfrewriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Felfrewriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Felfrewriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Felfrewriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Felfrewriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enthought","download_url":"https://codeload.github.com/enthought/elfrewriter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Felfrewriter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267895313,"owners_count":24162181,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-11-07T03:24:25.090Z","updated_at":"2025-07-30T16:04:34.898Z","avatar_url":"https://github.com/enthought.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Elfrewriter is a small set of tools built on top of pyelftools to retrieve and\nchange informations about elf binaries. It is mostly concerned with ELF\nfeatures relevant to make relocatable binaries (DT_RUNPATH feature).\n\nExample::\n\n        from elfrewriter import ELFRewriter\n\n        rewriter = ELFRewriter(\"a.out\")\n        print rewriter.dependencies\n        print rewriter.rpaths\n\n        # One can change rpaths, but changes will only be written after commit\n        # has been called (see also known limitations).\n        rewriter = ELFRewriter(\"a.out\")\n        rewriter.rpaths = [\"yo\", \"mama\"]\n        rewriter.commit()\n\n        # Use a context manager to ensure changes are committed\n        with ELFRewriter(\"a.out\") as rewriter:\n            rewriter.rpaths = [\"yo\", \"mama\"]\n\nMain features:\n\n        - ability to query/change rpath\n        - ability to query/change the dependencies\n\nKnown limitations:\n\n        - modification is done through patchelf binary in a subprocess:\n          http://nixos.org/patchelf.html. In theory, one could implement the\n          feature using pyelftools, but that would be quite a bit of work in\n          the case where the rpath entry needs to grow. Patches welcome though !\n        - consequence of the above: while querying works on any platform\n          supported by pyelftools, modifying a binary only works on a machine\n          with patchelf (most likely only Linux).\n\nDevelopment happens on `github \u003chttp://github.com/enthought/elfrewriter\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenthought%2Felfrewriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenthought%2Felfrewriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenthought%2Felfrewriter/lists"}