Skip to main content

chr url shortener

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

Metadata

Release files for chr 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chr 2.1.1
File Size Uploaded
chr-2.1.1.tar.gz 86.0 kB Details

Release files / chr-2.1.1.tar.gz

Download URL chr-2.1.1.tar.gz
Size 86.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ac98a3b943585bbea65c46cf581cdafced4b14bb245e41dfce4f313729a8534e
BLAKE2b-256 checksum
How to use checksums
2bf644368eb94684e0226b0c6015a0bb9e543ee22aeea738558f100ad54d1483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.1.1 This release

1 release file

2.1.0

1 release file

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page