From * import python
From 35C3 Wiki
Description | Import your python code from everywhere and from everything |
---|---|
Website(s) | |
Type | Talk |
Kids session | No |
Keyword(s) | coding |
Tags | python, import hooks |
Person organizing | Overflo |
Language | en - English |
Other sessions...
|
(Click here to refresh this page.)
Starts at | 2018/12/28 12:00 |
---|---|
Ends at | 2018/12/28 12:45 |
Duration | 45 minutes |
Location | Room:Lecture room M1 |
Import hooks are a mechanism that has been present from quite a while in Python, yet wasn't lucky enough to get much attention from the community because... why would you even want to import anything in a non-standard way or from something that's not a .py file?
Have you ever wanted to import python code directly from github or stackoverflow? (no, not in production :) Or maybe generate the code to be imported on the fly, depending on who is asking?
After this talk, you will know how to do the above.
Thank you all for attending and as you have asked, here are the slides and the repository with all the code
Feel free to contact me should you have any further questions!