Skip to main content
← All Tags

python

82 articles in this category (Page 1 of 4)

PythonFastAPIDocker

Codexity Part 8: The Complete Answer Engine

The final chapter. Assemble every module into a running application. Complete source code, Docker deployment, configuration, testing, and performance tuning for the full Codexity answer engine.

Read more
PythonFastAPISSE

Codexity Part 7: Server-Sent Events and Streaming

Implement production-grade SSE streaming in FastAPI. Handle connection drops, heartbeats, backpressure, error recovery, and the HTTP details that make streaming reliable.

Read more
PythonLLMAI

Codexity Part 6: Small Model Inference with llama-cpp-python

Run a quantized 7B model locally to generate cited answers from scraped web content. Choose between Qwen, Mistral, Phi, and Llama models. Build prompts that make small models behave like large ones.

Read more
PythonNLPSearch

Codexity Part 5: Content Processing and Relevance Ranking

Take raw scraped text from 12 web pages and transform it into a focused context window for an LLM. Chunk text, score relevance with BM25, select the best fragments, and format them with source citations.

Read more
PythonWeb ScrapingPlaywright

Codexity Part 4: Web Scraping, Proxies, and Anti-Bot Warfare

Fetch and extract content from 15 web pages concurrently. Handle JavaScript rendering with Playwright, dodge anti-bot systems, rotate proxies, and strip HTML down to clean text using readability-lxml and BeautifulSoup.

Read more
PythonAsyncSearch

Codexity Part 3: Async Web Search with DuckDuckGo

Fire multiple search queries in parallel using DuckDuckGo's Python library and asyncio. Handle rate limiting, deduplicate results, and build a resilient search layer that does not depend on paid APIs.

Read more
PythonAILLM

Codexity Part 2: Query Rewriting with LLMs

A user types a vague question. The query rewriter transforms it into targeted search queries using a local LLM. We cover intent classification, query decomposition, and prompt engineering that actually works with small models.

Read more
PythonAISearch

Codexity Part 1: Architecture of an Answer Engine

The first chapter in a series on building a Perplexity-style answer engine from scratch in Python. We lay out the full architecture, set up the project skeleton, and understand every component before writing a single line of business logic.

Read more
AI NewsPythonSoftware Engineering

Mastering Python pytest: A Technical Guide to Effective Testing

Learn to leverage pytest fixtures, parametrization, and mocking to catch bugs before production deployment.

Read more
AI NewsPythonSoftware Engineering

Mastering Python Loops: From Manual Repetition to Automated Data Pipelines

Learn how to transition from manual print statements to scalable for and while loops in Python to process datasets of any size.

Read more
AI NewsPythonDevOps

Automating Git Workflows with Python and GitPython

Streamline DevOps by automating Git commits and deployments with Python, featuring a 5-second debounced auto-commit system to eliminate manual CLI tasks.

Read more
AI NewsPythonAutomation

Python Task Scheduler: Run Any Script Automatically (No Cron Needed)

Build resilient Python task schedulers with retry logic and APScheduler integration, offering human-readable configuration and cross-platform automation capabilities.

Read more
AI NewsSoftware EngineeringPython

Mastering the Python Entry Point: Understanding `if __name__ == "__main__"`

Learn how Python's `__name__` variable prevents accidental code execution during module imports, ensuring clean and reusable software architecture.

Read more
AI NewsDevOpsPython

Preventing Silent Cron Failures in Python Serverless Environments

Mike Tickstem launches a Python SDK to prevent silent cron failures on Vercel and Fly.io using heartbeat monitoring and external scheduling.

Read more
AI NewsDevOpsPython

SwiftDeploy: Automated Deployment Blocking with Open Policy Agent

SwiftDeploy uses OPA to block deployments if disk space is under 10GB or canary error rates exceed 1%, preventing critical production outages.

Read more
AI NewsPythonPerformance Optimization

3 Asyncio Pitfalls and How to Avoid Production Crashes

Avoiding common Asyncio mistakes like blocking calls and orphaned tasks can prevent service latency spikes and OOM errors in Python data services.

Read more
AI NewsPythonData Engineering

Systematic Data Cleaning: Auditing and Fixing Messy Datasets in Python

Learn how to detect and resolve data anomalies like 18.2% missing salary values and inconsistent categorical strings using systematic Python audits.

Read more
AI NewsCybersecurityPython

Building a Python-Based Hacker Terminal for Cybersecurity Learning

Developer Eidolmor launches a terminal-based hacker simulation in Python to bridge the gap between cybersecurity theory and practical implementation using modular game logic.

Read more
AI NewsGame DevelopmentPython

Building 2D Games with Pygame: Implementing Snake Animation

Learn to build 2D games using Pygame's offscreen buffer and event loop to create a smooth, 20 FPS Snake animation.

Read more
AI NewsSoftware EngineeringPython

OpAstro: An Open-Core Astrology Engine for Python Developers

OpAstro provides a deterministic, Swiss Ephemeris-based astrology engine with CLI and API support for reproducible production workflows.

Read more
AI NewsPythonWeb Development

Streamlined Website Screenshot Generation with Python and Managed APIs

Learn to capture website screenshots and PDFs programmatically with Python using ScreenshotAPIs, offering 100 free captures per month.

Read more
aiagentspython

AI Agents from Scratch Part 6: Complete Agent & Best Practices (Research Report Generator)

The finale! Run your complete Research Report Generator, learn best practices, explore advanced memory strategies, and discover how to extend your agent with new capabilities.

Read more
aiagentspython

AI Agents from Scratch Part 5: The Agent Core & Loop (Research Report Generator)

Build the brain of your AI agent! Implement the ReAct loop, system prompts, tool execution, and phase handlers that orchestrate the entire research workflow.

Read more
AI NewsSoftware TestingPython

Pytest-Gremlins 1.5.0: Enhancing Mutation Testing with Mandatory Pardon Reasoning

Pytest-gremlins v1.5.0 introduces inline mutation pardoning with mandatory reasoning and enforcement ceilings to prevent mutation score erosion.

Read more