Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROPOSAL] Higher level Pythonic DOM interface #1034

Closed
3 tasks done
fpliger opened this issue Dec 9, 2022 · 0 comments
Closed
3 tasks done

[PROPOSAL] Higher level Pythonic DOM interface #1034

fpliger opened this issue Dec 9, 2022 · 0 comments
Labels
ideas Ideas worth exploring lang: python Related to the Python language type: feature New feature or request

Comments

@fpliger
Copy link
Contributor

fpliger commented Dec 9, 2022

Checklist

  • I added a descriptive title
  • I searched for other feature requests and couldn't find a duplicate (including also the type-feature tag)
  • I confirmed that it's not related to another project area (see the above section)

What is the idea?

PyScript should provide a pythonic web/dom interface. I'd like to start the discussion here....

Later I'll propose what I've been thinking so far, in the comments, but if you had the opportunity, how would you design a pythonic dom api?

Why is this needed

Pyodide provides a great js interface that allows users to use the Javascript DOM interface directly. It's not very Pythonic though.

We currently have the [not so great] Element class in pyscript.py that provides some convenience over that js API it's not really a well thought intentional API.

What should happen?

We should discuss here and reach a higher level agreement on how this API should look like

Additional Context

No response

@fpliger fpliger added type: feature New feature or request needs-triage Issue needs triage ideas Ideas worth exploring lang: python Related to the Python language and removed needs-triage Issue needs triage labels Dec 9, 2022
@pyscript pyscript locked and limited conversation to collaborators Jan 3, 2023
@FabioRosado FabioRosado converted this issue into discussion #1091 Jan 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
ideas Ideas worth exploring lang: python Related to the Python language type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant