/pyurl-shortener

Local URL Shortener

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

CircleCI pylint pytest

PyURL Shortener

A URL shortener that works locally without the need for an external database.
All its index is created and maintained in the local disk.

Design Idea

Simple http server running in the background:
eg.: http://localhost:8081/?u=gh when opened in the browser, it only finds which is the correct full URL (resolves by id)
and then redirects permanently to that address ;)

TODO

  • Allow insertion of new URLs to be shortened. - Command line tool to shorten URLs?
  • Maybe opening a shortened link from the terminal?
  • Backup of the database?
  • Create a class to load the database and retain the logic of removing "\n"
  • Create Makefile