Short URL generaotr for Flask
Project description
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.
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.2.0.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file Flask-ShortUrl-0.2.0.tar.gz
.
File metadata
- Download URL: Flask-ShortUrl-0.2.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c0b85396009d36a7ce13dc7be032f04e5c2fccaedf23f766c967faed07fa1e |
|
MD5 | fd8395d861749faad7d539a63cc9bed5 |
|
BLAKE2b-256 | e6f1be75f7651b1f7b1d030794d84242242ee6577aec547154db9393fdbdd92c |
File details
Details for the file Flask_ShortUrl-0.2.0-py2-none-any.whl
.
File metadata
- Download URL: Flask_ShortUrl-0.2.0-py2-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e586e4faaa813b59aff00c3efd346c5b1e587947d343c72adaa1476ea83355 |
|
MD5 | 2bc4ac8b6419784e4692de82d572f848 |
|
BLAKE2b-256 | 8adc64a8cc2f9ba095f4dca35ca266d090084d5321864d2a348e501329d96501 |