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.1.2.tar.gz
(4.0 kB
view details)
File details
Details for the file Flask-ShortUrl-0.1.2.tar.gz
.
File metadata
- Download URL: Flask-ShortUrl-0.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09aaa45034b099c240e3ad7883d3f0b08db9e5cefa1397cb1262f874b586e7d4 |
|
MD5 | 6e59390e2958e4b7ad5cd4b55e24fc1e |
|
BLAKE2b-256 | f479681030bf880fcd3788626adb8be28a824f7b2edf98aad03eae9d1e7c5394 |