Anne Hathaway is set to play the leading role in a movie based on US writer Pamela Druckerman's autobiography.