
Building a Dual-Mode AWS Lambda with Python and Terraform
Step-by-step example
Here we have a Python Lambda example of SQS Message Processor + REST API with API Key Protection + Terraform script to deploy it for serverless execution.
Step-by-step example
Here we have a Python Lambda example of SQS Message Processor + REST API with API Key Protection + Terraform script to deploy it for serverless execution.
+ Specific Examples Using Thinking LLMs
In this post, we’ll explore two ways to connect your Python application to Ollama: 1. Via HTTP REST API; 2. Via the official Ollama Python library.
Slightly different APIs require special approach.
Here’s a side-by-side support comparison of structured output (getting reliable JSON back) across popular LLM providers, plus minimal Python examples
A couple of ways to get structured output from Ollama
Large Language Models (LLMs) are powerful, but in production we rarely want free-form paragraphs. Instead, we want predictable data: attributes, facts, or structured objects you can feed into an app. That’s LLM Structured Output.
Using pandoc, python, or online tools for convertion to MD
Converting Word documents to Markdown format is a very common task for technical writers, developers, and content creators who want to move their content to platforms with Markdown (like GitHub, GitLab, static site generators like Hugo).
And deploying new Telegram bot to AWS
Here are my notes with step-by-step tutorial on how to implement and deploy to AWS a Telegram bot. I’ve added a quick start (long polling) and a production-ready path (webhooks), with examples in Python and Node.js.
Nice tool for platform engineering on AWS
The AWS Cloud Development Kit (AWS CDK) is a framework that enables you to define and provision cloud infrastructure using familiar programming languages like TypeScript, Python, Java and Go.
Nice framework for ETS/MLOPS with Python
Apache Airflow is an open-source platform designed to programmatically author, schedule, and monitor workflows, - entirely in Python code, offering a flexible and powerful alternative to traditional, manual, or UI-based workflow tools.
Good things about Python uv
Python uv (pronounced “you-vee”) is a modern, high-performance Python package and project manager written in Rust. It is designed as a drop-in replacement for traditional Python package management tools such as pip
, pip-tools
, virtualenv
, pipx
, and pyenv
, aiming to simplify and accelerate Python development workflows
My favorite lib is pdf-reports
Generating PDF Reports Using Python
Python, with its extensive libraries and modules, offers powerful tools for generating professional PDF reports.
some useful venv commands
Venv is a virtual environment management commandline tool. A much more simple one, comparing to Anaconda. Here are some useful venv commands.
Based on VS Code extentions install count
I aggregated some VS Code extentions installation statistics by different programming languages. And the most popular is Python. Then C++.
Visual Studio Code Cheatsheet is here
Running any executable as a linux service
Here’s a set of instructions on How to Configure to Run any Executable as a Service in Linux with Systemd.
Combining python program into single file
Use PyInstaller to package Python programs as standalone executables. It works on Linux, Windows, and Mac.
Not the most efficient way, but usable.