PyCon AU 2024

Ash Bek

Ash is a cyber security engineer with a background in medical device testing. Chronically incapable of saying no to interesting projects or weird technical problems, they are also allergic to writing scripts more than ~300 lines long. Involved in a number of pride networks, they're passionate about expanding queer representation in cyber security and engineering.

They still haven't figured out what DevSecOps is, and at this point are too afraid to ask.


What is your Twitter/X handle?

thembo_sec

What pronouns do you use?

they/them

What is your Bluesky handle?

thembo-sec.bsky.social


Session

11-22
10:00
30min
A Lazy Person's Guide to Building REST Clients or: How I Learned to Stop Worrying and Love Dunder Overrides
Ash Bek

Sick of writing lots of dedicated methods to perform the same tasks? Want to write less code? This talk may be for you!

REST API's are ubiquitious, and a very useful way to send and recieve data from various services. However, building them can often feel repetitive and boring. So, because I was lazy, and sick of doing it I decided to override specific dunder methods to write less boiler plate code, and keep myself interested.

Was it easier? Probably not. Did it require less work than a normal implementation? Also probably not. Did it make my code more readable and portable? Definitely not. But it was fun, and I learnt how overriding Python's magic methods - often called dunders - could be useful. Let me share the lessons I learnt with you and inspire your own ideas.

DevOops
Eureka 3