filetypes

Filetypes is a library that helps you guess the file and mine types of files using magic numbers

eth-mine-when-need

This will start your Ethereum miner when there are transactions pending or waiting for confirmation