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'
>>> surt("http://archive.org/goo/?a=2&b&a=1", trailing_comma=True)
'org,archive,)/goo?a=1&a=2&b'
>>> surt("http://123.456.78.910/goo/?a=2&b&a=1", reverse_ipaddr=False)
'123.456.78.910)/goo?a=1&a=2&b'
Installation:
pip install surt
Or install the dev version from git:
pip install git+https://github.com/internetarchive/surt.git#egg=surt
More information about SURTs: http://crawler.archive.org/articles/user_manual/glossary.html#surt
This is mostly a python port of the webarchive-commons org.archive.url package. The original java version of the org.archive.url package is here: https://github.com/iipc/webarchive-commons/tree/master/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
Metadata
Release files for surt 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| surt-0.3.1.tar.gz | 9.8 kB | Without provenance | Details for surt-0.3.1.tar.gz |
Release files / surt-0.3.1.tar.gz
| Download URL | surt-0.3.1.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24167eb6c01f24f757eef9bca6bf0ec089ec05ad5b6213c3b727a5e58c0c4720
|
|
BLAKE2b-256 checksum How to use checksums |
4752500de6c33a1b92fef6a21c924ec7b7fc04cf178c751f28ad66d6e85af22d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for surt 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.