Skip to content
/ torx Public

PATENTED: A fully dockerized bencode <-> python repr translator microservice! Gracefully using concurrency primitives such as process pools and asyncio to utilize all cores of the CPU

Notifications You must be signed in to change notification settings

neobsv/torx

Repository files navigation

I'm aware of the basic stack overflow problem with this and it has to be done on the heap. And further, this touches Automata Theory and Grammar Theory in computation which is exciting. I'm handling lists like it is done in a functional programming language like Haskell where the list is an N nested datastructure.

Will be thinking about this more, however, this was done to capture the basic structure of the problem, and I'll have to mess around with the above as well as function pointers and move the compute to the heap.

Run command

python3 parser.py test_files_decoder/gr.txt
python3 encoder.py test_files_encoder/gr_python.txt

Containerized

docker build -t bencoder:latest -f Dockerfile .
docker run -it -p 8080:8080 bencoder:latest

Curl

curl -X GET http://localhost:8080/encode_file/
curl -X GET http://localhost:8080/decode_file/

About

PATENTED: A fully dockerized bencode <-> python repr translator microservice! Gracefully using concurrency primitives such as process pools and asyncio to utilize all cores of the CPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published