Memphis Python User Group
Details
Happy New Year!
To kick off 2026 we have a presentation from the community! Patrick Boateng will present:
Python argument validation
Hear me out: If you've been programming in Python for some time, you may have noticed that validating function or method arguments can become quite complex. It often requires writing numerous if, else, or match statements.
“attrs” and “pydantic” (just to name a few) have solutions for this, but they all use the “class” approach, which means you would have to either “decorate” your classes (attrs) or “inherit” from a “base class” (pydantic), which might not be the solution you want.
The MATLAB programming language solves the function argument validation in a very elegant way (in my opinion), which brings a level of clarity and structure to MATLAB’s programs.
I am happy to announce the release of “func-validator,” which provides a similar approach to MATLAB’s argument validation framework in Python.
You can install it using the following command:
pip install func-validator
pip3 install func-validator -> on Unix (or Linux) systems.
Stay up to date with the latest “func-validator” features, tips, and updates—follow me now so you never miss an announcement or a feature highlight!
Links
PyPI: https://pypi.org/project/func-validator/
GitHub: https://github.com/patrickboateng/func-validator/
Docs: https://func-validator.readthedocs.io/en/latest/https://func-validator.readthedocs.io/en/latest/
In the time left over, I will start on the promised topic of deploying FastAPI to Azure.
AI summary
By Meetup
Memphis Python User Group presents a talk on Python argument validation, introducing func-validator and how to install/use it for validating function args.
AI summary
By Meetup
Memphis Python User Group presents a talk on Python argument validation, introducing func-validator and how to install/use it for validating function args.
