cybrkyd

CGI-git - a fast web interface for Git written in Python

 Sat, 06 Dec 2025 12:48 UTC

CGI-git is an attempt at making a fast web interface for Git with Python using only stdlib and no external dependencies. It lives inside a CGI script and can be run safely from even the most humble shared-hosting service with git enabled.

At time of writing, I’m on about v0.9 with quite a bit of work still to do, but this is pretty much done and beta-ready enough for me to deploy. Take a look at the code on my repository.

It was a journey of discovery. Along the way, I learned a lot more about git and a whole lot more about Python, too. It was humbling; I faced many challenges which kept me up at night but I got there in the end. I’m still not fully convinced myself that Python is the best tool for this job (maybe PHP would be better?) but as I’m comfortable with Python, I stuck with it.

I will eventually release the source code (on CGI-git, naturally) once I finish tweaking and hardening a few bits and pieces.

All this comes during the same week where 1) Codeberg went down and 2) so did Cloudflare… again. I was going slow on the writing of CGI-git until I saw the issue with Codeberg and that’s when I decided to step on it, put some pep in the step; some slide in the glide!

I know Codeberg has been battling with bot traffic for quite some time but to me, that was sign enough to get a move on. Then yesterday, right in the middle of setting up remote gits or git push origin main to my repository’s new home, I was facing so many blips in connection, it was not even funny. That was courtesy of Cloudflare, which my web host uses. Big sigh!

That’s it, then. Onwards and upwards.

»
Tagged in: #CGI-git #git #Python

Visitors: Loading...