cherrypy.lib package¶
Submodules¶
- cherrypy.lib.auth_basic module
- cherrypy.lib.auth_digest module
- cherrypy.lib.caching module
- cherrypy.lib.covercp module
- cherrypy.lib.cpstats module
- cherrypy.lib.cptools module
- cherrypy.lib.encoding module
- cherrypy.lib.gctools module
- cherrypy.lib.httputil module
- cherrypy.lib.jsontools module
- cherrypy.lib.locking module
- cherrypy.lib.profiler module
- cherrypy.lib.reprconf module
- cherrypy.lib.sessions module
- cherrypy.lib.static module
- cherrypy.lib.xmlrpcutil module
Module contents¶
CherryPy Library.
-
class
cherrypy.lib.
file_generator
(input, chunkSize=65536)[source]¶ Bases:
object
Yield the given input (a file object) in chunks (default 64k).
(Core)
-
next
()¶ Return next chunk of file.
-
-
cherrypy.lib.
file_generator_limited
(fileobj, count, chunk_size=65536)[source]¶ Yield the given file object in chunks.
Stopps after
count
bytes has been emitted. Default chunk size is 64kB. (Core)
-
cherrypy.lib.
is_closable_iterator
(obj)[source]¶ Detect if the given object is both closable and iterator.