Python
Python: Parsing API XML Response Data
· ☕ 3 min read · ✍️ Brett Johnson
Recently I have started to look at the Turbonomic API. Due to my current skill level in Python, I quickly hit a roadblock. The response from an API is in in XML format. Parsing the response in XML slowed things down a little. Which is the focus of the post. How to parse the XML response with Python. After some time I put the pieces together can work with this product through the API.

Review: JetBrains PyCharm
· ☕ 3 min read · ✍️ Brett Johnson
PyCharm from JetBrains, is a full featured Python IDE. Which over the last 6 months has been my Python IDE of choice. The official site is: https://www.jetbrains.com/pycharm. I would like to share my experiences, which have mostly been positive. Editions Before jumping into thoughts and experiences, lets preface with the two different editions of PyCharm. Community and Professional. PyCharm Community Edition is the free version. For my usage, it can almost do everything I need.

Python: Getting Started with HTTP Requests
· ☕ 3 min read · ✍️ Brett Johnson
If you’;re looking at Python to interact with API’;s, it’;s likely that you’;ll use the Requests module. Many platforms also offer SDK’;s to help. Such as, Boto3 which is the AWS Python SDK. Requests is very well documented, both official and community documentation. The official site for Requests is http://docs.python-requests.org/en/master/ In this post, we are going to cover the basics of performing a HTTP GET and working with the data.

Python: Parsing values from API Response
Python: Parsing values from API Response
· ☕ 3 min read · ✍️ Brett Johnson
Boto3 was my first real attempt to work with an API interface. At the start, I had difficulty using the API response. This was partly due to only light exposure to Python. Also, an incorrect understanding of what the response was. When people talk about APIs, it’;s hard to go a minute without hearing “JSON format’;. I had seen JSON formatted text before. Combining this, with documentation displaying API call response in JSON formation, lead to a 2+2=5 scenario.

AWS Boto3: Using Boto3 to Describe VPC
AWS Boto3: Using Boto3 to Describe VPC
· ☕ 2 min read · ✍️ Brett Johnson
To describe a VPC is to retrieve the values of it attributes. A task we might perform to validate configuration. This article will demonstrate the following: Find VPC ID using filters Retrieve VPC configuration values Information on Boto3 can be found here. This post assumes that you already have a working Boto3 installation. Including IAM configuration to perform the task. If you have not, click here for the install document.

Checking when external IP has changed with Python
· ☕ 4 min read · ✍️ Brett Johnson
This is an exercise I thought of on the drive home from work. Just a task to help give context to the concepts I have been learning. This exercise came from wanting to VPN into my home network. The home network has a dynamic external IP address, which means I need a way to know if that IP has changed. The script IPcheck.py helps solve that problem. It’;s been created to check the current external IP against a stored value and notify by email if the two do not match.

Creating AWS Instances with Boto3
· ☕ 3 min read · ✍️ Brett Johnson
Yesterday I decided that I would like to create an AWS instance using python. After not very much searching, I came across Boto3 which is the python SDK for AWS and set to work. Being fairly green with both python and using APIs I felt like this was a bit of learning curve, but worth undertaking. The code for this task is located on GitHub For testing, I have been using Python 3 and the latest Boto3 build as of the 8/05/2016.