Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install chr

How to install chr

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install chr
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
2.1.1 Available View build log
 
Author
License
MIT
Lastest release
version 2.1.1 on Jan 9th, 2014

chr (coded under the name chru) is a Python based URL shortening service which uses Flask as a front end, and pysqlw as the SQL backend, to interface with sqlite3.

It can shrink billions of unique URLs with less than 6 characters, run in the background with no human interaction, and it can fly like a bird -- or is that Super Man?

Features

  • Can shorten several billion (yes!) unique urls to a less than 6 character slug.
  • Verifies the shrunk URLs are legitimate, to stop abuse.
  • Uses reCAPTCHA to stop spammers from using the service for evil, not good.
  • Slugs are the base62 representation of their ID, so they'll work in all browsers.
  • A live chr instance is located at chr.so.

Dependencies

To install all of these: pip -r requirements.txt install (if installing from source)

Notes

  • It's highly recommended by the chr developers that if you're putting this in a production environment (read: any computer with a public IP) that you look at the various Flask deployment options, such as putting it behind nginx, lighttpd, or something.
  • It's also recommended that you get your server (nginx, lighttpd, or hell, even Apache) serve out the static folder, rather than letting Flask do it.
  • This will take a while to get fully featured, but we have a lot planned.
  • jqPlot comes bundled with chr, which is alright as it's MIT licensed.

Running

Visit the docs page, and click Usage for information on how to run chr.

Author

Contributors

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.