lump.http module

class lump.http.RequestIterator(url, chunk_size=20480, **kwargs)[source]

Bases: object

Iterates over chunk_size chunks of the contents of a file, provides a tqdm progress indicator.

as_stream()[source]

Returns a stream of the file contents.

Returns:lump.stream.IteratorStream
lump.http.dbus_connect(host, user, password)[source]

Minimalistic D-Bus login

Parameters:
  • host – Host (including schema) to connect to
  • user – Login username
  • password – Login password
Returns:

request.Session