-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (44 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from setuptools import setup
long_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/
Installation
==================
This software is only compatible with Python 2, so installation must be done
with one of the following commands::
pip2 install purls
pip2.7 install purls
"""
setup(
name="purls",
version='0.0.3',
scripts=['purls.py', 'SqliteKVStore.py', 'URLShortener.py'],
install_requires=['docopt>=0.2'],
author="Henry Qin",
author_email="[email protected]",
description="Personal URL shortener for personal domains.",
long_description=long_description,
platforms=["Any Platform supporting ANSI escape codes"],
license="MIT",
url="https://github.com/hq6/purls"
)