The Astros and Blue Jays completed a 10-player trade on Friday, with Houston getting seven players and sending three pitchers including Brandon Lyon to Toronto.

The Blue Jays received left-hander J.A. Happ and right-handers Brandon Lyon and David Carpenter. The Astros acquired two Major League players — reliever Francisco Cordero and outfielder Ben Francisco — as well as four Minor Leaguers: right-handers Asher Wojciechowski and Joe Musgrove, left-hander David Rollins and catcher Carlos Perez. The Astros also will receive a player to be named later.

Lyon has gone 0-2 with a 3.25 ERA this season in 37 appearances with the Astros and is in the final season of a three-year, $15 million deal he signed with the ‘Stros.

The 37-year-old Cordero has 329 career saves but has gone 3-5 with a 5.77 ERA and two saves this season. Francisco, 30, has posted a .240 average in 27 games. Both players were in their first seasons with the Blue Jays.

Happ was 7-9 with a 4.83 ERA this season with the Astros. Lyon pitched to a 3.75 ERA in 37 relief appearances. Carpenter was 0-2 with a 6.07 ERA in 30 appearances out of the bullpen, and he will report to Toronto’s Triple-A affiliate in Las Vegas.

Wojciechowski and Musgrove were ranked by MLB.com as Toronto’s 10th and 11th top prospects, respectively. Wojciechowski, 23, was the 41st pick in the 2010 First-Year Player Draft and put up a 7-3 record and 3.57 ERA in 18 starts for Class-A Dunedin this season. The 19-year-old Musgrove was picked 46th overall in the 2011 Draft and is 1-1 with a 3.51 ERA over two pro seasons.

Rollins, 22, was 10-1 with a 2.46 ERA in 25 starts over two professional season in the Blue Jays’ system, and the 21-year-old Perez was batting .269 with five homers and 40 RBIs for Class-A Lansing this year.