Book Image

Automate it! - Recipes to upskill your business

By : Chetan Giridhar
Book Image

Automate it! - Recipes to upskill your business

By: Chetan Giridhar

Overview of this book

<p>This book gives you a great selection of recipes to automate your business processes with Python, and provides a platform for you to understand how Python is useful to make time consuming and repetitive business tasks more efficient. Python is a mature high level language, has object-oriented programming features, powers various apps, has a huge set of modules, and great community support. Python is extremely easy to use, can help you get complex tasks done efficiently and is an apt choice for our needs.</p> <p>With a classic problem-solution based approach and real-world examples, you will delve into things that automate your business processes. You will begin by learning about the Python modules to work with Web, Worksheets, Presentations and PDFs. You’ll leverage Python recipes to automate processes in HR, Finance and making them efficient and reliable. For instance, company payroll — an integral process in HR will be automated with Python recipes.</p> <p>A few chapters of this book will also help you gain knowledge on working with bots and computer vision. You will learn how to build bots for automating business use cases by integrating artificial intelligence. You’ll also understand how Python is helpful in face detection and building a scanner of your own. You will see how to effectively and easily use Python code to manage SMS and voice notifications, opening a world of possibilities using cloud telephony to solve your business needs. Moving forward, you will learn to work with APIs, Webhooks and Emails to automate Marketing and Customer Support processes. Finally, using the various Python libraries, this book will arm you with knowledge to customize data solutions and generate reports to meet your business needs.</p> <p>This book will help you up-skill and make your business processes efficient with the various Python recipes covered in this book.</p>
Table of Contents (18 chapters)
Automate it!
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Converting images


Let's begin our journey of images with simple examples. But before going on, let's build our virtual environment.

  1. We will build the virtual environment using the virtualenv command and also activate it:

    chetans-MacBookPro:~ Chetan$ cd book/ch10/
    chetans-MacBookPro:ch10 Chetan$ virtualenv ch10
    New python executable in ch10/bin/python2.7
    Also creating executable in ch10/bin/python
    Installing setuptools, pip, wheel...done.
    chetans-MacBookPro:ch10 Chetan$ source ch10/bin/activate
    (ch10)chetans-MacBookPro:ch10 Chetan$
    
  2. Nice! So, we now have an independent environment to work on our recipes for this chapter. For the first set of examples, we will use Python's Pillow module. Let's install this module first before going to the recipe. We will use our favorite python-pip to install the Pillow module:

    (ch10)chetans-MacBookPro:ch10 Chetan$ pip install pillow
    You are using pip version 7.1.0, however version 8.1.2 is
            available.
    You should consider upgrading via the 'pip install...