I created a keys tracking system in Python without any libraries or built-ins.
Posted by Consistent_Rip5731@reddit | Python | View on Reddit | 5 comments
I created a simple tool that reacts to keyboard input and validates sequences of characters in real time. Key features:
Responds to “key events” within the code itself.
Written entirely without external libraries or even standard modules.
The idea is to demonstrate how to handle keyboard input from scratch while keeping the code simple, flexible, and fully under control.
PROJECT FEATURES: -interesting system -readable and constructible architecture
github: https://github.com/python-9999/ThisKey
P.S Hope you enjoy the project!
shinitakunai@reddit
Rip trying to read the comments. They areall in russian 😞.
Y myself comment all in english, despite being spanish, because of this same issue when sharing code
Consistent_Rip5731@reddit (OP)
Yeah, I get that — most comments ended up in Russian. I’ll keep that in mind for future posts, thanks for the heads-up.
denehoffman@reddit
I fail to see what functionality this has besides
which by the way would be much more understandable as
return k == desired. I have no issue with Russian language projects, but you’ve restricted the allowed keys to the English+Russian alphabets with a couple extra unicodes like ü, why even do this at all? I looked at the examples and can’t for the life of me figure out why I’d want a package to essentially check character equality. The entire “user input” part is just theinputbuilt-in.Consistent_Rip5731@reddit (OP)
This project wasn’t created solely for practical use — although it can be used in practice. The characters like ü, ä, ö aren’t random Unicode symbols; they’re just German letters included for more complete Unicode coverage.
jones-r2k@reddit
Impressive work doing that without any libraries or built-ins is quite the feat Keep it up!