Writing Python Codemods for Fun and Profit | Dan D'Avella | Conf42 Python 2024
Read the abstract ➤ https://www.conf42.com/Python_2024_Dan_DAvella_writing_python_codemods_fun_profit Other sessions at this event ➤ https://www.conf42.com/python2024 Join Discord ➤ https://discord.gg/DnyHgrC7jC Support our mission ➤ https://www.conf42.com/support Chapters 0:00 intro 0:20 preamble 1:24 https://github.com/pixee/codemodder-python 1:55 there is a problem 3:42 security tools 6:03 we need to fix and harden codes 7:57 code + modification 10:19 codemodder philosophy 12:01 leverage open-source tools 12:52 process results from other tools 13:43 invoke open-source tools 14:54 codemods tell a story 15:53 how can i use it? 16:44 what does it do? 18:04 what can we fix? 18:32 replace unsafe pyyaml loader 19:29 use defusedxml for parsing xml 21:06 automatically close resources 22:05 parametrize sql queries 22:57 use generator expressions 24:09 codemodder architecture 26:27 codemod metadata 28:07 dependency management 30:11 let's write a codemod 30:57 codemod plugin template 38:41 make the easy things easy 39:59 make the hard things possible 41:47 looking ahead 44:16 we want your feedback! 44:50 pixeebot app 46:06 about pixee