TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Assembly: A Pythonic Object-Oriented Web Framework Built on Flask

67 点作者 mardix超过 5 年前

13 条评论

petargyurov超过 5 年前
&gt; Flask is very easy and simple. It&#x27;s fun to put a few endpoints in a single file. However when your application starts growing into an endless of endpoints, tons of models and views, or your team is having more people, it is very necessary to have some sort of structure in your application.<p>How is this different than the typical Blueprints setup? My Flask applications are split into modules, each with its own Blueprint; this helps organize large projects.
评论 #21663874 未加载
评论 #21663371 未加载
lexotero超过 5 年前
I thought the whole idea of Flask was to keep it simple. Reduce the amount of boilerplateing and potentially &quot;useless&quot; features of other frameworks, i.e. Django + DRF. For what I&#x27;ve seen so far, it looks like you&#x27;ve put the Django + DRF features on top of Flask.<p>My question would be, why should I use Assemby instead of Django + DRF?
评论 #21664888 未加载
jtdev超过 5 年前
Instead of shitting on Flask (which is in fact great as-is and nicely suited to large projects via Blueprints), why not just build your own web framework and try to get support from the community based entirely on the merits of your framework? And I agree with others comments that this project seems to be adding mostly a bunch of magic Django-esque contraptions to the code, which I very deliberately choose Flask to avoid.
评论 #21665184 未加载
sandGorgon超过 5 年前
it would be superb if something like this can be built on the newer ASGI based frameworks - Starlette or Fastapi (which is built on Starlette).<p>They are among the fastest python frameworks according to techempower benchmarks, have automatically included type checking and are async.
评论 #21664869 未加载
drizze超过 5 年前
&gt;Assembly Makes Flask Great Again<p>The fact that flask can bar a basis for other frameworks makes Flask (and werkzeug) great in itself.
评论 #21665690 未加载
erezsh超过 5 年前
From the tutorial:<p><pre><code> class Index(Assembly): index(self): return </code></pre> How is this valid Python?
评论 #21663558 未加载
评论 #21663571 未加载
toppy超过 5 年前
Be aware that repository has 0 (zero) contributors on Github.
giancarlostoro超过 5 年前
If you want a very Object Oriented Python web framework thats actively maintained and older than Django and Flask check out CherryPy. It was the only framework I saw that you just make a class and expose your routed methods and they become end-points. Every other Python framework looked odd to me with all the annotations.<p>Have used it fot 3+ years in production and its done me well.
softwarelimits超过 5 年前
Can this handle websockets and streams?
mixmastamyk超过 5 年前
Some good ideas here. Similarly, one thing that bugs me about all&#x2F;most frameworks is that you have to spend a significant amount of time “wiring things up,” ... connecting models to views to the admin.<p>That should happen automatically in my opinion. I’d like to create a model class in a models folder and have it found, loaded, tied to views, templates, the admin already. Customizable still of course.<p>Would also like an admin page to download common models like wordpress plugins. Say CMS with comments, roles, history&#x2F;audit etc. All built to standard interfaces. Why do I have to reinvent this and wire it up every single project?<p>Also flowers and Trump themes are a weird combo. Especially when Flask is relatively unchanged. The design is either great or not depending on your perspective.
dang超过 5 年前
One tip: add a comment to the thread giving the backstory of how you came to work on this, and explaining what&#x27;s different about it. That tends to seed discussion in a good direction. Good luck!
filozof900超过 5 年前
I think its quite a poor choice for web framework name ;-)
评论 #21665323 未加载
评论 #21663790 未加载
okaleniuk超过 5 年前
It is a terrible name. You can do web dev in pure Assembly and it actually makes sense in contrast with yet another framework over a framework over an interpreter over POSIX-libraries.<p>E. g. monitoring for mission critical servers. You really don&#x27;t want the whole stack of unverified goodies on these machines, but since you already have TCP&#x2F;IP for SSH, writing a simple web-server that reports machine health over HTTP is like a half-day job.<p>And it&#x27;s verifiable since it&#x27;s small. It doesn&#x27;t drag the whole Python infrastructure with it.
评论 #21665166 未加载