Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Robust url shorten service with zero config.

Project Description

Simple flask app to create a short url service.

Creates a robust url shorten service with zero config.

Usage

Use pip to install shorter:

$ pip install shorter

Run with ‘shorter’:

$ shorter

Simple test:

$ curl --form "url=http://google.com" localhost:5000
cpYNkF
$ curl localhost:5000/cpYNkF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="http://google.com">http://google.com</a>.  If not click the link.

You may also try visit it using a browser.

Deploy

Deploy with gunicorn is easy:

$ gunicorn -w 4 -b 127.0.0.1:5000 shorter:app

Customize

Use a shorter_config.py to customize database uri:

# shorter_config.py example
SQLALCHEMY_DATABASE_URI = "sqlite:///shorter.db"
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
shorter-0.1.2.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Jan 22, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting