A Few Python Tips*
Nothing fancy here, just several tips that help you work effectively with Python. This talk is licensed CC BY; please feel free to reuse it at your company or conference.
I’ll be demonstrating a bunch of tools or Python features that I found helpful when programming in Python. Follow along with the session notes.
pipfor package management
- virtualenv and virtualenvwrapper to keep hygiene between different projects
- experimenting with different REPLs, especially bpython and IPython, while exploring what you can do with new modules, objects and methods
- Things to try while debugging
python -ito run a script and then spit you out into a REPL afterwards whilst retaining state
pdb, the Python debugger
sys.path(so often the culprit!)
- PEP 8 and the
pep8script to find style issues
pep8ifyto fix just the style issues that bother you
- PEP 8 and the
- My favorite modules, inside and outside of the standard library
randomincluding my favorite weird features
requests(“HTTP For Humans”)
coverage.pyto systematically reason about your code
codecsto melt away UTF-8 and Unicode problems
This talk is licensed CC BY; please feel free to reuse it at your company or conference.
I've presented at the past four Open Source Bridge conferences, keynoted code4lib 2014, and given several talks at Wikimedia hackathons and at Hacker School. I've never given this talk before but I've blogged about some of these tools and taught people how to use some of the tools mentioned.
She was most recently Senior Technical Writer at the Wikimedia Foundation, where she worked in the Engineering Community Team (formerly TLDR). She has worked at Collabora, GNOME, QuestionCopyright.org, Fog Creek Software, Behavior, and Salon.com, and contributed to the MediaWiki, AltLaw, Empathy, Miro, and Zeitgeist open source projects. She was a blogger at GeekFeminism and a member of the board of directors of the Ada Initiative, and was editor and release organizer for GNOME Journal. Harihareswara has presented at Foo Camp, PyCon 2014, Open Source Bridge 2013, Open Source Bridge 2012, Open Source Bridge 2011, Open Source Bridge 2010, several Wikimanias, and MindCamp Seattle 2008, and keynoted PICC. She has led or organized several Wikimedia hackathons, taught several courses at UC Berkeley, and performed at Bay Area stand-up comedy venues. She holds an MS in Technology Management from Columbia University and participated in the Recurse Center in 2013 and 2014, and lives in New York City.
If you want to keep up with her, you can check out Cogito, Ergo Sumana for blogging or @brainwane for microblogging.
- Title: The Outreach Program for Women: what works & what's next
- Track: Cooking
- Room: B202/203
- Time: 1:30 – 2:15pm
We’ve mentored and interned in the Outreach Program for Women, and we know it works — it improves the gender balance inside open source communities. We’ll discuss why it works, how it builds off of Google Summer of Code, and discuss replicating it, expanding it, and looking at the next step in the recruiting and inclusion pipeline.
- Speakers: Sumana Harihareswara, Liz Henry