Book Image

Python Programming Blueprints

By : Daniel Furtado, Marcus Pennington
Book Image

Python Programming Blueprints

By: Daniel Furtado, Marcus Pennington

Overview of this book

Python is a very powerful, high-level, object-oriented programming language. It's known for its simplicity and huge community support. Python Programming Blueprints will help you build useful, real-world applications using Python. In this book, we will cover some of the most common tasks that Python developers face on a daily basis, including performance optimization and making web applications more secure. We will familiarize ourselves with the associated software stack and master asynchronous features in Python. We will build a weather application using command-line parsing. We will then move on to create a Spotify remote control where we'll use OAuth and the Spotify Web API. The next project will cover reactive extensions by teaching you how to cast votes on Twitter the Python way. We will also focus on web development by using the famous Django framework to create an online game store. We will then create a web-based messenger using the new Nameko microservice framework. We will cover topics like authenticating users and, storing messages in Redis. By the end of the book, you will have gained hands-on experience in coding with Python.
Table of Contents (17 chapters)
Title Page
Copyright and Credits
Dedication
Contributors
Packt Upsell
Preface
Index

Setting up the Amazon Web Services CLI


We also need to install the AWS command-line interface, which will save us a lot of time when deploying serverless functions and also when creating S3 buckets.

The installation is quite simple, as it can be installed via pip, and the AWS CLI has support for Python 2 and Python 3 and runs on different operating systems, such as Linux, macOS, and Windows.

Open a terminal and type the command:

pip install awscli --upgrade --user

The upgrade option will tell pip to update all the requirements that are already installed, and the --user option means that pip will install the AWS CLI in our local directory, so it won't touch any library that is installed globally on our system. On Linux systems, when installing a Python package using the --user option, the package will be installed in the directory .local/bin, so make sure that you have that in your path.

Just to verify that the installation worked properly, type the following command:

aws --version

You should see...