Skip to content

praekelt/url-shortening-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL SHORTERNING SERVICE

An API service to shorten URLs

travis_ coveralls_

Install

$ virtualenv ve
$ source ve/bin/activate
(ve)$ pip install -e .
(ve)$ trial shortener

Config

With the -c parameter, you can specify a config file. The default locatation is shortener/config.yaml Here's an example config file:

host_domain: http://wtxt.io
account: wikipedia
connection_string: postgresql://test:shortener_test@localhost:5432/shortener_test
port: tcp:8080
graphite_endpoint: tcp:www.example.com:80
handlers:
- dump: shortener.handlers.dump.Dump