Skip to content
The url shorten service written by python.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
requirements.txt url shorten service

This is the source code of is written by Python with Tornado.

Generate shorten url interface

curl -d "url="

Return short url if success. You can check whether the response is started with http: to determine if it is successful.

If fail, it returns the error message.


Copy etc/ to etc/ and modify it if necessary.


Run pip install -r requirements.txt to install dependency. We advise you to install them in virtualenv.

$ virtualenv .env
$ source .env/bin/activate
$ pip install -r requirements.txt

Simple deploy

And you can run execute ./ to run it.

By supervisor

Copy etc/supervisor/ to your supervisord config folder, and modify it accordingly. Then you can run it with supervisord.

It will open two processes that listen on 8850, 8851, you can use etc/nginx/ as your nginx config to proxy it.

You can’t perform that action at this time.