Very nice!  Several years ago I asked on this mailing list for some example 
Pyramid applications, this would have been a great one to look at.

You’ve organized the modules by sections of the website, and the relevant views 
and models in each section.  I usually do the inverse, split my app into views, 
models, templates, etc.  I’d be interested to see what “best practice” is 
considered, I’ve always wondered how everybody else organizes their apps.

What’s your experience with type hints/mypy?  I was looking into using them in 
my applications, but decided it wouldn’t be worth it because Pyramid does not 
yet have support (there’s an open issue being discussed) and SQLAlchemy’s 
support is nascent (but very exciting!).

— Theron



> On May 25, 2019, at 4:52 AM, Nejc Zupan <[email protected]> wrote:
> 
> Hey all!
> 
> TL;DR: I’m working on a RealWorld.io backend implementation in Pyramid. I’d
> like to ask fellow pharaohs and mummies to review my code so that I don’t 
> teach
> people bad patterns: https://github.com/niteoweb/pyramid-realworld-example-app
> 
> RealWorld.io is a community effort of implementing a Medium.com clone app in a
> number of interchangeable frontend and backend frameworks. People can then use
> these implementations to compare different stacks and to learn about best
> practices for a chosen framework. 
> 
> There already exist several Python backend implementations: Django, Flask,
> Serverless Python on AWS, etc. But not one for Pyramid!
> 
> So I've built it! I chose to use SQLAlchemy as my ORM and pyramid_openapi3 to
> handle the API things. The example has 100% tests & types coverage, a bunch
> of linters, etc. It's basically a dump of best practices that we have 
> developed
> internally in Niteo in recent years. 
> 
> And there's the catch: our best practices might be outright wrong. I don't 
> want
> to teach people bad patterns. So I'm asking for code review before I submit
> the repository to the "official" list of RealWorld implementations.
> 
> Please review the code in 
> https://github.com/niteoweb/pyramid-realworld-example-app
> and let me know what could be improved. Either as a reply to this email, as
> issues on the repo, or even better, as pull requests. 
> 
> 
> Thanks a ton!
> z.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/B152285B-BAFC-48A0-9DCE-0AA11939E635%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/12FDFC49-945A-40DD-BC0C-5F68AE547730%40luhn.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to