Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


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 >>

Thumbnail of Jon Kulp
Hosted by Jon Kulp on 2015-07-30 is flagged as Explicit and is released under a CC-BY-SA license.
python, scripting, programming. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr1824

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:32:00

general.

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) https://pypi.python.org/pypi/pyperclip/1.5.11
pyttsxA Python package supporting common text-to-speech engines on Mac OS X, Windows, and Linux. https://pypi.python.org/pypi/pyttsx
bs4HTML parsing library. Beautiful Soup Documentation
htmlminA configurable HTML Minifier with safety features. https://pypi.python.org/pypi/htmlmin/
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. https://pypi.python.org/pypi/titlecase
swnamerA name generator that uses Star Wars characters, species and planets to create un fisique names. https://pypi.python.org/pypi/swnamer/0.1.0

Demo Screencasts


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?