News for hackers. Stuff that matters.

redfox2

Wow I wasn't aware of those. But apart from the 2020 post, the others are pre-TS. Brython seems to have come a long way since TS came in
Guido mentioned he was focusing work on CPython to make Python faster
https://github.com/rayluo/brip

This brings standard PyPi packages to Brython

Please have a look at the last comment for all related content links - implementation, projects, doc etc.
Starboard is completely different from Brython, although it is cool. As for pyodide, it still involves proper working knowledge and literal implemetation of JS - Brython just needs you to know the bare basics, the rest is just pure Python
Pyodide still involves writing JS (literally). Brython just needs you to know the simple basics of JS (since the syntax is similar), and you're good to go with pure Python from there on.
Yeah, it has been there for quite some time, but has really started getting off the ground in about mid-late 2019 which is strange, since like you mentioned, the advent of TS. But slowly a lot of interest has been brewing over it, it's growing faster than ever, and has been attracting users/contributors a LOT only since the start of last year.

https://academy.cs.cmu.edu/

This is Carnegie Mellon's academy website, running on Brython. See the Brython Wiki page on their GitHub, they got a list there.

Yeah. Like I said, it could really do with more contributors who can work on these issues and add keep adding features. rayluo who is a major contributor (developed brip to support using regular PyPi packages with brython), for example, works at Microsoft, and most probably does this in his spare time. More people like this can help bring Brython up even more, so there's a majority coverage for what JS can do, with Brython. Joining their Groups forum really shows you how much they're working and how much they're dedicated to this. This is only going to keep growing, if more devs and contributors hop onto the project even in their spare time.
I discovered this about a month ago, and it deserves to go up to the sky.

The GitHub page is linked at the end.

Some articles/content that relates to this ([4] is pretty cool and definitely check it out, so is [6]):

[1] https://brython.info/static_doc/en/intro.html

[2] https://towardsdatascience.com/run-python-code-on-websites-e...

[3] https://stackabuse.com/an-introductory-guide-to-brython

[4] https://rayluo.github.io/brython-project-template/

[5] https://github.com/rayluo/brip

[6] https://github.com/brython-dev/brython/wiki/Brython%20in%20t...

[7] https://academy.cs.cmu.edu/ (CMU's academy website runs on Brython)

Here's the GitHub page: https://github.com/brython-dev/brython/

And the Wiki, for examples -https://github.com/brython-dev/brython/wiki/Brython%20in%20t...

If you're familiar with all that's going on with the source code or at least some parts of it, and have time to spare, do take the time out to contribute to this project. It's pretty insane what they're building.

You can join their Google Groups forum here: https://groups.google.com/forum/?fromgroups=#!forum/brython

I wasn't aware of that. Since the standards for a 'successful' project are relatively abstract, I had a very bad idea on what defines a good project. I'll work on it and get better. Thanks.

Ask HN: How do you come to terms accepting a hard-worked project is going down?

A few days, ago, I posted [1] on Show HN. It was my first serious project and one that I had decided to actually ask people for feedback. While I did get a few encouraging words and some criticism which I've been working on a lot, I've been getting VERY few downloads (pip installs, here) in the past few days. I'm talking an average of 1-2 or maybe if I'm lucky, 5 a day. It's been only getting...

( Read More... | 2 comments | 2 points | on HN )
Re:Show HN: A Python native engine for web development on Tuesday July 13, 2021 @10:00AM (#27821051)
I have no idea what you're saying lol
Re:Show HN: A Python native engine for web development on Monday July 12, 2021 @12:10AM (#27806963)
But the issue when I avoid render_template() is this: I can't add the CSS file along with the HTML one, unless I create a <style> tag at the end of the file that has all of the CSS content. Can you comment on that?
Re:Show HN: A Python native engine for web development on Sunday July 11, 2021 @07:55AM (#27800112)
Oh render_template(), yeah. Thanks
Re:Show HN: A Python native engine for web development on Sunday July 11, 2021 @07:20AM (#27799974)
'This simplifies things, and you can use an in-memory StringIO object rather than a file. You can then return this string to flask as a text/html response and avoid Jinja2 entirely.'

I didn't think of this until you mentioned this, so might do that. But I don't get the 'avoid Jinja2 entirely' part. Jinja2 is avoided with the current syntax already (which is definitely changing).

About BeautifulSoup, the autoPrettify() function is actually from bs4, it is a dependency.

Yeah I know, camelCase IS unpythonic

Thanks again

Re:Show HN: A Python native engine for web development on Sunday July 11, 2021 @05:16AM (#27799474)
I always use snake_case. But the guy I'm working with always insists on using camelCase, though he's never used Java/c#/Go. I don't like it, so sometimes we make compromises there. Thanks for the advice
Re:Show HN: A Python native engine for web development on Saturday July 10, 2021 @11:47PM (#27798316)
Also, mighty thanks for actually taking the time out to check out the codebase. This is my first proper project, and I really appreciate this
Re:Show HN: A Python native engine for web development on Saturday July 10, 2021 @11:33PM (#27798282)
Yeah, you're absolutely right, I wasn't able to really think of another way to implement it. [2] was meant to be implemented with Flask, which is optional, so the files can directly be written to templates/ and static/. We're actually changing this. Can you give a few suggestions on how it must be implemented? We want to work on this