Staples
Designed by | SeafoodStudios (User:Fish) |
---|---|
Appeared in | 2025 |
Computational class | Turing complete |
Reference implementation | Staples Python |
Major implementations | StaplesWeb |
Influenced by | Whitespace, Ook! |
File extension(s) | .staples |

Staples is a esoteric language to make Python just a little bit easier... by reducing the available characters to 4 and adding a checksum.
History
Staples was made as SeafoodStudios's (User:Fish) first Turing complete language. The idea came from Whitespace and Ook!, which are nearly impossible to read. JSON and Python lists inspired the other half (checksum). Staples was named as such due to its staple-like structure. Don't confuse it with the Staples® retail store.
Staples can be used for educational encoding purposes, obfuscation, and for small projects to show off. The checksum is to ensure the code is not accidentally edited, Staples code is not encrypted. Please use Staples for good purposes so we all have a happy time.
Staples can be installed through Python's package manager (Python 3.11 is required, so if you don't have it installed, install it!):
For MacOS and Linux, install it by running this command into your terminal:
pip3 install --user staples_lang --upgrade && \ if ! grep -qxF 'export PATH="$HOME/Library/Python/3.11/bin:$HOME/.local/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/opt/homebrew/bin:/usr/bin:$PATH"' ~/.zshrc; then \ echo 'export PATH="$HOME/Library/Python/3.11/bin:$HOME/.local/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/opt/homebrew/bin:/usr/bin:$PATH"' >> ~/.zshrc; \ fi && source ~/.zshrc
For Windows, install it by running this in your powershell:
pip3 install staples_lang; $p='C:\Python311\Scripts'; if (Test-Path $p) { if (-not ($env:Path.Split(';') -contains $p)) { [Environment]::SetEnvironmentVariable('Path', $env:Path + ';' + $p, 'User'); Write-Output "Added $p to User PATH. Restart your terminal." } else { Write-Output "$p is already in PATH." } } else { Write-Output "$p does not exist." }
You can also use Staples straight in the browser using the web interface, although this is very slow and copying and pasting can be a pain.
Syntax
Staples has a very strict syntax, and you can ONLY have four characters:
[ ] { }
Staples encodes Python code in a binary format, replacing the 0's with a hard bracket facing right and replacing the 1's with a curly bracket facing right. The code is then duplicated and mirrored, to create an artistic checksum.
You can use your terminal to run Staples once you have downloaded it.
staples runfile <file_path_as_a_string> staples compilefile <file_path_as_a_string> staples runstring <staples_code_as_a_string> staples compilestring <python_code_as_a_string> staples
Please note that the final terminal command, staples
, which is the shell, is only for testing purposes, and that staples runfile
or staples runstring
should be used instead for ease of use. This is because due to terminal restrictions, you cannot paste a very long string in for some reason, therefore affecting Staples syntax.
Running a file/string runs the inputted raw staples code, and compiling a file/string converts Python to Staples.
Be careful though, do not add spaces, only add the right syntax characters and do NOT run code that you don't trust, because after all, Staples is just Python, but with a different syntax.
Interpreter
From the specification, we can create a simple interpreter. This does not respect the checksum part.
clean = lambda c: c.translate(str.maketrans({"[": "0", "{": "1", "]": "", "}": ""})) decode = lambda c: "".join([chr(int(c[i:i+8], 2)) for i in range(0, len(c), 8)]) staples = lambda code: exec(decode(clean(code))
Examples
Staples has a "Hello World" program too, like every other language:
[{{{[[[[[{{{[[{[[{{[{[[{[{{[{{{[[{{{[{[[[[{[{[[[[[{[[[{[[{[[{[[[[{{[[{[{[{{[{{[[[{{[{{[[[{{[{{{{[[{[[[[[[{[{[{{{[{{[{{{{[{{{[[{[[{{[{{[[[{{[[{[[[[{[[[{[[[{[{[[{}]]}]}]]]}]]]}]]]]}]]}}]]]}}]}}]]}]]}}}]}}}}]}}]}}}]}]}]]]]]]}]]}}}}]}}]]]}}]}}]]]}}]}}]}]}]]}}]]]]}]]}]]}]]]}]]]]]}]}]]]]}]}}}]]}}}]}}]}]]}]}}]]}]]}}}]]]]]}}}]
Staples XKCD Random Number Challenge:
[{{{[[[[[{{{[[{[[{{[{[[{[{{[{{{[[{{{[{[[[[{[{[[[[[{[[[{[[[{{[{[[[[{[[[{[[[{[{[[{}]]}]}]]]}]]]}]]]]}]}}]]]}]]]}]]]]]}]}]]]]}]}}}]]}}}]}}]}]]}]}}]]}]]}}}]]]]]}}}]
99 Bottles of Beer (it's long, so you should run it using staples runstring
):
[{{[[[{{[{{[{{{{[{{{[{[{[{{[{{{[[{{{[{[[[[{[[[[[[[{{{{[{[[{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{{{[[[[[{[{[[{[[[[{[{[[[{[[[[[[[{[[[[[[[{[[[[[[[{[[[[[[{{{{[[[[[{{{{[{[{{{{[[[[[{[{[{{[[{[[[{[[[{[{[{[[[{[[[{[[[[[{[{[[[{[[[[[[[{[[[[[[[{[[[[[[[{[[[[[[{{{[{[[[{{[{[[{[{{[{{[{[{{[[{[{[[{[{{{[[{{{[[{{[{{[{{[[[{{[[{[{[{{[[{[{[{{{[[[[[[{[{[[[[[{{[[[[[[{[{{{[[[{{[[{[[[{[{[[{[[[[{[{[]}]}]]]]}]]}]}]]]}]]}}]]]}}}]}]]]]]]}}]]]]]}]}]]]]]]}}}]}]}]]}}]}]}]]}}]]]}}]}}]}}]]}}}]]}}}]}]]}]}]]}}]}]}}]}}]}]]}]}}]]]}]}}}]]]]]]}]]]]]]]}]]]]]]]}]]]]]]]}]]]}]}]]]]]}]]]}]]]}]}]}]]]}]]]}]]}}]}]}]]]]]}}}}]}]}}}}]]]]]}}}}]]]]]]}]]]]]]]}]]]]]]]}]]]]]]]}]]]}]}]]]]}]]}]}]]]]]}}}}]]]]}]}]]]]}]}}}]]}}}]}}]}]]}]}}]]}]]}}}]]]]]}}}]]]]]]}]]]]]]]}]]]]]]]}]]]]]]]}]]]}]}]]]]]}]}}}]]}]}]]}}]}]}]}}}]]}]]}}}]]]}]}]}]]]]]]}]]}]}]]}}]]]}}]}}]}]]}]}}]]]]}]}}]}}}]}}}]]}]}]]]]]}]]]}]]]}]}]}]]]}]]]}]]}]}}}}]]]]]}}}}]]}]}]]]]}]}]]}}]}]}}]}}]}]]}]}}]]]}]}}}]]]]]]}]]]]}]}}}]]}]]}}}]}}}}]}}]]]]]}}}]}]}}]}}]}]]}]}}]
Computational class
Staples is Turing complete since it is an encoding of Python, which is a Turing complete language.
Staples can create cheating quines, because it is capable of reading files, including its own code. It would be difficult to ensure the correct file is read in a portable way.