Helpers

This module defines some helper code used internally by the browser_history package.

Module defines Platform class enumerates the popular Operating Systems.

class browser_history.utils.Platform(value)

An enum used to indicate the system’s platform

A value of 0 is reserved for unknown platforms.

Usage: To be used without instantiating like so:

linux = Platform.LINUX
mac = Platform.MAC
windows = Platform.WINDOWS

See get_platform() to infer the platform from the system.

browser_history.utils.get_history()

This method is used to obtain browser histories of all available and supported browsers for the system platform.

Returns

Object of class browser_history.generic.Outputs with the data member entries set to list(tuple(datetime.datetime, str))

Return type

browser_history.generic.Outputs

browser_history.utils.get_platform()

Returns the current platform

Return type

Platform