| Name | surt JSON |
| Version |
0.3.1
JSON |
| download |
| home_page | https://github.com/internetarchive/surt |
| Summary | Sort-friendly URI Reordering Transform (SURT) python package. |
| upload_time | 2019-08-22 20:47:58 |
| maintainer | |
| docs_url | None |
| author | rajbot |
| requires_python | |
| license | |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
|
| coveralls test coverage |
No coveralls.
|
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``
|Build Status|
.. |Build Status| image:: https://travis-ci.org/internetarchive/surt.svg
:target: https://travis-ci.org/internetarchive/surt
Raw data
{
"_id": null,
"home_page": "https://github.com/internetarchive/surt",
"name": "surt",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "rajbot",
"author_email": "raj@archive.org",
"download_url": "https://files.pythonhosted.org/packages/47/52/500de6c33a1b92fef6a21c924ec7b7fc04cf178c751f28ad66d6e85af22d/surt-0.3.1.tar.gz",
"platform": "",
"description": "Sort-friendly URI Reordering Transform (SURT) python package.\n\nUsage:\n\n::\n\n >>> from surt import surt\n >>> surt(\"http://archive.org/goo/?a=2&b&a=1\")\n 'org,archive)/goo?a=1&a=2&b'\n >>> surt(\"http://archive.org/goo/?a=2&b&a=1\", trailing_comma=True)\n 'org,archive,)/goo?a=1&a=2&b'\n >>> surt(\"http://123.456.78.910/goo/?a=2&b&a=1\", reverse_ipaddr=False)\n '123.456.78.910)/goo?a=1&a=2&b'\n\nInstallation:\n\n::\n\n pip install surt\n\nOr install the dev version from git:\n\n::\n\n pip install git+https://github.com/internetarchive/surt.git#egg=surt\n\nMore information about SURTs:\nhttp://crawler.archive.org/articles/user\\_manual/glossary.html#surt\n\nThis is mostly a python port of the webarchive-commons org.archive.url\npackage. The original java version of the org.archive.url package is\nhere:\nhttps://github.com/iipc/webarchive-commons/tree/master/src/main/java/org/archive/url\n\nThis module depends on the ``tldextract`` module to query the Public\nSuffix List. ``tldextract`` can be installed via ``pip``\n\n|Build Status|\n\n.. |Build Status| image:: https://travis-ci.org/internetarchive/surt.svg\n :target: https://travis-ci.org/internetarchive/surt\n",
"bugtrack_url": null,
"license": "",
"summary": "Sort-friendly URI Reordering Transform (SURT) python package.",
"version": "0.3.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "da1fa592fc7ff7a983cdc4840fa9064b",
"sha256": "24167eb6c01f24f757eef9bca6bf0ec089ec05ad5b6213c3b727a5e58c0c4720"
},
"downloads": -1,
"filename": "surt-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "da1fa592fc7ff7a983cdc4840fa9064b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9807,
"upload_time": "2019-08-22T20:47:58",
"upload_time_iso_8601": "2019-08-22T20:47:58.758786Z",
"url": "https://files.pythonhosted.org/packages/47/52/500de6c33a1b92fef6a21c924ec7b7fc04cf178c751f28ad66d6e85af22d/surt-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-08-22 20:47:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "internetarchive",
"github_project": "surt",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "surt"
}