{"id":18421930,"url":"https://github.com/pyogenics/py2bf","last_synced_at":"2025-04-13T12:11:15.049Z","repository":{"id":83736614,"uuid":"602692755","full_name":"Pyogenics/py2bf","owner":"Pyogenics","description":"Python to Brainfuck transpiler","archived":false,"fork":false,"pushed_at":"2023-08-15T12:38:34.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T07:25:55.825Z","etag":null,"topics":["brainfuck","python","transpiler"],"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/Pyogenics.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":"2023-02-16T18:42:13.000Z","updated_at":"2023-02-17T17:55:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"40a12cc9-f6a9-478a-8f73-3ffd741eab29","html_url":"https://github.com/Pyogenics/py2bf","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/Pyogenics%2Fpy2bf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2Fpy2bf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2Fpy2bf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2Fpy2bf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pyogenics","download_url":"https://codeload.github.com/Pyogenics/py2bf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710445,"owners_count":21149190,"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":["brainfuck","python","transpiler"],"created_at":"2024-11-06T04:27:21.339Z","updated_at":"2025-04-13T12:11:15.009Z","avatar_url":"https://github.com/Pyogenics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python to brainfuck transpiler\nThis tool compiles python to bytecode and then transpiles the bytecode into brainfuck.\n\n## Usage\nTested on python 3.10\n```\n./py2bf.py file1.py file2.py ...\n```\n## Working example\nThis is about the most functionality you can get out of this so far.\n```python\nprint(\"This is an example program\")\n\ndef printFeatures():\n    print(\"Basic functions work!\")\n\nprintFeatures()\n\ndef featuresWithArgs(feature):\n\tprint(feature)\n\nfeaturesWithArgs(\"Arguments to functions work\")\n\nvariables = \"And so do variables outside functions\"\nprint(variables)\n```\n\n## Compatibility\npy2bf only supports python 3.7 and newer, for now.\nInformation relative to python 3.11.2:\n### Builtins\nOnly print and input are implemented (Improperly!)\n\n### Builtin types\n|Name|Status|Note|\n|----|------|----|\n|int|no||\n|float|no||\n|complex|no||\n|list|no||\n|tuple|no||\n|range|no||\n|str|yes||\n|bytes|no||\n|bytearray|no||\n|memoryview|no||\n|set|no||\n|frozenset|no||\n|dict|no||\n|generic|no||\n|alias|no||\n|union|no||\n\n### Instructions\n|Name|Status|Note|\n|----|------|----|\n|NOP |yes   |    |\n|POP_TOP|yes|    |\n|COPY|no||\n|SWAP|no||\n|CACHE|no||\n|UNARY_POSITIVE|no||\n|UNARY_NEGATIVE|no||\n|UNARY_NOT|no||\n|UNARY_INVERT|no||\n|GET_ITER|no||\n|GET_YIELD_FROM_ITER|no||\n|BINARY_OP|no||\n|BINARY_SUBSCR|no||\n|STORE_SUBSCR|no||\n|DELETE_SUBSCR|no||\n|GET_AWAITABLE|no||\n|GET_AITER|no||\n|GET_ANEXT|no||\n|END_ASYNC_FOR|no||\n|BEFORE_ASYNC_WITH|no||\n|PRINT_EXPR|no||\n|SET_ADD|no||\n|LIST_APPEND|no||\n|MAP_ADD|no||\n|RETURN_VALUE|no|Added but not implemented yet|\n|YIELD_VALUE|no||\n|SETUP_ANNOTATIONS|no||\n|IMPORT_STAR|no||\n|POP_EXCEPT|no||\n|RERAISE|no||\n|PUSH_EXC_INFO|no||\n|CHECK_EXC_MATCH|no||\n|CHECK_EG_MATCH|no||\n|PREP_RERAISE_STAR|no||\n|WITH_EXCEPT_START|no||\n|LOAD_ASSERTION_ERROR|no||\n|LOAD_BUILD_CLASS|no||\n|BEFORE_WITH|no||\n|GET_LEN|no||\n|MATCH_MAPPING|no||\n|MATCH_SEQUENCE|no||\n|MATCH_KEYS|no||\n|STORE_NAME|yes||\n|DELETE_NAME|no||\n|UNPACK_SEQUENCE|no||\n|UNPACK_EX|no||\n|STORE_ATTR|no||\n|DELETE_ATTR|no||\n|STORE_GLOBAL|no||\n|DELETE_GLOBAL|no||\n|LOAD_CONST|yes||\n|LOAD_NAME|yes||\n|BUILD_TUPLE|no||\n|BUILD_LIST|no||\n|BUILD_SET|no||\n|BUILD_MAP|no||\n|BUILD_CONST_KEY_MAP|no||\n|BUILD_STRING|no||\n|LIST_TO_TUPLE|no||\n|LIST_EXTEND|no||\n|SET_UPDATE|no||\n|DICT_UPDATE|no||\n|DICT_MERGE|no||\n|LOAD_ATTR|no||\n|COMPARE_OP|no||\n|IS_OP|no||\n|CONTAINS_OP|no||\n|IMPORT_NAME|no||\n|IMPORT_FROM|no||\n|JUMP_FORWARD|no||\n|JUMP_BACKWARD|no||\n|JUMP_BACKWARD_NO_INTERRUPT|no||\n|POP_JUMP_FORWARD_IF_TRUE|no||\n|POP_JUMP_BACKWARD_IF_TRUE|no||\n|POP_JUMP_FORWARD_IF_FALSE|no||\n|POP_JUMP_BACKWARD_IF_FALSE|no||\n|POP_JUMP_FORWARD_IF_NOT_NONE|no||\n|POP_JUMP_BACKWARD_IF_NOT_NONE|no||\n|POP_JUMP_FORWARD_IF_NONE|no||\n|POP_JUMP_BACKWARD_IF_NONE|no||\n|JUMP_IF_TRUE_OR_POP|no||\n|JUMP_IF_FALSE_OR_POP|no||\n|FOR_ITER|no||\n|LOAD_GLOBAL|yes||\n|LOAD_FAST|yes||\n|STORE_FAST|no||\n|DELETE_FAST|no||\n|MAKE_CELL|no||\n|LOAD_CLOSURE|no||\n|LOAD_DEREF|no||\n|LOAD_CLASS_DEREF|no||\n|STORE_DEREF|no||\n|DELETE_DEREF|no||\n|COPY_FREE_VARS|no||\n|RAISE_VARARGS|no||\n|CALL|no||\n|CALL_FUNCTION_EX|no|CALL_FUNCTION is implemented|\n|LOAD_METHOD|no||\n|PRECALL|no||\n|PUSH_NULL|no||\n|KW_NAMES|no||\n|MAKE_FUNCTION|yes|Flags not implemented|\n|BUILD_SLICE|no||\n|EXTENDED_ARG|no||\n|FORMAT_VALUE|no||\n|MATCH_CLASS|no||\n|RESUME|no||\n|RETURN_GENERATOR|no||\n|SEND|no||\n|ASYNC_GEN_WRAP|no||\n|HAVE_ARGUMENT|no||\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyogenics%2Fpy2bf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyogenics%2Fpy2bf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyogenics%2Fpy2bf/lists"}