Packaging JavaScript Libraries for easy Brython import/use

38 views
Skip to first unread message

Andreas

unread,
Dec 12, 2017, 2:07:13 PM12/12/17
to brython
What sort of mechanism can be implemented for that to be made a reality ? I think it's very important for the project to blossom. Client-side programs with no rich library selection (arguable similar to the one of JavaScript) are not that useful.

Jonathan Verner

unread,
Dec 13, 2017, 4:16:06 AM12/13/17
to brython
Most javascript libraries should be useable from Brython as is (i.e. accessing them through browser.window). It should also be relatively easy to write a simple wrapper around them to support importing them into brython directly (see, e.g., the files in https://github.com/brython-dev/brython/tree/master/www/src/libs), however, so far there is not a lot of documentation about this. Pull requests are of course welcome ;-)
Reply all
Reply to author
Forward
0 new messages