Abdulrahman Mustafapebble-programming.hashnode.dev·Jul 6, 2024Efficient API Handling in Python: Connection Pooling and Async Calls for EgyTech API WrapperLast article, we created a simple pythonic wrapper for the EgyTech API, with basic functionality. This time we will be extending out wrapper's functionality with some interesting concepts. I've also included some diagrams to help you with these conce...DiscussCreating, Documenting, & Publishing A Pythonic API Wrapperasynchronous API Calls
Abdulrahman Mustafapebble-programming.hashnode.dev·Jul 6, 2024Streamlining API Interactions: Building a Pythonic Wrapper for EgyTech APIBackground First of all, why use a wrapper? Well, wrappers are incredibly useful high-level tools that allow you to use an API without having to worry about constructing correct API calls, allowing the user of such wrapper to focus more on their code...DiscussCreating, Documenting, & Publishing A Pythonic API WrapperHttpx
screshscresh.hashnode.dev·May 28, 2024DDD Value Objects: Mastering Data Validation in PythonAlthough DDD (Domain-Driven Design) is not widely adopted within the Python community, there are several resources available on how to implement this approach in the language. Unfortunately, only a few of them offer a good way of defining Value Objec...Discuss·127 readssingle-field-value-objects
izam-mohammedizam.hashnode.dev·Apr 3, 2024I created Ragrank 🎯 - Open source Python library to evaluate LLM.Ragrank 🎯 Feel free to contribute on GitHub 💚 The story behind Ragrank: Recently, I was building an LLM application using Retrieval Augmented Generation (RAG). After pushing that into production, I received some feedback indicating that the chatbo...Discuss·10 likesllm
Abiodun Sotundeiamabbey.hashnode.dev·Apr 2, 2024Custom Types in PydanticSince software's inception, one of important aspects of software development has been data validation, it is important to validate inputs supplied into your application, so as to guarantee the data is exactly as expected. Around 2018, Pydantic was in...Discuss·110 readsPython
Himanshu Chauhanhimanshuchauhan.hashnode.dev·Mar 18, 2024Day 32: E-commerce project Day 2In this blog, I delve into the second day of my e-commerce project, which revolves around my exploration of FastAPI for project development. As I navigate through the intricacies of FastAPI, I am gaining invaluable insights into its capabilities and ...DiscussPython Python
Harsh Tiwarihtiwaridev.hashnode.dev·Feb 14, 2024From Chaos to Order: Structured JSON using Pydantic and Instructor with LLMsIn the world of Large Language Models (LLMs), making them play nice with our applications is key. We want our models to dish out neat JSON for easy integration into our full-stack setups. But relying solely on LLM luck for perfect JSON? Let's be real...Discuss·66 readsllm
Emre Erguvanchopin.hashnode.dev·Sep 15, 2023Validating recursive JSONs using JSON Schema in PythonEdit: Please note that it's much easier and faster to do this sort of validation directly using pydantic. If, however, you must use jsonschema, this post should be helpful. Hey there! Recently, while working on a Django app, I implemented validation ...Discuss·1 like·145 readsPython
Naveennav610.hashnode.dev·Feb 6, 2023Pydantic Data ValidationThe last blog discussed a method of data validation, exemplified through a POST request, that utilized a class whose __init__ method attempted to assign parameters and threw an error if a parameter did not exist. Unfortunately, that class structure w...Discuss·128 readsPython
Naveennav610.hashnode.dev·Jan 30, 2023Data ValidationOften, if not always, you want to validate an incoming payload to ensure it is passing the necessary parameters. If parameters are missing, you can fast-fail with an InvalidInput-like exception to quickly let the requester know the payload is malform...Discuss·89 readspydantic