| Home | Trees | Indices | Help |
|
|---|
|
|
A few simple helpers
|
|||
|
generate_uuid(seed=None) Returns a uuid value. |
||
|
generate_uri(scheme,
authority,
trail) Builds an URI as an unicode object Keyword arguments: scheme -- URI scheme (e.g. |
||
|
generate_uuid_uri(seed=None) ... |
||
|
compute_etag(seed) ... |
||
|
get_isodate(dt=None) ... |
||
|
parse_isodate(value) attempts to parse value as an ISO date and if succeeding returns a datetime object, None otherwise. |
||
|
create_temporary_resource(content) ... |
||
|
delete_temporary_resource(path) ... |
||
|
|||
Returns a uuid value. Keyword arguments: seed -- if provided, builds a uuid from it otherwise returns a random uuid |
Builds an URI as an unicode object Keyword arguments: scheme -- URI scheme (e.g. http) authority -- hostname trail -- URI path |
Returns an URN from uuid |
Returns a hash value of seed |
returns a date respecting ISO 8601 format |
attempts to parse value as an ISO date and if succeeding returns a datetime object, None otherwise. Keyword arguments: value -- a date in a string format |
Dump the content into a temp file and returns the file handle, the absolute path of the temp file as well as the content as a string Keyword arguments: content -- string object |
Safely removes path Keyword argument: path -- a file-system path |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Sat Nov 18 23:31:57 2006 | http://epydoc.sourceforge.net |