https://github.com/pklaus/bottle-shortener
A tiny URL shortener written using Bottle and running on Python 3.3+
https://github.com/pklaus/bottle-shortener
Last synced: 3 months ago
JSON representation
A tiny URL shortener written using Bottle and running on Python 3.3+
- Host: GitHub
- URL: https://github.com/pklaus/bottle-shortener
- Owner: pklaus
- Created: 2013-02-27T02:25:42.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T09:15:09.000Z (almost 9 years ago)
- Last Synced: 2024-12-28T15:49:15.432Z (5 months ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a very primitive URL shortening service.
It runs on Python3 and can use any collection that looks
like a Python dictionary to store its data ('backend').#### Backends
Currently it ships with the following data store backends:
* Python dictionary
All shortened URLs are lost when restarting the service.
* SQlite-Dictionary [FileDict](http://github.com/pklaus/filedict) for Python 3
Persistant storage in a database file.
* redis Plugin
Fast storage in memory (RAM)
Persistance [is possible](http://redis.io/topics/persistence) via AOF (journal).Other ideas for backends:
* memcached & pylibmc
no persistance!
* any of [these](http://en.wikipedia.org/wiki/NoSQL)#### Resources
* This code is loosly based on the shortener contained in
[urltotwit](https://bitbucket.org/tarek/urltotwit).