The document presents a study on the development of a software application, 'pvdesign', for designing, analyzing, and optimizing photovoltaic pumping systems as an alternative to traditional diesel and butane systems in Morocco. Through a techno-economic analysis, the study demonstrates that solar pumping systems offer significant environmental and economic advantages over existing systems, including lower long-term costs and reduced environmental impact. The application allows for comprehensive evaluations of system performance and financial viability before implementation.