Your code is clean, and the codebase should be small, but using pydantic adds extra packages, which might not be ideal for this simple project. You should use attrs instead—no extra package load.
You can check out my SpyIP: https://github.com/Almas-Ali/SpyIP project, where I wrapped ip-api.com with attrs. I initially started with pydantic but later moved to attrs.
Your code is clean, and the codebase should be small, but using
pydanticadds extra packages, which might not be ideal for this simple project. You should useattrsinstead—no extra package load.You can check out my SpyIP: https://github.com/Almas-Ali/SpyIP project, where I wrapped
ip-api.comwithattrs. I initially started withpydanticbut later moved toattrs.