Metadata-Version: 1.0
Name: shorter
Version: 0.1.1
Summary: Robust url shorten service with zero config.
Home-page: UNKNOWN
Author: Lx Yu
Author-email: i@lxyu.net
License: MIT
Description: Shorter
        =======
        
        Simple flask app to create a short url service.
        
        Creates a robust url shorten service with zero config.
        
        
        Usage
        -----
        
        Use pip to install shorter:
        
        .. code:: bash
        
            $ pip install shorter
        
        Run with 'shorter':
        
        .. code:: bash
        
            $ shorter
        
        Simple test:
        
        .. code:: bash
        
            $ 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:
        
        .. code:: bash
        
            $ gunicorn -w 4 -b 127.0.0.1:5000 shorter:app
        
        Customize
        ---------
        
        Use a `shorter_config.py` to customize database uri:
        
        .. code:: python
        
            # shorter_config.py example
            SQLALCHEMY_DATABASE_URI = "sqlite:///shorter.db"
        
        
Keywords: url short shorter flask
Platform: UNKNOWN
