{"id":26529490,"url":"https://github.com/cappe987/python-code-generator","last_synced_at":"2026-05-18T11:35:17.676Z","repository":{"id":134109179,"uuid":"205002477","full_name":"cappe987/python-code-generator","owner":"cappe987","description":"An F# combinator to generate randomized Python code.","archived":false,"fork":false,"pushed_at":"2019-11-23T17:22:52.000Z","size":296,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T16:57:54.898Z","etag":null,"topics":["code-generation","fsharp","python"],"latest_commit_sha":null,"homepage":"","language":"F#","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/cappe987.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-28T18:56:20.000Z","updated_at":"2023-08-06T20:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"b67956c4-41c7-4fbf-8903-7665cb3a0a7e","html_url":"https://github.com/cappe987/python-code-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cappe987/python-code-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fpython-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fpython-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fpython-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fpython-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cappe987","download_url":"https://codeload.github.com/cappe987/python-code-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappe987%2Fpython-code-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33177159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["code-generation","fsharp","python"],"created_at":"2025-03-21T16:34:03.469Z","updated_at":"2026-05-18T11:35:17.671Z","avatar_url":"https://github.com/cappe987.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python code generator\n\nAn F# combinator to generate randomized Python code. [View example output.](output/example.py)\n\nThe parameters can be adjusted in `settings.json`. \n\nThe `\"depth\"` parameter is the amount of nested statements the code is allowed to have.\nThe rest are how common each statement should be, in relation to the others. \nIf all are set to the same value they have equal chance to occur in the code.\n\nThe file `words.txt` is the source for all variable names and strings.\n\nCode is by default outputted to `output/output.py`.\n\n# To-do list\n- [x] `if` and `else` statements\n- [x] Assignment expressions\n- [X] More reasonable integers\n- [X] Comparative expressions (`\u003c`, `\u003e`, `==`, `\u003c=`, `\u003e=`) and overall better boolean expressions\n- [ ] More syntax (`for`, `while`, etc.)\n- [ ] Functions\n- [ ] More settings (occurrance of types, length of blocks, expression depth)\n- [ ] Floats\n- [ ] Remove char type and integrate it into strings\n- [ ] Clean up Variables.fs\n- [ ] Overall more human-like code\n- [ ] Monad of Code type\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappe987%2Fpython-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcappe987%2Fpython-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappe987%2Fpython-code-generator/lists"}