The Tempest

Set in the Ryukyu Kingdom during the latter days of the Tokugawa shogunate, a woman takes the guise of a Eunuch to pass a government examination. She eventually becomes a government official still in the disguise of a man.