Leanpub Header

Skip to main content

Filters

Category: "Computer Programming/Artificial Intelligence/Python"

Books

  1. The Model Context Protocol (MCP) in Practice
    The Model Context Protocol (MCP) in Practice
    Building, Integrating, and Scaling Custom Tool Servers for AI Agents
    Yohan J. Rodríguez

    A hands-on guide to designing, building, testing, and deploying secure stdio and SSE MCP servers in Python and TypeScript (437 manuscript pages).

  2. Python for DevOps & SRE — A Senior Engineer's Field Manual(2026)
    Python for DevOps & SRE — A Senior Engineer's Field Manual(2026)
    Learn Python for DevOps & SRE: 8 hands-on modules, 4 runnable production tools, and 50+ senior SRE interview questions with answers.
    Nix

    Most books teach Python the language. This is Python for DevOps and Site Reliability Engineering — a 210-page field manual on writing automation that runs unattended in CI/CD pipelines, cron jobs, and Kubernetes clusters, plus the senior SRE interview preparation to turn those skills into your next role: 50+ interview questions with model answers, 5 system-design scenarios, and 4 complete production-grade tools.

  3. Linear Programming and AI Optimization Models VOL-3
    Linear Programming and AI Optimization Models VOL-3
    Foundations Algorithms and Modern Applications in Operations Research and Machine Learning
    Anshuman Mishra

    Linear Programming and AI Optimization Models (VOL-3) delivers practical mastery in scheduling, supply chain, logistics, hybrid AI-OR systems, large-scale cloud optimization, and emerging technologies. With Python implementations, industry case studies, and forward-looking research trends, this volume turns theory into powerful real-world solutions.

  4. Linear Programming and AI Optimization Models VOL-2
    Linear Programming and AI Optimization Models VOL-2
    Foundations Algorithms and Modern Applications in Operations Research and Machine Learning
    Anshuman Mishra

    Take your optimization skills to the next level with AI.Linear Programming and AI Optimization Models (VOL-2) dives deep into the algorithms driving modern Machine Learning and Intelligent Systems. Master Gradient Descent, Adam, Reinforcement Learning, Genetic Algorithms, Particle Swarm Optimization, Constraint Satisfaction, and advanced Network Models.

  5. LLM Quantization
    LLM Quantization
    From the Bits Up
    Hatem M.

    Anyone can run INT4 and read off the accuracy drop. This book explains why that number is what it is — building every quantization method from scratch, breaking it on purpose, and measuring the result. Quantization, from the bits up.

  6. AI & LLMs from Scratch
    AI & LLMs from Scratch
    Build Production-Ready AI Tools with Python for Modern AI Careers
    A.P. Pyre

    Build real-world AI applications with Python—not just demos. Learn LLM APIs, RAG, embeddings, vector search, AI agents, prompt engineering, security, deployment, and production-ready architectures through practical projects and expert guidance. Gain the skills to build, ship, and scale modern AI systems with confidence.

  7. Python For Beginners : A Step by Step Guide

    Learn Python from scratch with this clear, step-by-step beginner’s guide. Perfect for students, professionals, and self-learners. Master programming fundamentals through practical examples, exercises, and real mini-projects. Build confidence and start coding today!

  8. DeepSeek V3
    DeepSeek V3
    Practical Guide for AI Learning Research & Professional Use
    Anshuman Mishra

    Master DeepSeek V3 — one of the most capable AI models of its time.This practical guide teaches students, researchers, and professionals how to use DeepSeek V3 for learning, research, coding, content creation, automation, and productivity — with strong focus on prompt engineering and responsible AI usage.

  9. ​DUAL-ENGINE ALGORITHMS
    ​DUAL-ENGINE ALGORITHMS
    From Conceptual Formulas to High-Performance Code: A Comparative Guide to Data Structures, Memory Management, and Optimization
    AhmedAdawy

    How does code actually run under the hood? Stop guessing and master the hidden physics of execution. Learn how Python and Java truly manage memory, layout data structures, and drive high-performance algorithms.

  10. Physics-Informed Machine Learning: A Practical Guide
    Physics-Informed Machine Learning: A Practical Guide
    Complete Edition — Foundations, Advanced Methods, and Applications
    Kompri

    A practical, code-first guide to physics-informed machine learning for scientists and engineers, now complete in one volume. Build your first PINN from scratch in PyTorch, then go further into hard constraints, Navier–Stokes, neural operators, inverse problems, uncertainty quantification, and real case studies in aerodynamics, materials, and biomedicine.

  11. A Complete Guide to AI Agents
    A Complete Guide to AI Agents
    Concepts, Architecture, Frameworks Overview
    Samir Solanki

    From LLMs and RAG to Memory, MCP, Agent Frameworks and Enterprise AI Controls—discover how modern AI Agents work internally within today's rapidly evolving AI ecosystem.

  12. AI API Security Scanner: Build It From Scratch

    Every web application has security headers, cookies, TLS configurations, and CORS policies that need to be correct. Most teams find out they're wrong only after a penetration test — or worse, after an incident. This book shows you how to build a scanner that catches these issues automatically. You'll create a Python CLI tool that uses Hurl (declarative HTTP testing) to assert security properties, SSLyze to validate TLS protocol versions, and AI to generate specific remediation for every failure it finds. The output: structured JSON reports, visual HTML dashboards, and AI-generated security posture assessments. **What you'll build:** - 9 declarative Hurl security test files (headers, cookies, CORS, HSTS, CSP, CSRF, redirects, TLS) - A preprocessor that handles domain substitution and authentication - An output parser with built-in remediation guidance for every test - A TLS scanner validating SSL 2.0/3.0 disabled and TLS 1.2/1.3 enabled - An AI analyzer that generates context-specific fixes using Ollama, OpenAI, or Bedrock - An HTML reporter with dark-themed visual dashboards - Docker multi-architecture deployment - CI/CD pipeline with GitHub Actions **Who this is for:** - Developers who want security checks before deploying - DevSecOps engineers building CI/CD security gates - Penetration testers who need quick baseline assessments - Security students learning web vulnerability concepts hands-on - Platform teams enforcing security standards across services Every failure includes: what was expected, what was received, why it matters, how to fix it, and a documentation link. AI adds domain-specific code examples on top.

  13. Building an AI Threat Modeling MCP Server

    Threat modeling is broken. It takes days, costs thousands, and most teams skip it entirely. What if your AI coding assistant could do it for you — systematically, consistently, and in minutes? This book shows you how to build an MCP server that makes it happen. You'll create 80+ structured tools that guide any AI assistant through a rigorous 9-phase STRIDE threat modeling workflow. Not vague prompts that produce unstructured text — real, typed, validated tools that build up a complete threat model piece by piece: business context, architecture, threat actors, trust boundaries, data flows, STRIDE-based threats, mitigations, and a final JSON export compatible with AWS Threat Composer. **What you'll build:** - A full MCP server with FastMCP (stdio + SSE transport) - Pydantic v2 data models for type-safe threat modeling - Case-insensitive enum validation (because AI isn't always consistent) - 11 tool modules covering every phase of STRIDE analysis - Customizable organization security guidelines loaded from `.md` files - Docker deployment for team-wide access - Compliance gap analysis that validates against mandatory controls - A complete workflow orchestrator with progress tracking **What makes this different:** The server doesn't call any LLM itself. It provides the structure and tools — your AI assistant (Claude, Kiro, Cursor, Copilot) provides the intelligence. This means it works with any model, any provider, forever. No API keys, no token costs for the server itself. **Who this is for:** - Security engineers who want to automate repetitive threat modeling - Python developers building MCP servers for any domain - DevSecOps teams embedding security into AI-assisted workflows - Architects who need consistent, auditable threat models - Anyone curious about how MCP tools work under the hood **By the end of this book**, you'll have a production-ready MCP server, a deep understanding of how AI tools are structured, and transferable patterns for building MCP servers in any domain — not just security.

  14. Artificial Intelligence Fundamentals - Natural Language Processing
    Artificial Intelligence Fundamentals - Natural Language Processing
    Sentence Similarity
    Howard Pong Yuen LAM, PhD

    Have you ever wondered how AI knows that "Which company designs iPhone?" is best answered by "Apple designs iPhone" — and not "I love to eat apple" or "Both Apple and Orange are fruits"? This book takes you on a visual, step-by-step journey to discover how artificial intelligence reads the meaning behind words — not just the words themselves. By the end, you'll understand the elegant idea powering modern AI chatbots, and write your own Python programs to find the best answer to any question from a list of sentences.

  15. The Ultimate AI Math Cheat Sheet
    The Ultimate AI Math Cheat Sheet
    Stop drawing textbooks
    AhmedAdawy

    # 🚀 Master the Math Behind Artificial Intelligence!Stop drowning in complex textbooks. This premium, high-density **AI Math Cheat Sheet** is engineered specifically for Data Scientists, ML Engineers, and Python Developers who want to bridge the gap between mathematical theory and production-ready co