7 ms·
Microdot
- ulrischa 3y agoSimilar project from pimoroni: phew! https://github.com/pimoroni/phew https://github.com/pimoroni/phew
- dutchypoo 3y agoIs this a Mission: Impossible III reference?
- _rpxpx 3y agoit's an LSD reference
- elevaet 3y agoThat's what I thought too, until I wikipedia'd microdot: https://en.wikipedia.org/wiki/Microdot https://en.wikipedia.org/wiki/Microdot Turns out microdot is a tiny format for communicating text/image which seems an apt name for this tiny webserver. Probably what the LSD format was named after originally. See also https://mikrodot.bandcamp.com/ https://mikrodot.bandcamp.com/
- oblib 3y agoYeah, I'm old enough to recall "Purple Microdot" back in the `70s.
- jkubicek 3y agoIt's actually a Phish reference[1] 1: https://phish.net/song/mikes-song/history https://phish.net/song/mikes-song/history
- lynx23 3y agoNah, Lysergsäurediethylamid.
- geenat 3y agohttps://github.com/nggit/tremolo https://github.com/nggit/tremolo Also may be of serious consideration to people looking at microdot, because: * Pure asyncio only, zero dependencies. * Ships its own ASGI server, like Sanic. (No juggling uvicorn and gunicorn dependencies). * Tiny library, feels like Starlette from the glory days. * streaming responses by default (return stuff, then do processing, return more stuff). * handles streaming multipart form uploads / streaming downloads, without external dependencies. * tons of safeguards built in (request/response size limits, bandwidth throttling!) No massive DoS exploit potential found in Starlette/Uvicorn/FastAPI lol. * the intuitive Sanic-style @on_request + @on_response rather than the complex middleware system in Starlette nowadays Only 2,500 lines, with IMHO, far more important features than Starlette/FastAPI already baked in.
- driggs 3y agoOf serious consideration, eh? Flask: 64,900 GitHub stars Starlette: 8,800 GitHub stars MicroDot: 847 GitHub stars Tremolo: 6 GitHub stars https://github.com/pallets/flask https://github.com/pallets/flask https://github.com/encode/starlette https://github.com/encode/starlette https://github.com/miguelgrinberg/microdot https://github.com/miguelgrinberg/microdot https://github.com/nggit/tremolo https://github.com/nggit/tremolo
- baq 3y agoevery open source project starts with the first star. (sorry for murdering the saying.) may I remind you of https://groups.google.com/g/comp.os.minix/c/dlNtH7RRrGA/m/SwRavCzVE7gJ https://groups.google.com/g/comp.os.minix/c/dlNtH7RRrGA/m/Sw... > I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones. ;)
- gjvc 3y agoAbsolutely. And reliability and feature-set is not measured by project activity about which people on here seem obsessed.
- 3y ago
- xwdv 3y agoBut why?
- tecleandor 3y agoTo serve small apps from mycropython compatible microcontrollers, like an ESP32 or an RP2040. I wast just checking this for creating a small web management interface for an ESP32 light controller and some other sensors.
- deleted 3y ago[deleted]
- cryptoBros2023 3y agoIt’s a no for me dawg
- deleted 3y ago[deleted]
- leetrout 3y ago> Sometimes applications need to store data during the lifetime of a request, so that it can be shared between the before or after request handlers and the route function. The request object provides the g attribute for that purpose. Eh I dont get it. "g" for globals?
- nicolaslem 3y agoI believe it's the same concept as `g` from flask.
- driggs 3y ago`g` is short for "global", but it is global to that request only. This makes data available to hooks which can wrap request handlers before/after they execute It's inspired by Flask's same functionality, though it's a part of the greater Application Context and Request Context in Flask, which Microdot apparently doesn't have: https://flask.palletsprojects.com/en/2.3.x/appcontext/#storing-data https://flask.palletsprojects.com/en/2.3.x/appcontext/#stori...
- __michaelg 3y agoGiven the title I really wanted this to be a small and portable graphviz reimplementation...
- toomim 3y agohaha, that's trippy.
- deleted 3y ago[deleted]