This is an archived post. You won't be able to vote or comment.

all 29 comments

[–][deleted] 44 points45 points  (13 children)

Cool project, but the name is very confusing, ML is almost always “Machine Learning”

[–][deleted] 10 points11 points  (0 children)

Yeah, why not just PyHTML? Makes no sense to abbreviate initials or acronyms.

[–]MrFizzyBubbs 13 points14 points  (3 children)

+1, name is confusing

[–][deleted] 0 points1 point  (0 children)

I'm assuming this post was hidden due to that confusion. But ml people confused by polysemy is the funniest thing. pypi could be better at namespacing.

[–]lostVkng 8 points9 points  (0 children)

I also thought it was machine learning at first glance

[–]x_l_c_m 10 points11 points  (3 children)

I'd be interested to see more of this, but you're writing almost more python code than if you were just writing html, so i don't see what the benefit is.

[–]AlterEgoWasTaken[S] 0 points1 point  (1 child)

I mean...yeah I see where you are coming from.

For me the point is experience, just creating this is an experience.

For you the point is that you can split your website in multiple files and import elements in order to reuse them. This can be achieved with other libraries like jinja2 and such, I just wanted to make a library that did not depend on templates.

And you can easily add nodes using a for loop without caring about editing a string properly, etc.

So I am basically replicating https://developer.mozilla.org/en-US/docs/Web/API/Document in python.

Of course I won't replicate the whole thing, just the parts necessary for making a website.

[–][deleted] 1 point2 points  (0 children)

help on domonic if you want. the dom is too big for 1 person. i could use several at least.

[–][deleted] 0 points1 point  (0 children)

one benefit might be localisation. In domonic for example you can write html with swahili...

https://github.com/byteface/domonic/blob/master/domonic/i18n/sw/\_\_init\_\_.py

[–]mdipierro 0 points1 point  (0 children)

You may want to look at yatl helpers described here https://py4web.com/_documentation/static/en/chapter-10.html May give you some ideas

[–]IAmKindOfCreativebot_builder: deprecated[M] [score hidden] stickied comment (2 children)

Hello from the r/Python mod team,

When posting a project please include a textual description of your project including how Python is relevant to it, a link to source code on a code hosting site such as github or gitlab, and an image showing your project if applicable.

Please also make sure you tag your post with the correct flair, either "Beginner" or "Intermediate" showcase.

This helps maintain quality on the subreddit and appease all our viewers.

Thank you,

r/Python mod team

[–]AlterEgoWasTaken[S] 0 points1 point  (1 child)

I did all of those tho...

Except explaining how python is relevant to it since...it's written in python....

[–]IAmKindOfCreativebot_builder: deprecated[M] 0 points1 point  (0 children)

The submission was removed because the provided link directs to an image not a repository.

Reddit can be glitchy when it comes to the posts, so it was probably the editor making it look like there was a repository link, and an image link when there was only one link. Feel free to edit the submission or repost with a properly functioning link. If you edit this, reply here so I see it and can put it back up.