Miscellaneous Functions

plyr.VERSION = (1, 0, 1)

tuple() -> empty tuple tuple(iterable) -> tuple initialized from iterable’s items

If the argument is a tuple, the return value is the same object.

plyr.version()

libglyr’s version string (with version number and release name)

Returns:Something similar to Version 0.9.9 (Catholic Cat) of [Jun 24 2012] compiled at [22:55:56]

plyr.type_is_image()

Check if a certain type descriptor is an image.

Type_str :a type identifier.
Returns:True or False
plyr.download()

Download a certain URL and return it as Cache.

Url :The URL to download.
Returns:A Cache instance, or None

plyr.levenshtein_cmp()

Compute the levenshtein distance between two strings.

See also: http://sahib.github.com/glyr/doc/html/libglyr-Misc.html

String :some string
Other :another string
Returns:An integer between 0 and max(len(string), len(other))
plyr.levenshtein_normcmp()

Compute the levenshtein distance between two strings using additional normalization.

See also: http://sahib.github.com/glyr/doc/html/libglyr-Misc.html

String :some string
Other :another string
Returns:An integer between 0 and [no-explicit-limit]

Previous topic

Using a Database to cache items locally

Next topic

Examples

This Page