How to Build a Testing Library Like Pytest?
As Pythonistas, we all love Pytest. No questions there. But what if we embark on a journey of building something similar on our own?
28 posts
As Pythonistas, we all love Pytest. No questions there. But what if we embark on a journey of building something similar on our own?
Is UML dead? Why UML declined, where it still survives, how AI and diagrams-as-code (Mermaid, PlantUML, D2, Excalidraw) change things, and which diagram to use when.
Python snippets use __name__ == "__main__" checks to ensure that the module-specific code is ran only when they are run directly via Python. Let's see that with an example
Schedulers became major architechtural component of any software that we use, these asynchrous task executors are behind the emails and notifications, the pop up that greets us on logging in, the repo
Reverse Engineering Flask app to build a similar flask like interface
Caching, is a concept that was gifted to software world from the hardware world, A temporary storage for fast and easy access of data.
Add UML diagrams along with every version of your code
how to write a python script to merge multiple python modules into single one
Storing your secrets as Python file, here is what you need to be aware of
A short list of free and paid resources for learning Python, with the advice to pick one and stick with it.
Decorators are the way to give super powers to your Python functions. It takes DRY principle up a notch
Pydantic cool features and what makes it better than Dataclasses and Attrs
What does / and * mean in a Python function definition mean
Generators and Iterators are Python constructs that lets you loop through data in chunks instead of loading them into memory. This post discusses the subtle differences between them
Bound versus unbound methods in Python, explained with a simple Calculator class.
Short itertools tricks for Python, such as replacing nested loops with itertools.product.
How Python figures out the scope of it's variables?
Placeholder for a post on Python's Global Interpreter Lock (GIL); the content is not written yet.
Placeholder for a post comparing multi-processing and multi-threading in Python; the content is not written yet.
An introduction to Python's data model, the concept behind how objects and classes work in the language.
How Python figures out the scope of it's variables?
Protect your FastAPI API with authentication, compliation of methods that will and won't work
Learn how to handle background task exceptions and global errors in FastAPI using custom middleware and Starlette exception hooks.
What changes when migrating from Flask-SQLAlchemy 2.x to 3.0, based on issues I hit in a real project.
ORM in flask a quick start tutorial
How to implement JWT-based authentication in a Python Flask app with the Flask-JWT library.
Start here for your 1st flask script