{"id":19430265,"url":"https://github.com/8dcc/text2brainfuck","last_synced_at":"2026-06-13T16:33:49.124Z","repository":{"id":152864628,"uuid":"381116808","full_name":"8dcc/text2brainfuck","owner":"8dcc","description":"Python script for transforming text into brainfuck.","archived":false,"fork":false,"pushed_at":"2022-11-02T22:07:58.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T22:31:00.075Z","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":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/8dcc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-06-28T17:48:01.000Z","updated_at":"2022-02-13T17:59:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"370d6f2f-76c8-46df-93c8-88620543feb5","html_url":"https://github.com/8dcc/text2brainfuck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/8dcc/text2brainfuck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Ftext2brainfuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Ftext2brainfuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Ftext2brainfuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Ftext2brainfuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8dcc","download_url":"https://codeload.github.com/8dcc/text2brainfuck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Ftext2brainfuck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34292324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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-11-10T14:24:11.230Z","updated_at":"2026-06-13T16:33:49.117Z","avatar_url":"https://github.com/8dcc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text to brainfuck\nPython script for transforming text into brainfuck.\nI had a look at brainfuck this morning and I decided to write this script in python.\n\nI spent way too much time on this shit, enjoy being edgy.\n\nYou can test your brainfuck on [here](https://copy.sh/brainfuck/), [here](https://fatiherikli.github.io/brainfuck-visualizer/) or search on github.\n\n## Installing\n\n```bash\ngit clone https://github.com/r4v10l1/text2brainfuck\ncd text2brainfuck\npython text2bf.py [-f file.txt]\n```\n\n```bash\npython bf_stabilizer.py file.bf  # If you want to make it pretty\n```\n\n## Configuration\nYou can edit this 3 variables, I might add an argument for them or something.\n\n#### Debug\n```python\ndebug = False\n```\nBoolean. If set to true, it will display information about each character on the screen. See [How it works](https://github.com/r4v10l1/text2brainfuck/blob/main/README.md#how-it-works)\n#### Mode\n```python\nmode = \"3\"\n```\nString. It is important to write the ```\" \"```.\n\nThere are 3 modes:\n* **Mode one**: Will use a memory block for each character, and the next one as auxiliar when writing.\n* **Mode two**: Will write in the first block, and use the next one as auxiliar. After printing the final number, it will subtract 1 until the block is empty. Then it will begin to write the next value in the same block, using the second as auxiliar like it did in the previous value.\n* **Mode three**: Will use mode one for the first value, then it will check if the new value is bigger, smaller or the same as the old one. Depending on that, it will increase the old block value, reduce the old value until it reaches the new one, or it will print the value again, if it is the same.\n\n#### Match paragraphs\n```python\nmatch_paragraphs = False\n```\nBoolean. If set to false, it will write the output as one line, even if there is more than one line in the input file.\n\nIf set to false, it will add ```\\n\\n``` (an empty line) between the paragraphs when writing the output file.\n\n## How it works\n\nSee this for more detail: https://gist.github.com/r4v10l1/34a13e265b528c4975a719abed3d45a0\n\nExample:\n\n```\n   ┌ Character: a\n   │ Ascii value: 97\n   │ Value 1: 9\n   │ Value 2: 10\n   │ BF Total: 90\n   └ BF Remaining: 7\n```\nIn this example, what brainfuck will do is add to the current memory block the ```Value 1``` in a loop that will execute ```Value 2``` times.\n\nIn order to know how many times it needs to add ```Value 1```, we store that (```Value 2```) in the next block (What I've been calling auxiliar).\n\nIf the ```Ascii value``` is not ```Value 1``` * ```Value 2```, it will store the difference in ```BF Remaining```, and then add it to the memory block.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Ftext2brainfuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8dcc%2Ftext2brainfuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Ftext2brainfuck/lists"}