{"id":17033167,"url":"https://github.com/niedbalski/python-act_as_executable","last_synced_at":"2025-07-29T10:08:51.254Z","repository":{"id":8131081,"uuid":"9548568","full_name":"niedbalski/python-act_as_executable","owner":"niedbalski","description":"Python wrapper to transform a function into an executable call, Very useful for constructing wrappers to CLI interfaces.","archived":false,"fork":false,"pushed_at":"2015-12-16T17:32:52.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T21:20:47.269Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niedbalski.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}},"created_at":"2013-04-19T15:33:41.000Z","updated_at":"2015-12-16T17:32:52.000Z","dependencies_parsed_at":"2022-07-21T12:03:38.780Z","dependency_job_id":null,"html_url":"https://github.com/niedbalski/python-act_as_executable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/niedbalski/python-act_as_executable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niedbalski%2Fpython-act_as_executable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niedbalski%2Fpython-act_as_executable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niedbalski%2Fpython-act_as_executable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niedbalski%2Fpython-act_as_executable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niedbalski","download_url":"https://codeload.github.com/niedbalski/python-act_as_executable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niedbalski%2Fpython-act_as_executable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668687,"owners_count":24124966,"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-29T02:00:12.549Z","response_time":2574,"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-10-14T08:32:56.904Z","updated_at":"2025-07-29T10:08:51.230Z","avatar_url":"https://github.com/niedbalski.png","language":"Python","readme":"act_as_executable\n=================\n\nPython wrapper to make a method to call an executable before its called.\nVery useful wrapper for constructing wrappers on top of CLI interfaces.\n\n\nInstallation\n============\n\n```\npip install act_as_executable\n```\n\nExample\n=======\n\n```python\n\nfrom act_as_executable import act_as_executable\n\nclass CommandWrapper:\n    \n     @act_as_executable('ifconfig -i $arg_0 --state $state')\n     def ifconfig(self, *args, **results):\n         '''\n           { 'results' : 'command_output' }\n         '''\n         return results\n\n\nc = CommandWrapper()\nc.ifconfig('eth0', state='down')\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniedbalski%2Fpython-act_as_executable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniedbalski%2Fpython-act_as_executable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniedbalski%2Fpython-act_as_executable/lists"}