An API service to shorten URLs
$ virtualenv ve
$ source ve/bin/activate
(ve)$ pip install -e .
(ve)$ trial shortener
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