Skip to content

Commit

Permalink
improve the wheel loader docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel.lozier authored and samuel.lozier committed Feb 28, 2024
1 parent 2908e85 commit caf3e99
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions extras/wheel_loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ handler = 'your_handler'
as
$$
import wheel_loader
# load wheel and add to path
wheel_loader.load('pypiexample1-0.1.0-py3-none-any.whl')
wheel_loader.load('pypiexample2-0.1.0-py3-none-any.whl')

def your_handler(arg1, arg2):
wheel_loader.load('pypiexample1-0.1.0-py3-none-any.whl')
wheel_loader.load('pypiexample2-0.1.0-py3-none-any.whl')
# ... rest of the code
return {}
from pypiexample1.some_module import my_function1
from pypiexample2.some_other_module import my_function2

return my_function2(my_function1(arg1, arg2))
$$
```

Expand Down

0 comments on commit caf3e99

Please sign in to comment.