Skip to content

Commit

Permalink
add example to try out pyodide importing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
alanisaac committed Sep 20, 2023
1 parent 76c5687 commit bed4692
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rules-engine/src/rules_engine/import_test_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""
TODO: this module was created to test importing via Pyodide.
Once that testing is complete, this module should be deleted.
"""

from . import import_test_2

def try_it_out() -> bool:
foo = import_test_2.Foo()
foo.call_me()
return True
8 changes: 8 additions & 0 deletions rules-engine/src/rules_engine/import_test_2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
TODO: this module was created to test importing via Pyodide.
Once that testing is complete, this module should be deleted.
"""

class Foo:
def call_me(self):
print("I was called!")

0 comments on commit bed4692

Please sign in to comment.