Skip to main content

URL shortening service to be used in a microservices environment.

Project description

# tinyurls

URL shortening service to be used in a microservices environment.

This service does the following:
1. Takes a long url and stores an md5 key and the url in a database table.
The md5 key is used to lookup the long url. This step returns a short link
with md5.
2. Takes a short link and redirects you to the long link.

## Installation
Clone code
git clone
Use virtual environment
virtualenv env
source env/bin/activate

Change into tinyurls directory and install
cd tinyurls
python install


pip install tinyurls


## Execute
tinyurls -h
usage: tinyurls [-h] [-p PORT] [-d DATABASE]

optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port used for this service
-d DATABASE, --database DATABASE Database to use

tinyurls -p 9999


In a new terminal post the link to shorten
curl -X POST -H "Content-Type: text/plain" --data ""

In the browser go to ``

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tinyurls, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size tinyurls-0.0.3-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page