From * import python

From 35C3 Wiki

Revision as of 01:25, 27 December 2018 by Overflo (talk | contribs) (Import your python code from everywhere and from everything)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Description Import your python code from everywhere and from everything
Type Talk
Kids session No
Keyword(s) coding
Tags python, import hooks
Person organizing
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.