Skip to main content

Short URL generaotr for Flask

Project description

Short URL generator for Flask Project.

Installation

To install terminal, simply:

$ pip install Flask-ShortUrl

Usage

from flask_shorturl import ShortUrl

su = ShortUrl(app)

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

Config

  • SHORT_URL_ALPHABET: ‘mn6j2c4rv8bpygw95z7hsdaetxuk3fq’

  • SHORT_URL_MIN_LENGTH: 5

  • SHORT_URL_BLOCK_SIZE: 24

Thanks

UrlEncoder from by Michael Fogleman.

Project details


Download files

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

Source Distribution

Flask-ShortUrl-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page