[Distutils] pkg_resources: feature request
ianb at colorstudy.com
Thu Sep 29 00:16:55 CEST 2005
I just added a WSGI app in paste.urlparser.PkgResourceParser
to serve static files using pkg_resources's resource API. Two new
methods would be useful there: resource_mtime and resource_size.
Alternately, resource_stat, which would return an os.stat-compatible
object. But a lot of what os.stat returns doesn't apply well to a zip
file entry, even if mtime and size do. I'm not sure if mtime should be
the mtime of the zip file itself, or the date_time of the entry.
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Distutils-SIG