Managing AWS EC2 Instances with Python

Today I will show you how I personally manage AWS EC2 Instances with Python. This post will show you a quick way to view what servers are running on your Amazon AWS Console. This tool will provide the ability to pause or continue your existing servers. I’ll only go into the basics of this script, however, this will give you the basic framework to continue building on top of.

For this tutorial you will need:

  • AWS Account
  • IAM Security Group
  • Boto3 for Python

Read More

The Modern Stack – RethinkDB, Flask, AWS

When I first started really programming in 2011, I thought it only took a single language to make your ideas become a reality. Personally, python was my language of choice. Every day, I would be excited to sit down at the computer, open up a new python instance, and just try something new.

Read More

5 Ways to Become a Better Python Programmer

There are many programming languages out there today. With so many to choose from, it can sometimes be hard to sit down, pick one, and get really great at it. If you want a language that is always interesting, extremely flexible, and finds itself in the most unusual places, then python should be the language for you. That being said, here are 6 tips that will vastly improve your python programming abilities and make you an incredible python programmer.

Read More

New Features in Python 3.6 (3.6.0b4)

In case you didn’t know, Python 3.6 Beta has been released. To get your hands on this amazing new creation from the Python Software Foundation, just follow this link to the download page. Here are some of the new features and some fun I’ve had with them.

PEP 506 – Adding A Secrets Module To The Standard Library.

import secrets

print("I need to generate some data..")
print("First, let's pick a random number 1-20")
newrand = secrets.randbelow(20)
print(f'Check out this new formatting! Your number is {newrand}')
print("Now let's generate some random codes")
print("Bytes: " + str(secrets.token_bytes()))
print("Hex: " + str(secrets.token_hex()))
print("URL Safe: " + str(secrets.token_urlsafe()))

Read More