Python and random DNA strings, oh my!
Using BeautifulSoup4 to pull Hacker News.
If you use SolarWinds, this script is for you.
Fun times working with the Slack API
This is just a simple pattern I use when I need a quick and dirty script.
Using your Python super powers to work with Microsoft's Active Directory.
Here are some examples of using the Asyncio module in Python 3.8.0
Using a module called Arrow to export time in a dictionary. I love the simplicity of Arrow and use it whenever I can.
I like this one because of the obnoxious regex.
I liked this one due to the simple regex. It is rather dumb out of context though.
This one Pings a host IP and brings back some DNS using the local ping command. Should work on OSX, Linux, and Windows.
Get stock quotes in your terminal from Alpha Advantage. You will need to sign up for a free API key, then export it as an environment variable.
I have been working on a side project that needed a well developed API. While I have written API's at work in the past, I wanted to get something built up that was a bit more manageable and had proper testing.
Let's face it, we make mistakes. Sometimes more than others, but in general most of us are not perfect. The code we write will also not be perfect, and will probably break at some point.
Every now and then I write a dumb little script that takes some time to complete. The progress bar module adds a little flair to the output of the script.
One of my most used patterns in Python is using the Requests module. I use it pretty much daily pulling or pushing data to various API endpoints in my code.
Pyenv makes using different versions of Python just a bit easier.
Stay up to date! Get all the latest & greatest posts delivered straight to your inbox