Build Your Own Claude Code in Python: Project Setup and First LLM Call
Start a Python coding agent from zero — uv project, .env, a single chat completion through OpenRouter, and an argparse CLI you can pipe prompts into.
21 posts
Start a Python coding agent from zero — uv project, .env, a single chat completion through OpenRouter, and an argparse CLI you can pipe prompts into.
Pub/Sub Pub/Sub stands for Publisher/Subscriber, is an architecture pattern that allows services to communicate asynchronously thus provides a way to build decoupled micro-services. Publisher and Subscriber are also known as Producer and Consumer. Th...
Install rich ➜ pip install rich ➜ mkdir ~/pystartup ➜ touch ~/pystartup/startup.py Create startup script ➜ ~ echo
In Today I Learned(TIL) series, I'm going to explore python standard module called difflib. What is difflib difflib is a built-in standard python library used to find deltas between files and objects. How to use it Load file1 and file2 content choo...
What is Pomodoro? Pomodoro time management technique where you do focused work sessions without any interruptions and take short breaks after the session and repeat it until you complete your task. Pomodoro helps improve concentration and focus. Whe...
Sometimes you would require to implement a catch all requests in your fastapi application. We can achieve it by using api_route method. Catch all route from fastapi import FastAPI, Request app = FastAPI() @app.route(
In C programming, Values to a function can be passed by its value or by its reference. These methods are known as Call by value and Call by reference respectively. Let's understand what are mutable and immutable objects. Mutable Objects list, dict ...
In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator and decorator that supports parameters. In this article, we will use flas...
Set theory Set theory in mathematics deals with groups of objects. It describes the relationship of an object with a set or group. Python also implements the set as standard python module. The sets module provides classes for constructing and manipul...
This article is part of my CPython exploration. In this article, we will learn about CPython, Compilers and how does python executes code and various implementations of python. Compiler In computing, a compiler is a program that translates code writ...
Flask - the most popular light-weight Python WSGI web framework, has released its latest version Flask 2.0.0. Here is the top 6 things that you must know about latest flask. Flask installation To enable async support in Flask, we must install it wit...
In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator and decorator that supports parameters. In this article, we will create a...
In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator and decorator that supports parameters. In this article, we will create r...
In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator. In this article we will learn to create decorators that supports paramet...
In the previous articles of Python decorator series we learnt to create a simple function based decorator, how it works under the hood and how to fix the doc strings. In this article, we will learn to create a class based decorator and use it to dec...
In the previous article Python decorators 101 we learnt, how to create a simple function based decorator and how it works under the hood. In this article, we will improve the traceability and the readability of the decorator function. Let's add some...
This article is part of python decorator series. In this article, we will learn what is decorator and how it works and how to implement a simple decorator function. Decorator In Python, decorators are the functions that can change the behavior of o...
What is Technical debt? Technical debt is an implied cost of additional rework caused by choosing an easier inefficient solution at the moment over a better approach that would take longer time to implement. Technical debt increases over time for va...
Serverless Serverless is one of the new buzz word right now, what does it really means? Serverless computing allows us to focus on building the application without managing infrastructure and scaling. Serverless doesn’t mean no servers at all. It is ...
Functional pipeline fastcore Install fastcore Creating pipeline using fastcore Dynamic pipeline using fastcore Functional pipeline Functional pipeline is a design pattern mostly used in function programming paradigm, where data flows through a seque...
There are several ways to use an else block in python. Lets look at each method and its usecase. 1. if else This is commonly used if else block. if block is executed if the condition is true otherwise else block will be executed. x = True if x: ...