Have you ever written a piece of Python code that was so useful you found yourself copying it between projects? What if you could package that code into a polished library that others could install and use with a single command? In this talk, we’ll explore the principles and best practices behind it
Have you ever written a piece of Python code that was so useful you found yourself copying it between projects? What if you could package that code into a polished library that others could install and use with a single command? In this talk, we’ll explore the principles and best practices behind designing Python libraries that are not only functional but also clean, maintainable, and a joy to use.
You’ll learn how to structure your library, write intuitive APIs, and document it effectively to ensure it’s accessible to others. We’ll discuss tools for packaging and distributing your library on PyPI, tips for managing dependencies, and how to make your library extensible and future-proof. Along the way, we’ll look at examples from popular Python libraries and highlight the design choices that make them successful. Whether you’re creating an internal tool for your team or contributing to the open-source ecosystem, this session will equip you with the knowledge to turn your ideas into reusable libraries that stand the test of time.
Shreya is a sofware engineer from last two years with experience as a product designer. She was the runner up at India’s biggest hackathon “Smart India Hackathon 2023” with her web scraping skills. She also managed various online python communities including her twitter where she teached thousands of devs python and web scraping. She was also a speaker at KubeCon North America last year.