From * import python

From 35C3 Wiki

Revision as of 15:15, 28 December 2018 by Overflo (talk | contribs)
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
en - English
Other sessions... ... further results

(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.