api reference? #1985
Replies: 2 comments 1 reply
-
The DOM API is literally the DOM API so that everything in MDN should "just work": The same goes for elements, listeners, other APIs, in few words, the If you use Happy to help further and thanks for the ping, it's clear we should make this more clear or obvious from our current documentation. /cc @ntoll |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback, it's really appreciated and I'm delighted you're excited by PyScript. As @WebReflection mentions, the API for the DOM is exactly what you get on MDN and other sites describing the standard DOM API. We have an FFI layer (foreign function interface) that translates between the DOM and Python context to allow us to just access the "normal" DOM API. We discuss it in our docs here: https://pyscript.github.io/docs/2024.2.1/user-guide/dom/#ffi The problem with the docs (and old GitHub issues), is that we radically refactored PyScript about 6months ago. It shrank from being 2mb of PyScript code, to around 30k of PyScript code. We were able to add many new features (to our We're hoping to do a "doc week" sometime soon to ensure we fold in feedback from our users, have a way for folks to contribute and improve things and make sure folks get the information they need as soon as they need it. Hope this helps, and please keep the feedback coming. 🚀 |
Beta Was this translation helpful? Give feedback.
-
I'm really excited about pyscript, but after struggling for about 30 minutes its still not clear to me how to do very basic stuff, like manipulating a div element.
As far as I can see there's no autocomplete provided in my local editor and there's also no api reference documentation available (like what methods are available in the
document
object?). Lastly the fact that there's no search on the pyscript site makes it really tricky to figure out how this thing works.In old github issues I see links to documentation urls that no longer works - it looks like docs were more "reference-focused" earlier on?
In any case, I find this thing really interesting but sadly really hard to make sense of given the lack of documentation. It would be so cool to see that improve.
Beta Was this translation helpful? Give feedback.
All reactions