Best of PythonApril 2026

  1. 1
    Article
    Avatar of plhl9qb1xlvee3ys6rvk0Paolo Perrone·3w

    Google just open-sourced agents-cli.

    Google has open-sourced agents-cli, a command-line tool that turns coding agents like Claude Code, GeminiCLI, and OpenAI's CodexCLI into full agent engineers. With a single setup command, these agents gain the ability to scaffold projects, write ADK Python code, run evaluations, and deploy to Cloud Run — enabling a single natural language prompt to build and deploy a complete agent.

  2. 2
    Video
    Avatar of codeheadCodeHead·4w

    Should You... Keep Coding?

    A reflective piece questioning whether developers should keep coding amid AI disruption and tech layoffs. It argues that many so-called AI layoffs are actually cover for pandemic-era overhiring mistakes, and that vibe coding has a real understanding gap — non-technical users can't debug what they don't understand. The piece emphasizes that coding teaches problem-solving and structured thinking that remains valuable regardless of market shifts. Ends with a sponsored recommendation for Coursera courses in Python, Unix, and software architecture.

  3. 3
    Video
    Avatar of codingwithlewisCoding with Lewis·5w

    GitHub has a malware problem

    GitHub's trending page is being exploited by attackers who create repositories with legitimate-sounding names and purchase fake stars to lure developers into downloading malware. Researchers built Star Scout, which scanned six years of GitHub metadata and identified over 6 million suspicious fake stars by detecting ghost accounts and coordinated starring clusters. One group called Banana Squad published nearly 70 repos mimicking real Python security tools, hiding malicious code by padding it with hundreds of blank spaces to push it off-screen. A separate campaign compromised a single GitHub Action and put over 23,000 repositories at risk. The open source ecosystem's trust model is being systematically exploited at scale.

  4. 4
    Video
    Avatar of indentlyIndently·6w

    COMING SOON: D-strings in Python

    PEP 822 proposes a new 'd-string' (dented multi-line string) syntax for Python, likely targeting version 3.15. Currently a draft, it introduces a 'd' prefix before triple-quoted strings that automatically strips common leading whitespace — essentially syntax sugar for `textwrap.dedent()`. The feature solves the awkward indentation problem when writing multi-line strings inside indented code blocks. D-strings can be combined with other string prefixes like f-strings (df""") or raw strings (dr"""). The PEP also documents rejected alternatives such as markdown-style backtick literals, new quote characters, and Swift-style trailing newline trimming.

  5. 5
    Article
    Avatar of adafruit-blogAdafruit Blog·5w

    Bee Write Back, a portable journal

    A maker built a portable personal journal device using a Raspberry Pi Zero 2W in a 3D-printed case for under $200. The device, inspired by the 'writerdeck' form factor, lets the user type journal entries each night and lock them away. It later evolved to include additional apps and a Claude chat client.

  6. 6
    Video
    Avatar of christianlempaChristian Lempa·3w

    Boilerplates 0.2.0 is HERE // Big Update

    Boilerplates 0.2.0 is a major update to a Python CLI tool for generating customizable Docker Compose stacks and infrastructure templates. Key changes include: splitting the CLI application from the template library into separate repositories, switching template metadata format from YAML to JSON for better ordering and Python performance, changing Jinja2 template delimiters from curly brackets to angle brackets to avoid conflicts with Ansible and other tools, adding a new 'secret' variable type with auto-generation support, adding remote upload capability for generated templates, and separating Docker Swarm templates from standard Docker Compose templates. A future 0.3.0 release with a new web interface and custom templating engine is teased for the next 2-3 months.

  7. 7
    Video
    Avatar of neetcodeNeetCode·5w

    Is Writing Code From Scratch Dead?

    A developer pushes back on claims that writing code from scratch is dead. They argue that agentic AI coding tools aren't great for code review, and that manually typing code is itself part of the design thinking process — helping developers figure out function relationships and folder structure. They draw a parallel to past tech hype cycles where people claimed a new tool changed everything, but the resulting products often didn't exist or weren't better than before. The skepticism extends to products built entirely with AI, which often feel lower quality.

  8. 8
    Article
    Avatar of pythonPython Insider·6w

    Python 3.15.0a8, 3.14.4 and 3.13.13 are out!

    Python has released three new versions: 3.15.0a8 (the final planned alpha for 3.15), 3.14.4 (fourth maintenance release with ~337 fixes), and 3.13.13 (thirteenth maintenance release with ~200 fixes). Python 3.15 highlights include PEP 810 explicit lazy imports, a new frozendict built-in type, a statistical sampling profiler (PEP 799), unpacking in comprehensions (PEP 798), UTF-8 as default encoding (PEP 686), TypedDict with typed extra items, TypeForm annotations, a new PyBytesWriter C API, and a significantly upgraded JIT compiler showing 6-7% performance improvement on x86-64 Linux and 12-13% on AArch64 macOS. The next pre-release, 3.15.0b1, is scheduled for 2026-05-05.

  9. 9
    Article
    Avatar of hnHacker News·4w

    GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh

    MacMind is a 1,216-parameter single-layer transformer neural network implemented entirely in HyperTalk — Apple's 1987 scripting language for HyperCard — and trained on a real Macintosh SE/30. It learns the bit-reversal permutation (the first step of the Fast Fourier Transform) from random examples using full backpropagation, self-attention, and stochastic gradient descent. No compiled code or external libraries are used. The project is designed as a transparent, inspectable demonstration that the math behind modern LLMs is not magic — the same forward pass, loss computation, and weight update loop that powers GPT-4 runs here on a 68030 processor at 8 MHz. After training (~1,000 steps, taking hours on real hardware), the attention map independently discovers the FFT butterfly routing pattern first published by Cooley and Tukey in 1965. A Python/NumPy reference implementation is included for validation.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·5w

    Efficient Data Processing in Python: Batch vs Streaming Pipelines Explained

    A practical guide comparing batch and streaming data pipelines in Python. Covers the architectural differences, tradeoffs, and when to use each approach. Includes working Python code for both patterns using pandas for batch ETL and generator functions for streaming event processing. Also explains hybrid architectures like Lambda and Kappa for systems that need both. Key decision factors: data freshness requirements, processing complexity, and operational capacity. The recommendation is to default to batch and only adopt streaming when a concrete real-time requirement demands it.

  11. 11
    Article
    Avatar of planetpythonPlanet Python·3w

    Python Environments Extension for VS Code- April Update

    The April 2026 update to the Python Environments extension for VS Code brings notable startup performance improvements, including lazy manager discovery for Pipenv, pyenv, and Poetry, faster environment resolution, and a narrower default workspace scan pattern that fixes 30+ second hangs on large or remote projects. Reliability improvements include PET crash recovery and a conda base environment restoration bug fix. New quality-of-life features include auto-refreshing package lists after pip installs, multi-project terminal environment selection prompts, and automatic PowerShell execution policy handling for virtual environment activation on Windows.

  12. 12
    Article
    Avatar of googledevsGoogle Developers·4w

    A2UI v0.9: The New Standard for Portable, Framework-Agnostic Generative UI

    A2UI v0.9 is a framework-agnostic standard that lets AI agents generate UI widgets in real-time using a shared component catalog across web, mobile, and other platforms. The release introduces a Python Agent SDK (pip install a2ui-agent-sdk), a simplified 5-step integration flow, and built-in streaming support. Agents that already use AG-UI can drive A2UI on day one via a middleware adapter. The post also highlights real-world implementations including a personal health companion app and a financial life goal simulator, both built with Flutter and the GenUI SDK.

  13. 13
    Article
    Avatar of huggingfaceHugging Face·4w

    Any Custom Frontend with Gradio's Backend

    gradio.Server is a new Gradio class that extends FastAPI, allowing developers to pair any custom frontend (React, Svelte, plain HTML/JS) with Gradio's backend infrastructure including queuing, concurrency management, ZeroGPU support, and gradio_client compatibility. The @app.api() decorator wraps Python functions with Gradio's queuing engine, preventing GPU contention when multiple users hit an endpoint simultaneously. A working demo builds a 'Text Behind Image' editor: a ~50-line Python backend loads a BiRefNet segmentation model, while a 1300-line vanilla HTML/CSS/JS frontend handles canvas layering, drag-and-drop, and client-side PNG export. The frontend communicates via the Gradio JS Client to benefit from queue management. Future posts will cover MCP tool registration, SSE streaming, batch processing, and multi-page app patterns.