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)
File details
Details for the file Flask-ShortUrl-0.1.0.tar.gz
.
File metadata
- Download URL: Flask-ShortUrl-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2ebcdeb85f501f6493b1ffd03644e7ff59729f969f9dd0c3c28f494a0661b3 |
|
MD5 | 3335735919f56cc345c3663ecae654ce |
|
BLAKE2b-256 | 7a75049d839e95beb27da55cd5910cfaf1f732de290855bb298fba979b3a4b12 |