Skip to main content

Personal URL shortener for personal domains.

Project description

purls.py

Personal URL Shortener.

Today, we can use bit.ly or goo.gl or any of the other publicly available URL shorteners out there, but doing so limits us in the shortURLs we can choose, because the namespace is crowded with every other user.

With the abundance of new TLDs, it is once again possible for an individual to register a short personal domain relatively cheaply. With that domain in hand, purls.py allows one to quickly and easily host one’s own URL shortener with minimal dependencies and almost no setup.

Usage

purls.py runs on port 8880 by default, so if one is running Apache primarily, the following two lines of configuration in the Apache configuration file are sufficient to redirect the prefix /u/ to purls.py:

ProxyPass /u/ http://localhost:8880/
ProxyPassReverse /u/ http://localhost:8880/

The simplest invocation of purls.py requires only the domain prefix of the shortened URL’s to be passed. For example, if my domain prefix is https://hq6.me/u/, I can invoke purls as follows:

python purls.py https://hq6.me/u/

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

purls-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file purls-0.0.2.tar.gz.

File metadata

  • Download URL: purls-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for purls-0.0.2.tar.gz
Algorithm Hash digest
SHA256 903f17913e0ffef8a7107c564062155eea795f2f734dc8df7741876d5a560022
MD5 3765342ceeabee71aca9d678c0c981ab
BLAKE2b-256 7adf47330e6e05c5d32106c35ac7cd05081cc208772c97ad1586b523ced00a90

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page