A really simple URL shortening service written as a Python WSGI app. It's minimal and fast, intended to be used as a browser bookmarklet on the currently-visible page.
First iteration of the shortgirls.net URL shortener. I used to use bit.ly a fair bit, but what annoyed me the most was that it was slow, and just made it tedious to get a bloody short URL!
shortgirls.net wouldn't necessarily make the Shortest URLs In The World, but it would be fast and work on my own terms.
The shortener is a single file, it's up to you to run it in a WSGI container of some sort.
- uwsgi (recommended)
- Create a user to run the shortener as, and make an SSH key (
ssh-keygen -b 4096)
- Add your deploy key (
~/.ssh/id_rsa.pub) to the github repo
- Clone the repo:
git clone firstname.lastname@example.org:barneydesmond/shortgirls-shortener.git
- Set the necessary environment and options in the .ini config file
- Run it:
shortgirls.py relies only Python Paste, to provide prettier debugging output in the event of an error. This could easily be coded out.
shortgirls.py is licensed under the FreeBSD license ("2-clause BSD license").
shortgirls.py was written by Barney Desmond.
Feedback and contributions are welcomed:
If you make improvements to shortgirls.py it'd be nice if you shared them around equally.