---
title: "When a Mongoose met a MicroPython, part I"
url: https://daily.dev/posts/when-a-mongoose-met-a-micropython-part-i-51sy6dmhy
source_url: https://www.embeddedrelated.com/showarticle/1649.php
type: article
source: "EmbeddedRelated"
published: 2026-05-31T07:47:54.309Z
updated: 2026-05-31T08:50:07.767Z
tags: ["iot", "embedded", "mongoose"]
reading_time: 11
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# When a Mongoose met a MicroPython, part I

**[EmbeddedRelated](https://daily.dev/sources/embeddedrelated)** · 11 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of a lightweight C framework that integrates Cesanta's Mongoose HTTP server with MicroPython, enabling Python callbacks to be invoked from C event handlers. The example demonstrates building and running an HTTP server on Linux (and ESP32 with Docker), handling API endpoints, Basic Auth via a Python credential dictionary, and the MicroPython C API mechanics for converting between C data types and Python objects. Key topics include registering root pointers to prevent garbage collection of callbacks, crafting MicroPython C extension modules, and the event-driven polling loop that lets Mongoose run within a MicroPython main loop.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.embeddedrelated.com/showarticle/1649.php>

## Similar posts on daily.dev

- [An MCP server for MicroPython](https://daily.dev/posts/an-mcp-server-for-micropython-tdj5qlqhe) · Adafruit Blog · 2 upvotes · 0 comments
- [The "impossibly small" Microdot web framework](https://daily.dev/posts/the-impossibly-small-microdot-web-framework-qiqirmrew) · Hacker News · 5 upvotes · 0 comments

---

Tags: [#iot](https://daily.dev/tags/iot), [#embedded](https://daily.dev/tags/embedded), [#mongoose](https://daily.dev/tags/mongoose)

[View this post on daily.dev](https://daily.dev/posts/when-a-mongoose-met-a-micropython-part-i-51sy6dmhy)
