Book Image

Daniel Arbuckle's Mastering Python

By : Daniel Arbuckle
Book Image

Daniel Arbuckle's Mastering Python

By: Daniel Arbuckle

Overview of this book

Daniel Arbuckle's Mastering Python covers the basics of operating in a Python development environment, before moving on to more advanced topics. Daniel presents you with real-world solutions to Python 3.6 and advanced-level concepts, such as reactive programming, microservices, ctypes, and Cython tools. You don't need to be familiar with the Python language to use this book, as Daniel starts with a Python primer. Throughout, Daniel highlights the major aspects of managing your Python development environment, shows you how to handle parallel computation, and helps you to master asynchronous I/O with Python 3.6 to improve performance. Finally, Daniel will teach you the secrets of metaprogramming and unit testing in Python, helping you acquire the perfect skillset to be a Python expert. Daniel will get you up to speed on everything from basic programming practices to high-end tools and techniques, things that will help set you apart as a successful Python programmer.
Table of Contents (13 chapters)

Setting up a shell script or batch file to launch the program

In this section, we're going to wrap up this chapter's example program by making it simple to launch. We can run our program using python -m as long as it's installed in the system PYTHONPATH or we've activated the virtual environment containing it, as shown here:

Creating launches for our program

Once the program is solid, we really just want to be able to type its name or double-click on it and have it run. One convenient way to do that is to use a shell script or a batch file:

  • On Unix-style operating systems including macOS, a shell script is a text file that starts with #bang/bin/sh and has been marked as executable
  • On Windows, a batch...