Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.

hpr1824 :: I'm Learning Some Python

I discuss how I use Python and some of the cool modules and libraries that I've found

<< First, < Previous, Latest >>

Host Image
Hosted by Jon Kulp on 2015-07-30 is flagged as Explicit and is released under a CC-BY-SA license.
Tags: python, scripting, programming.

I'm Learning Some Python

Lately I'm finally getting around to learning some Python. I wouldn't go as far as to say I'm learning it properly—that's not really my way—I'm kind of poking around in the dark learning things on an "as-needed" basis, but I'm finding that it's incredibly powerful and making me much more efficient in my daily life. In this podcast I discuss some of my favorite ways of using it and some of the cool modules and libraries that I've found that make things surprisingly easy in Python that used to be difficult for me in bash.

What I Use It For

  1. Website build scripts, both for the School of Music and for my personal website. Converted from bash, tested and working fine on Windows and Mac.
  2. Text manipulation scripts, used in conjuction with blather. These do things like change text case, remove spaces, and so forth.
  3. Text entry. Voice commands insert various kinds of text templates or canned email responses for my classes. Also used in conjunction with blather.
  4. Adding or stripping HTML tags to/from selected text.
  5. Getting current weather conditions and forecasts, having results spoken back to me using system text-to-speech engine.
  6. Fun blather commands where I interact with my computer and have it talk back to me.

Favorite Python Modules/Libraries

pyperclipA cross-platform clipboard module for Python. (only handles plain text for now)
pyttsxA Python package supporting common text-to-speech engines on Mac OS X, Windows, and Linux.
bs4HTML parsing library. Beautiful Soup Documentation
htmlminA configurable HTML Minifier with safety features.
smartypantssmartypants is a Python fork of SmartyPants, which easily translates "plain" ASCII punctuation characters into “smart” typographic punctuation HTML entities.
titlecaseChanges all words to Title Caps, and attempts to be clever about SMALL words like a/an/the in the input.
swnamerA name generator that uses Star Wars characters, species and planets to create un fisique names.

Demo Screencasts


Subscribe to the comments RSS feed.

<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters

Note to Spammers

Provide feedback
Your Name/Handle:
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?