{"id":21066550,"url":"https://github.com/sslotin/autofire","last_synced_at":"2025-05-16T03:32:00.251Z","repository":{"id":57412767,"uuid":"179122755","full_name":"sslotin/autofire","owner":"sslotin","description":"Tiny tool for calling arbitrary Python functions via an auto-generated CLI","archived":false,"fork":false,"pushed_at":"2019-05-23T20:58:37.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-01T22:38:47.732Z","etag":null,"topics":["cli","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sslotin.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}},"created_at":"2019-04-02T17:03:21.000Z","updated_at":"2023-06-30T19:51:09.000Z","dependencies_parsed_at":"2022-09-26T17:11:19.497Z","dependency_job_id":null,"html_url":"https://github.com/sslotin/autofire","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sslotin%2Fautofire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sslotin%2Fautofire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sslotin%2Fautofire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sslotin%2Fautofire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sslotin","download_url":"https://codeload.github.com/sslotin/autofire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225402482,"owners_count":17468832,"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":["cli","python"],"created_at":"2024-11-19T18:00:13.764Z","updated_at":"2024-11-19T18:00:14.650Z","avatar_url":"https://github.com/sslotin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autofire\n\nRidiculously small package that allows creating command line interfaces in O(0) time with Google's [Python Fire](https://github.com/google/python-fire).\n\nTo install with pip, run: `pip install autofire`\n\n## Usage\n\nSay you have a file `example.py`:\n\n```python\ndef sum(a, b):\n    return a + b\n\nclass Calculator:\n    def double(self, some_number):\n        return 2*some_number\n\nimport math\n```\n\nThen, from the command line, you can just run:\n\n```bash\nfire example.py sum 2 3\nfire example.py Calculator double 5\nfire example.py Calculator double --some_number=15\nfire example.py math log 6\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsslotin%2Fautofire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsslotin%2Fautofire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsslotin%2Fautofire/lists"}