semvec/pypi-packages huggingface dataset:
surt 0.3.1
Sort-friendly URI Reordering Transform (SURT) python package.

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
auto-paste-from-script 1.0
Package to execute lines from scripts into Python interpreters

# auto-paste-from-script #

Utilities for interactively pasting script code into an interpreter.
Currently supports Python, R, Scala.

## Python Usage ##

``` python
from auto_paste_from_script import AutoPasteFromScript

myS = AutoPasteFromScript("script.py")

myS(5,10)
```

## R Usage ##

``` r
source("AutoPasteFromScript.R")

myS <- AutoPasteFromScript$new(fileName="this.R")

myS$exec(1,5)
```

## Scala Usage ##

``` scala

import auto.paste.from.script.AutoPasteFromScript

// $intp is the current interpreter
val myS = AutoPasteFromScript("filename.scala", $intp)

myS(1,5)
```