Mahmoud Hashemi

Results 281 comments of Mahmoud Hashemi

Sure. Clastic is built on Werkzeug, so Request and Response are mostly those Werkzeug wrappers. Try `.get_json()` instead of `.values`: https://werkzeug.palletsprojects.com/en/1.0.x/wrappers/#json

Yeah werkzeug's basically doing that behind the scenes anyways, not a huge convenience delta. Might be a recent addition to werkzeug, even the most recent published version of clastic is...

re: noob-ness, no time like the present when it comes to learning! Be sure to check out the new tutorials on the in-progress docs: https://python-clastic.readthedocs.io/en/latest/

Oh my, an organic user, things just got trill. So I polled some Werkzeug users around me and I didn't have very many takers/users of most of Werkzeug's routing abstractions....

PS Voluptuous is pretty awesome. A form-parsing middleware based on it has been on my TODO pretty much since day 1. So also thanks ;)

Ah, yes, I've frequently had this on my mind. There is a caveat though, while that would be possible/straightforward to add in, with Clastic it's very easy to have multiple...

Wow! Thank you! Unfortunately, as it stands, I see many issues with this code. The interface is correct, but there are many antipatterns in play that would hurt immediate usability,...

Neutral and informative is great! I think a good way to build on that would be to generalize to include at least one other popular library. Then it serves as...

If memory + a quick glance serves, `perf_report` generates a bit of an extreme case, no? I'm guessing there's no regression, but there's also not much expectation of speedup in...

That's true, I just rereviewed perf_report and while there are thousands of generated items, they're all pretty ordinary. (Still wondering if we ought to take a look around and see...