A Westport elementary school librarian charged with stealing narcotic painkillers from a co-worker was released on a promise to appear at court during her arraignment Wednesday in Norwalk Superior Court.

Sarah Spencer, 47, of Westport -- a librarian at Coleytown Elementary School -- was charged in an arrest warrant with two counts each of possession of narcotics within 1,500 feet of a school, possession of narcotics, sixth-degree larceny and illegally obtaining drugs.

She was initially arrested by Westport police and held on a $10,000 bail bond.

Her lawyer, William Westcott, said that until Monday, Spencer had been a 22-year employee of the Westport public school system. He said that he could not think of anyone who deserved to be released on a promise to appear on the charges for a future court date.

While saying that Spencer is not a flight risk, Westcott said that she also admitted to police that she took the painkiller pills.

The investigation began when another librarian at Coleytown Elementary School reported to police that some painkillers had been taken from her purse, which was locked inside a school file cabinet, the arrest affidavit states.

Police set up a surveillance camera to monitor the file cabinet and Spencer was allegedly videotaped taking drugs from the woman's purse on two occasions, according to the affidavit.