How to download Future climate, 30 seconds spatial resolution for a country/ region?

Is there any R/Python code that allows downloading a subset of Downscaled monthly future climate data from CMIP6 in GeoTiff format for four SSPs for the following time periods: 2021-2040, 2041-2060, 2061-2080, and 2081-2100 for a country or a region ?