Python Package Design: API, Dependency and Code Structure

Python—a language well-suited for fast prototyping in the AI field—has become increasingly popular these days. Creating a well-designed Python package at the right time can make your work more impactful and more likely to be adopted. Since October 2024, I have been learning about Python package development. Since then, I have published my own work IAAR-Shanghai/UHGEval as a Python package, participated in the early architecture design of MemTensor/MemOS , and deeply studied and contributed to gaogaotiantian/dowhen . These experiences have given me some insights into Python package design, which I document in this post. ...

August 3, 2025 · 15 min · 3071 words · Shichao Song