{"id":20690757,"url":"https://github.com/levsh/terrapy","last_synced_at":"2026-04-24T14:02:15.459Z","repository":{"id":158362292,"uuid":"306925085","full_name":"levsh/terrapy","owner":"levsh","description":"Python to Terraform converter","archived":false,"fork":false,"pushed_at":"2020-10-24T16:39:35.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T01:27:31.436Z","etag":null,"topics":["cloud-management","infrastucture-as-code","python","terraform"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levsh.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":"2020-10-24T16:29:54.000Z","updated_at":"2021-03-20T05:10:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"62c6381e-a908-43cf-9238-dc387a592f93","html_url":"https://github.com/levsh/terrapy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levsh/terrapy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fterrapy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fterrapy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fterrapy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fterrapy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levsh","download_url":"https://codeload.github.com/levsh/terrapy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fterrapy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32226408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloud-management","infrastucture-as-code","python","terraform"],"created_at":"2024-11-16T23:14:09.885Z","updated_at":"2026-04-24T14:02:15.424Z","avatar_url":"https://github.com/levsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terrapy\nPython to Terraform converter\n\nCreate main.py file\n```python\nfrom terrapy import Item, Plan\n\nplan = Plan()\n\nplan += Item(\n    \"terraform\",\n    required_version='\"\u003e= 0.13\"',\n)\n\nplan += Item(\n    \"variable\",\n    \"test_variable\",\n    type=\"list(object({one=number, two=number}))\",\n    default=[{\"one\": 1, \"two\": 2}],\n)\n\nplan += Item(\"provider\", \"docker\", host='\"unix:///var/run/docker.sock\"')\nplan += Item(\"resource\", \"docker_container\", \"foo\", image='\"redis\"', name='\"foo\"')\nplan += Item(\"module\", \"module_a\", source='\"./module_a\"')\n\nplan += Item(\"output\", \"container_foo_id\", value=\"docker_container.foo.id\")\n```\nThen run\n```\n$ terrapy generate -u\n$ terraform validate\n```\n\n```\n$ terrapy generate -h\nusage: terrapy generate [-h] [-u] [DIR]\n\nGenerate terraform plans\n\npositional arguments:\n  DIR            directory with root main.py (default: current directory)\n\noptional arguments:\n  -h, --help     show this help message and exit\n  -u, --upgrade  run 'terraform 0.13upgrade' command for each module\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevsh%2Fterrapy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevsh%2Fterrapy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevsh%2Fterrapy/lists"}