1 unstable release
0.1.0 | Jul 27, 2023 |
---|
#8 in #reason
27KB
860 lines
Cursython
cursython (cur-SY-thon) is a very cursed form of writing python. Instead of writing innocently innocent python code, you write JSON.
I want the docs!
Quickstart
- make sure you have the rust toolchain installed on your system (
cargo
,rustc
, etc.) - issue
cargo install cursython
- profit
OR
- also make sure you have the rust toolchain installed on your system.
- clone the repository
- issue
make clean userinstall
(with GNU make) - profit
Now, please run the examples by compiling it with the cursython
command. run cursython --help
for usage info.
Backstory
So this youtuber A Byte of Code made this video, showcasing his framework HTML.JS, where you write HTML for logic instead of JavaScript. In the comment section I wrote that I would waste 3 months of my time writing a TOML.py framework where you write python with toml, and this is the result.
It actually only took me 9 days + 5 days of procrastination, I started on the 17th of July (2023) and now it's the 26th.
With this glorious library/framework/transpiler, you can write python code with json, for some reason™.
Why did I use JSON/JSON5 and not TOML?
You can see for yourself :))
Project for grabs
Try using HTML.js with a cherrypy web server with cursython. This way, you can confidently say that you wrote a web app without any real programming languages ;)
LICENSE
Dependencies
~7–13MB
~155K SLoC