TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Kore4 and Python

77 pointsby fcambusover 5 years ago

9 comments

dkhover 5 years ago
Yeah, this is very cool, and I’m surprised I hadn’t heard about it. Though I think we’re finally at the point where async python web frameworks and tools are great, to the point where I’m no longer jonesing for something better like I used to, both in terms of performance and usability.<p>Yeah, aiohttp was where it all really began, and sanic is nice for recovering Flask users, but if you really want to see performance and momentum, check out Starlette (<a href="https:&#x2F;&#x2F;www.starlette.io" rel="nofollow">https:&#x2F;&#x2F;www.starlette.io</a>) and FastAPI (<a href="https:&#x2F;&#x2F;fastapi.tiangolo.com" rel="nofollow">https:&#x2F;&#x2F;fastapi.tiangolo.com</a>) which is built on top of Starlette and is very clever and probably the most rapid way to build an API that I’ve ever seen. In most practical tests Starlette also outperforms aiohttp&#x2F;etc. by a factor of 5, and the ASGI spec it’s built on is the actual successor to WGSI and the future of python web programming.<p>Things have come a very long way the last handful of years, and there are many great options. Nice to see yet another one.
评论 #21553545 未加载
评论 #21552787 未加载
wruzaover 5 years ago
Why do project like this spawn in hordes? I don’t ask it to criticize kore4 in any way, let me explain.<p>Every new framework for web does almost the same thing in slightly different way: serve http routes by assigning functions to it and inserting some middleware to check&#x2F;replace something in the request. But why is it important at all? Why don’t we see numerous both-side frameworks which make http (rest, ws, etc) completely transparent?<p>As a long-time desktop dev I would like to use an object lib, which would take the burden of api and provide clean interfaces between client&#x2F;server&#x2F;db. Like this pseudocode:<p><pre><code> # backend @net() @db() class Car: members methods Car.export(some_members) Car.export(some_methods) &#x2F;&#x2F; front let edit = await db.edit() let car = edit.new(db.Car) car.year = 2013 car.pic = await edit.upload(some_pic, progress_handler) car.vendor = db.Vendor.find({ title:’Ford’}) ... await edit.save() &#x2F;&#x2F; or edit.cancel() &#x2F;&#x2F; which also removes pic &#x2F;&#x2F; eventually let car = db.Car.find({year:2013}) car.drive_to(some_loc) # car drives to some_loc in backend # Your taxi app prototype # almost done here </code></pre> Instead we happily define routes in yet another way, which feels like when I was in a school writing masm 100-liners to open a file and print its contents. Am I missing something?<p>I know about vaadin and outsystems, but these are enterprise behemots, one paid, one too complex* and opinionated to begin with. Why not npm install dbnetlib, app.use(dbnetlib()) and go create?<p>* a good sign that you’ll have to jump through hoops on non-standard tasks.
评论 #21551636 未加载
评论 #21551532 未加载
评论 #21551560 未加载
评论 #21551704 未加载
评论 #21551797 未加载
评论 #21553038 未加载
gigatexalover 5 years ago
How am I only hearing about this now? Looks intriguing
jimnotgymover 5 years ago
What I really need is a very concise methodology to help idiots like me understand why I would need yet another web framework.
sp527over 5 years ago
For people interested in a high-performance Python asyncio web server, sanic (<a href="https:&#x2F;&#x2F;github.com&#x2F;huge-success&#x2F;sanic" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;huge-success&#x2F;sanic</a>) is also worth evaluating.
ngcc_hkover 5 years ago
Seems perfect for my purpose. Thanks.
salmoover 5 years ago
Does anyone use this for anything real?
评论 #21552357 未加载
ralalaover 5 years ago
Can I use this with aiohttp?
jupedover 5 years ago
I always forget Kore has Python support. It is not a bad fit.