Skip to main content

Short URL generaotr for Flask

Project description

Donate lepture Wheel Status Latest Version Travis CI Status Coverage Status

Short URL generator for Flask Project.

Installation

To install Flask-Shorturl, simply:

$ pip install Flask-ShortUrl

Or alternatively if you don’t have pip:

$ easy_install Flask-ShortUrl

Usage

You can initialize the app:

from flask_shorturl import ShortUrl

su = ShortUrl(app)

url = su.encode_url(12)
uid = su.decode_url(url)

You may also init the app later:

su = ShortUrl()
su.init_app(app)

Configuration

Configurations for Flask project:

SHORT_URL_ALPHABET The alphabet to be used by Encoder, default value: mn6j2c4rv8bpygw95z7hsdaetxuk3fq
SHORT_URL_MIN_LENGTH default value: 5
SHORT_URL_BLOCK_SIZE default value: 24

Thanks

UrlEncoder from by Michael Fogleman.

Download files

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

Files for Flask-ShortUrl, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size Flask_ShortUrl-0.2.0-py2-none-any.whl (6.9 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size Flask-ShortUrl-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page