Learn Autonomous Programming With Python Utilize Pythons Capabilities In Artificial Intelligence Machine Learning Deep Learning And Robotic Process Automation English Edition P Divadkar instant download
Learn Autonomous Programming With Python Utilize Pythons Capabilities In Artificial Intelligence Machine Learning Deep Learning And Robotic Process Automation English Edition P Divadkar instant download
https://ebookbell.com/product/learn-robotics-programming-build-and-
control-aienabled-autonomous-robots-using-the-raspberry-pi-and-
python-2nd-danny-staple-56045028
https://ebookbell.com/product/learn-robotics-programming-build-and-
control-autonomous-robots-using-raspberry-pi-3-and-python-
staple-20640172
https://ebookbell.com/product/operational-excellence-in-your-office-a-
guide-to-achieving-autonomous-value-stream-flow-with-lean-techniques-
duggan-5674138
Learn Javafx Game And App Development With Fxgl 17 1st Edition Almas
Baimagambetov
https://ebookbell.com/product/learn-javafx-game-and-app-development-
with-fxgl-17-1st-edition-almas-baimagambetov-44879768
Learn C The Hard Way Practical Exercises On The Computational Subjects
You Keep Avoiding Like C Zed A Shaw
https://ebookbell.com/product/learn-c-the-hard-way-practical-
exercises-on-the-computational-subjects-you-keep-avoiding-like-c-zed-
a-shaw-44988700
https://ebookbell.com/product/learn-to-read-ancent-sumerian-an-
introduction-for-complete-begiknners-joshua-bowen-45333320
https://ebookbell.com/product/learn-c-programming-a-beginners-guide-
to-learning-the-most-powerful-and-generalpurpose-programming-language-
with-ease-2nd-edition-2nd-jeff-szuhay-45462930
https://ebookbell.com/product/learn-enough-ruby-to-be-dangerous-write-
programs-publish-gems-and-develop-sinatra-web-apps-with-ruby-michael-
hartl-46132216
Learn Guitar The Easy Way The Easy Way To Play Guitar Using Simplified
Chords Paolo Ocampo
https://ebookbell.com/product/learn-guitar-the-easy-way-the-easy-way-
to-play-guitar-using-simplified-chords-paolo-ocampo-46157382
Learn Autonomous
Programming with
Python
Utilize Python’s capabilities in
artificial intelligence, machine
learning, deep learning and
robotic process automation
Varun P Divadkar
www.bpbonline.com
First Edition 2024
ISBN: 978-93-55517-630
https://rebrand.ly/nh3wzsj
The code bundle for the book is also hosted on GitHub at
https://github.com/bpbpublications/Learn-Autonomous-
Programming-with-Python.
In case there’s an update to the code, it will be updated on
the existing GitHub repository.
We have code bundles from our rich catalogue of books and
videos available at https://github.com/bpbpublications.
Check them out!
Errata
We take immense pride in our work at BPB Publications and
follow best practices to ensure the accuracy of our content
to provide with an indulging reading experience to our
subscribers. Our readers are our mirrors, and we use their
inputs to reflect and improve upon human errors, if any, that
may have occurred during the publishing processes
involved. To let us maintain the quality and help us reach
out to any readers who might be having difficulties due to
any unforeseen errors, please write to us at :
[email protected]
Your support, suggestions and feedbacks are highly
appreciated by the BPB Publications’ Family.
Did you know that BPB offers eBook versions of
every book published, with PDF and ePub files
available? You can upgrade to the eBook version at
www.bpbonline.com and as a print book customer,
you are entitled to a discount on the eBook copy.
Get in touch with us at :
[email protected] for more details.
At www.bpbonline.com, you can also read a
collection of free technical articles, sign up for a
range of free newsletters, and receive exclusive
discounts and offers on BPB books and eBooks.
Piracy
If you come across any illegal copies of our works in
any form on the internet, we would be grateful if you
would provide us with the location address or website
name. Please contact us at
[email protected] with a link to the
material.
Reviews
Please leave a review. Once you have read and used
this book, why not leave a review on the site that you
purchased it from? Potential readers can then see and
use your unbiased opinion to make purchase
decisions. We at BPB can understand what you think
about our products, and our authors can see your
feedback on their book. Thank you!
For more information about BPB, please visit
www.bpbonline.com.
2. RPA Foundations
Introduction
Structure
Objectives
History of Robotic Process Automation
What is RPA
Components of RPA
Various RPA tools in the market
Comparison between various RPA tools
RPA Python package
Practical use case of RPA with Python
Conclusion
12. Hyperautomation
Introduction
Structure
Objectives
Defining hyperautomation: What it is and why it matters
The hyperautomation cycle: Key steps and processes
Exploring typical use cases for hyperautomation
Enhancing document understanding with optical
character recognition
Implementing conversational agents: The role of
chatbots
Advancing efficiency with robotic process automation
Navigating the challenges of hyperautomation
Practical use case in Python
Conclusion
Index
Chapter 1
Why Python for
Automation?
Introduction
This chapter introduces the reader to the significance of
Python as an open-source language and further delves
deeper to explain why it is the most powerful and
formidable tool for autonomous programming. The chapter
emphasizes Python’s inherent flexibility, adaptability, and
user-friendly nature, attributed to its high-level language
and straightforward syntax. It also throws insights into
Python’s flexibility and adaptability considerations and ease
of use as a high-level language with a simple syntax.
Further into the chapter, Python’s rich assortment of
libraries like ‘Pandas’, ‘NumPy’, ‘Matplotlib’ would be
discussed which are pivotal for machine learning. In
subsequent chapters, we will delve deeper into the practical
implementations of these libraries.
Structure
The chapter covers the following topics:
• Python as an open-source language
• Python’s repository of extensive libraries
• Python as a high-level language
• Portability aspect of Python
• Salient advantages of Python
Objectives
At the end of this chapter, you will clearly understand why
Python has been chosen as the language for autonomous
programming despite the availability of numerous other
alternatives from the myriad pool of programming
languages.
Conclusion
Now that we know why Python is the chosen favorite, what
else are we waiting for! In the next chapter, we will
introduce you to the exciting realm of Robotic Process
Automation (RPA) technology and witness the power of
Python in executing RPA processes independently. Without
further delay, let kick start our journey by moving to the
next chapter on RPA foundations!
Introduction
This chapter intends to build a foundation of Robotic
Process Automation (RPA), which is one of the hallmarks
of the current industry. Today, RPA technology can be
conveniently leveraged by an HR department to
automatically source candidates and screen their resumes,
thus reducing hours of manual effort. This chapter takes the
reader into the historical background and progress of robotic
technology and how it has led the industry to the current
state of RPA. Components of RPA have been covered in a
lucid manner in order to get the reader familiar with the
concepts. Various industry leaders in the RPA market like
Automation Anywhere, UiPath and Blue Prism have been
described in this chapter along with their comparative
advantages and disadvantages over each other. The end of
this chapter tries to highlight the role that Python plays in
enhancing the potential of RPA and discusses a practical use
case of how Python can be conveniently leveraged to
achieve the same RPA which these tools do.
Structure
The chapter covers the following topics:
• History of Robotic Process Automation
• What is RPA
∘ Components of RPA
∘ Various RPA tools in the market
∘ Comparison between various RPA tools
• RPA Python package
• Practical use case of RPA with Python
Objectives
At the end of this chapter, you would have a practical
understanding of Robotic Process Automation (RPA), its
various offerings in the market and how Python can be
efficiently utilized to achieve RPA.
Components of RPA
We have now understood that RPA is software enabling the
creation of bots for process automation. Like every other
software, RPA has certain components which are generic to
all the RPA products that we have in the market. Let us look
at each of these components:
• Recorder: This is the most important but basic and u
ser-friendly component of an RPA tool. This is similar t
o the Record Macro feature that Microsoft Excel prov
ides. In this feature, the user records the manual proc
ess while it is being performed. What the recorder doe
s is that it captures salient elements that are being na
vigated by the user on the screen like buttons, web pa
ge URLs and dropdowns and treats them as objects. It
also captures the properties of these objects. After the
recording is complete, the user has the flexibility to ed
it these properties and make them generic by passing
them into variables, thus transforming a hardcoded re
cording into a dynamic bot! The figure below is a scre
enshot of the recorder feature in UiPath:
Automatio
Parameter n Blue Prism UiPath
Anywhere
Macro Yes No Yes
recording
Communit Yes No Yes
y edition
Drag and Not for all Yes Yes
drop tasks.
(Requires
scripting)
Automatio
Parameter n Blue Prism UiPath
Anywhere
Architectur Client Client Web based
e server server orchestrat
or
Cost High High Pricing is
acquisition deploymen entry level
cost t cost
Table 2.1: Comparison of RPA tools in market
Figure 2.3: The word ‘news’ being typed into Google Search page
This line uses the type() method which enables the code to
type characters into the webpage element. The webpage
element is specified in the first argument which is
'//*[@name="q"]'. This is the XPath of the search textbox
in the Google window. The XPath which stands for XML Path
Language is basically an expression which is used to identify
an element in an XML document, in this case the search
textbox. We shall see how to obtain XPaths in the next
section containing the practical use case. The second
argument is news. This argument specifies the text that
needs to be entered. In this case, the text being entered is
‘news’.
The next line is:
r.click('//*[@name="btnK"]')
This line instructs the code to click the button titled Google
Search which shall produce the search results. The XPath
identifier for this button is //*[@name="btnK"].
After this, the next line is:
r.wait(5)
This line basically adds a wait time of 5 seconds to the
program until the web page is opened. This is necessary
because if the program prematurely executes the next line
without waiting for the process from the initial line to be
completed, then the program will throw an error.
The next line is:
r.snap('page', 'Captured_Image.png')
This line uses the snap() method to take a screenshot of
the page that is currently open in the website window. This
snapshot is then saved as an image file named
Captured_Image.png which is provided as the second
argument of the method. This image file would be saved in
the home directory of the program which is basically the
same folder where the Python file is saved. This screenshot
would basically display the search result obtained after
typing the word news in Google Search box.
The last line r.close() would close the rpa object and the
process thereafter.
In this way, we saw how the Python rpa package offers a
functionality to automate regular manual processes which
would have otherwise also been done using RPA tools like
UiPath, Automation Anywhere and Blue Prism. In this case
we took a simple example of opening a web page, producing
a search result, taking a screenshot, and saving the
screenshot as an image. This Python rpa package is an
excellent tool for those who are familiar with programming
and would want to unleash the potential of RPA through the
medium of writing code.
Let us now take a little complex but real-world use case of
visiting a training registration web page and filling
information of every participant from an Excel file. In this
use case we would build on the experience that we acquired
in the exercise above and leverage the use of Python loops
and Pandas dataframes to execute what we want.
We find that the name property has value fname which can
be used as an identifier in the type() method. The code
below would execute that for us. We enter the value from
variable first_name into the field First Name:
r.type('//*[@name="fname"]', first_name)
In a similar manner, we could enter the values from
variables last_name and email into fields Last Name and
Email respectively by capturing their identifiers using the
name property. The two lines of code below would execute
that for us.
r.type('//*[@name="lname"]', last_name)
r.type('//*[@name="email"]', email)
Random documents with unrelated
content Scribd suggests to you:
CHAPTER XVI.
Metal Spraying.
Although the spraying of metal does not really come within the
scope of this book, the process is so closely allied to paint spraying
that it is considered advisable to devote a chapter to the subject,
particularly as the perfected process is of very recent date, and bids
fair to be used successfully in many industries. It should be stated at
once that a metallic coating may be applied to practically any
surface, and that almost any metal or alloy may be employed.
Stated briefly, the process consists in melting metal in the form of a
rod or wire, by means of oxygen and coal gas, or other gas,
depending upon the metal used. The molten metal is sprayed at a
high pressure, and a surface may be quickly covered with the metal
of any desired thickness. A remarkable fact concerning the process is
that the metal is cooled to an extent that renders it possible to hold
the hand in the jet so as to receive a coat of metal without
inconvenience, and samples of wood and fabrics may be coated with
metal without injury.
A moment of consideration will render it clear that there is an
immense field for this process; for example, as aluminium can be
sprayed, a lining of that metal might be given to brewers' and
cooking utensils, etc., while tanks, barrels, reservoirs, intended to
contain acids and oils, can also be treated. In the production of
blocks for printing, in decorative work and mural decoration, there is
an immense field, while ships' bottoms, instead of being painted
with composition, can be copper-plated or sprayed with any other
suitable metal, in order to prevent incrustation. No doubt some very
beautiful effects can be produced by means of the process.
It will be convenient now to describe the machine used for the
application of the metals. It consists of a pistol rather bulkier, but not
unlike in form, the usual spraying apparatus, see Fig. 142.
Cabinets 127
Cadby, G. & Sons 164
Cans, Painting by Dipping 7
Carriage Department, Woolwich Arsenal 54
Carriages 146
Carriers for Dipping Piano Cases 42
Casements 7, 37
Casements Dipping 60, 61, 65
Casements, Steel 60
Celluloid Buttons 3
Celluloid Varnish, Recipe for 150
Central Draught Fan 125
Chicago White Lead and Oil Co. 188
China Clay 73
China Fruit Dish Decorated with the Airostyle 217
Cleaning Metal Parts 41
Coach Body Painting 55
Coal Box, Metal Decoration done by Airostyle 241
Coats of Paint, number 21
Collapsible Gates 33
Colour Glazing 202
Colour on Bedsteads 33
Colour Specimens, Spraying 153
Colour Varnishes, Transparent 184
Coloured Enamels 59
Compressed Air, Painting by 78
Compressed Air, Supply of 113
Compressor for Airostyle Plant 165
Concentric Form of Spray 79
Construction of Airostyle 98
Cost of Paint Dipping Plant 2
Cover for Tank 11
Crabs 18
Crane Eureka 103
Crane Record 104
Crittall Manufacturing Co. 60
Cycle Frames 197
Cycle Parts 146
Kerosene Oil 75
Kettle Type of Spray 78
Khaki Paint 57
Kingsbury Manufacturing Co, Ltd. 168
Lacquers for Spraying 80
Lacquers, Paints, etc, for Spraying 177
Lamp Shades, Designs done by Spraying 203
Lime and Whitewash Sprayers 241
Limewashing by Machine with 8ft. Bamboo Pole 245
Limewhite Sprayer, Merryweathers 247
Location of Work Cabinets 127
Lockers 38
Lowering Piano Cases into the Varnish Tank 47
Lucas, John & Co. 188
Lucas, Joseph, Ltd. 160, 169, 173, 175, 181
Wagons, Painting 54
Wagons, Store Room 61
Wells, A. C. & Co. 244
Wheels, Rims of 41
White Dipping for Meta 75
White Paint for Dipping 71
White Paste Primer 75
"White Paints and Painting Materials" 72
White Spirit 76
White Work Bedsteads, etc. 33, 184
Whitewash Sprayers 241
Whitewashing Machines 78
Whiting 73
Wilkinson, Heywood and Clark 11
Willys-Overland Automobile Factory 228
Winch 18
Window Frames, Iron 37
Wood Effects, Imitation 183
Woodwork Preparing before Painting 25
Woodwork, Stopping Holes in 29
Woolwich Arsenal, Carriage Department 54
Woolwich Arsenal Store Room 61
Work Cabinets 127
Yellows 206
Zinc Oxide 73
Zinc Stencils 145
ADVERTISEMENTS.
STANDARD
VARNISH WORKS.
ebookbell.com