What is the difference between library and framework? In this post, We will learn about the very confusing term library and framework that widely used in software. Library and Framework Library: Library is a code repository that your code call. For example, curl is a library that can be called by your code. Framework: In a framework, framework call your code. For example, Django is a framework in which you keep your code in a particular structure can Django call your code compilation and execution purpose. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.