passerine.common

Note

This page is automatically generated. If you don’t see anything, this means this sub-module is not meant to be used. If you really want to know what it is, please check out the source code at passerine/common.py.

Author:Juti Noppornpitak

This package contains classes and functions for common use.

class passerine.common.Enigma

Hashlib wrapper

hash(*data_list)

Make a hash out of the given value.

Parameters:data_list (list of string) – the list of the data being hashed.
Returns:the hashed data string
static instance()

Get a singleton instance.

Note

This class is capable to act as a singleton class by invoking this method.

class passerine.common.Finder

File System API Wrapper

read(file_path, is_binary=False)

Read a file from file_path.

By default, read a file normally. If is_binary is True, the method will read in binary mode.