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 details)

Uploaded Source

File details

Details for the file Flask-ShortUrl-0.1.0.tar.gz.

File metadata

File hashes

Hashes for Flask-ShortUrl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa2ebcdeb85f501f6493b1ffd03644e7ff59729f969f9dd0c3c28f494a0661b3
MD5 3335735919f56cc345c3663ecae654ce
BLAKE2b-256 7a75049d839e95beb27da55cd5910cfaf1f732de290855bb298fba979b3a4b12

See more details on using hashes here.

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