This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Regex for URIs | |
These regex are directly derived from the collected ABNF in RFC3986 | |
(except for DIGIT, ALPHA and HEXDIG, defined by RFC2234). | |
Additional regex are defined to validate the following schemes according to | |
their respective specifications: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
HTTP Link Header Parsing | |
Simple routines to parse and manipulate Link headers. | |
""" | |
__license__ = """ | |
Copyright (c) 2009 Mark Nottingham |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Rename with Date 0.1 | |
Copyright 2004 Mark Nottingham <[email protected]> | |
THIS SOFTWARE IS SUPPLIED WITHOUT WARRANTY OF ANY KIND, AND MAY BE | |
COPIED, MODIFIED OR DISTRIBUTED IN ANY WAY, AS LONG AS THIS NOTICE | |
AND ACKNOWLEDGEMENT OF AUTHORSHIP REMAIN. | |
*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.4 | |
""" | |
libxslt_web - XSLT Extension Functions for the HTML Web | |
This is a set of XSLT extension functions that give access to HTTP mechanisms and HTML | |
documents (even those that are invalid) on the Web. | |
In particular, it offers; | |
- GET and POST support, with control over the POST body and content-type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
RSS.py | |
Classes for working with RSS channels as arbitrary data structures. | |
Requires Python 2.2 or newer and PyXML 0.7.1 or newer. | |
ChannelBase - Base class for RSS Channels. | |
CollectionChannel - RSS Channel modeled as a URI-per-entry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
sparkogram.py - Sparkline histogram generator | |
This is quick and dirty. Based on Joe Gregorio's sparkline thoughts; | |
<http://bitworking.org/news/Sparklines_in_data_URIs_in_Python>. | |
""" | |
__license__ = """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
c_zlib - zlib for Python using ctypes. | |
This is a quick and nasty implementation of zlib using Python ctypes, in order to expose the ability | |
to set a compression dictionary (which isn't available in the zlib module). | |
""" | |
__license__ = """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
isodate.py | |
Functions for manipulating a subset of ISO8601 date, as specified by | |
<http://www.w3.org/TR/NOTE-datetime> | |
Exposes: | |
- parse(s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
urlnorm.py - URL normalisation routines | |
urlnorm normalises a URL by; | |
* lowercasing the scheme and hostname | |
* taking out default port if present (e.g., http://www.foo.com:80/) | |
* collapsing the path (./, ../, etc) | |
* removing the last character in the hostname if it is '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
http_conn_timer.py | |
by Mark Nottingham <[email protected]> | |
How long does a given HTTP server hold persistent connections open? | |
Requires Twisted <http://twistedmatrix.com/> | |
""" |
OlderNewer