For a carpet python, your enclosure should be at least 5 feet long, 3 feet wide, and 3 feet tall to support natural behaviors like climbing.
Opt for bigger if possible—these active snakes love space (Source).