Skip to main content

Sort-friendly URI Reordering Transform (SURT) python package.

Project description

Sort-friendly URI Reordering Transform (SURT) python package.

Usage:

>>> from surt import surt
>>> surt("http://archive.org/goo/?a=2&b&a=1")
'org,archive)/goo?a=1&a=2&b'

Installation:

pip install surt

Or install the dev version from git:

pip install git+git://github.com/rajbot/surt#egg=surt

More information about SURTs: http://crawler.archive.org/articles/user_manual/glossary.html#surt

This is mostly a python port of the archive-commons org.archive.url package. The original java version of the org.archive.url package is here: http://archive-access.svn.sourceforge.net/viewvc/archive-access/trunk/archive-access/projects/archive-commons/src/main/java/org/archive/url/

This module depends on the tldextract module to query the Public Suffix List. tldextract can be installed via pip

[![Build Status](https://secure.travis-ci.org/rajbot/surt.png?branch=master)](http://travis-ci.org/rajbot/surt)

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

surt-0.2.tar.gz (10.5 kB view details)

Uploaded Source

File details

Details for the file surt-0.2.tar.gz.

File metadata

  • Download URL: surt-0.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for surt-0.2.tar.gz
Algorithm Hash digest
SHA256 9197e023d0c45e64d96975f8fb24c88443ba4c49e8f7d57ff5adee2240b22a96
MD5 4bd1a795a6dab7318d0803e0ee6b6e4b
BLAKE2b-256 4c1440a50a54c21a7e12071424127ade3459bb701c59d404f84b7f83996d3258

See more details on using hashes here.

Supported by

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