Skip to content

The PyScript Bridge Helper #2353

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

WebReflection
Copy link
Contributor

Description

As demoed today (and cleaned up after) it is possible to make it easy to import Python utilities from a JS module with the only constraint that any_file.js has at its same position any_file.py to help publishing or shipping Python modules that can be easily consumed via JS / 3rd party scripts.

This MR would like to create a specific folder that is not coupled with PyScript release cycles as it won't likely change much in the future but it deserves its own module/namespace (imho) so here I am with this proposal.

Changes

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection WebReflection force-pushed the bridge branch 9 times, most recently from 5c7979d to 051221d Compare June 18, 2025 07:52
@WebReflection WebReflection force-pushed the bridge branch 8 times, most recently from c3da13e to 8b04011 Compare June 18, 2025 08:51
@WebReflection
Copy link
Contributor Author

WebReflection commented Jun 18, 2025

@JoshuaLowe1002 so this has been patched, tested via CDN (see test/remote/index.html) and all utilities to make it work as expected with ease are in place, including config.files source URL normalization, when these are relative.

Basically this module is dog-fooding itself published as it is and if you copy and paste just that test/remote locally and try it, you should see files from the CDN from this module itself working as expected.

I am still at v0.0.8 (or later) but I think this is ready for its first minor version and we can refine, improve, and tune it until we are happy about all possible results.

/cc @ntoll

@WebReflection WebReflection force-pushed the bridge branch 3 times, most recently from da12946 to 0281ddc Compare June 18, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy