Automating The Boring Stuff With Python

by HSG on Aug 12, 2019 in
 
 
Teaching You Tools to Become Empowered
To build a successful business and career, you must always keep up with changes in the IT Marketplace. AWS, Office 365, LinkedIn, Sales Force, SEO, Social Media are just a few examples of where knowledge is a huge factor for success.
Training with HSG addresses your knowledge gaps and provides you with the requisite tools to outpace the competition.
Python is a powerful tool that can be used for many automation tasks in the workplace. It’s notorious for being one of the most simple and versatile options available in the world of programming languages. For this reason, many people choose to automate an enormous amount of their workflow with Python. We’ve compiled a few ideas for automating the boring stuff using Python. Let’s take a look.
 
Managing Emails
 
Most businesses rely on emails being sent out regularly in order to ensure everything runs smoothly. Doing this by hand can be boring and time-consuming. To alleviate this, there are packages written with and for Python that enable you to automate certain aspects of this process. Adding and removing individuals from mailing lists can be automated as well, especially if your business has a policy to automatically add and remove people from certain mailing lists when certain conditions are met. For example, after a customer of yours doesn’t interact with your company after an extended period of time, it may be prudent to remove them from your mailing list, or you can send them a premade email reminding them of your services. This is just one way that you can save your company time and money using automation with Python.
 
Repetitive File System Operations
 
Even for personal tasks, Python excels at performing repetitive file system operations. For example, it can convert files, rename, move, delete, and sort files as much as you need it to. This can be useful in many ways. If you have a folder of mp3 files that you need to compress, this can be sped up using Python. Additionally, you can create a set of criteria that need to be met in order for a given file to be considered useless, and then delete it. As a side note, be extremely careful when automating any sort of file deletion or altering, because a bug in your program can cause severe damage to your data and even to your computer. Still, these tools are extremely powerful and can be life-saving when used properly. 
 
Start-up Tasks
 
Whether you’re running a server or just using your own personal computer, there are always tasks that need to be done when your computer starts up, or you’re beginning a certain process. For example, you can automate the task of backing up your email inbox. This can ensure your files are being kept safe, and it can be triggered whenever your start up your computer. Additionally, if you need to collect or create any sort of logging data in order to document daily operations, you can use Python to alleviate some of these time-consuming processes. 
 
Web Scraping
 
And finally, we have Web Scraping. This process may be slightly more advanced for a beginner Python user, but it doesn’t take a terribly long time to learn, and it opens up a whole new world of opportunity in terms of data collection and management. Web scraping is extremely important because it not only allows you to automatically search for certain pieces of content on the internet, but it can also alert you to changes and updates to existing websites. If your business relies on certain trends on social media, you can scrape sites while searching for the presence of certain keywords, and if you’re a stock trader or bitcoin guru, you can automate some of your price-checking and set custom alerts for price changes. The field of web scraping is enormous, and there is a practically infinite amount of content written on this particular subject. If you’re interested in learning more, there are vast amounts of free resources on the internet that can help you get started. Web scraping is certainly one of the most important skills to have in almost any line of work.
 
Get Creative!
 
At this point, we’d like to advise you to get more familiar with the libraries and APIs that are available to you. Each individual workflow is different and requires familiarity with different technologies. Because of this, you will know better than anybody else which items are worth automating and which aren’t. Some people try to automate everything, and some people prefer to do certain tasks manually, but sometimes spending a few hours automating a job that takes one minute will end up being a time-saver after only a few months.
 
We’ve gone over quite a few options in this article, but no single human alive is familiar with absolutely everything Python can do. Hopefully, you’re now more familiar with the options available to you, and you should now be better equipped to search for further information that is more relevant to your specific use case. Have fun digging into the many nuances and functionalities that the Python language has to offer!

other blog entries

Course Directory [training on all levels]

Upcoming Classes
Gain insight and ideas from students with different perspectives and experiences.

Interesting Reads Take a class with us and receive a book of your choosing for 50% off MSRP.

did you know? HSG is one of the foremost training companies in the United States

Information Technology Training that enables companies to build better applications and expertly manage the software development process.

Our courses focus on two areas: the most current and critical object-oriented and component based tools, technologies and languages; and the fundamentals of effective development methodology. Our programs are designed to deliver technology essentials while improving development staff productivity.

Personalized courses for unique business and technology needs

An experienced trainer and faculty member will identify the client's individual training requirements, then adapt and tailor the course appropriately. Our custom training solutions reduce time, risk and cost while keeping development teams motivated. The Hartmann Software Group's faculty consists of veteran software engineers, some of whom currently teach at several Colorado Universities. Our faculty's wealth of knowledge combined with their continued real world consulting experience enables us to produce more effective training programs to ensure our clients receive the highest quality and most relevant instruction available. Instruction is available at client locations or at various training facilities located in the metropolitan Denver area.

Upcoming Classes

consulting services we do what we know ... write software

Design and Development
Application lifecycle management
We generate use cases, UML documentation, architect the system, create an object model, iteratively develop the system, unit and system test and modularize where necessary. These types of engagements are typically longterm and, almost always, incorporate a variety of software technologies.
If you are in need of expertise but only require the assistance of one or two engineers, the Hartmann Software Group can be of help. Instead of procuring talent by way of a placement agency who is likely to contact us, come to the Hartmann Software Group directly. You may realize some savings.
Mentor
The best way to learn is by doing.

The coaching program integrates our course instruction with hands on software development practices. By employing XP (Extreme Programming) techniques, we teach students as follows:

Configure and integrate the needed development tools

MOntitor each students progress and offer feedback, perspective and alternatives when needed.

Establish an Action plan to yield a set of deliverables in order to guarantee productive learning.

Establish an Commit to a deliverable time line.

Hold each student accountable to a standard that is comparable to that of an engineer/project manager with at least one year's experience in the field.

These coaching cycles typically last 2-4 weeks in duration.

Provide Expertise
Services for your business growth.
With the introduction of smart devices, e-marketplaces, electronic forms, SEO practices, big data, virtual office environments, media streaming and so much more, there is hardly a business whose livelihood is not, in some way, dependent upon the inclusion of such software functionality into its online presence, work environment and product offerings. Such inclusion often presents a complex array of challenges that are far beyond the expertise of the business as it demands an understanding of technological options, modular decomposition, backend systems integration and web services. Most importantly, the business requires IT talent and expertise; this is where the Hartmann Software Group shines. To that end, here is an overview of some of the services that we offer:

Business Rule isolation and integration for large scale systems using Blaze Advisor

Develop Java, .NET, Perl, Python, TCL and C++ related technologies for Web, Telephony, Transactional i.e. financial and a variety of other considerations.

Windows and Unix/Linux System Administration.

Application Server Administration, in particular, Weblogic, Oracle and JBoss.

Desperate application communication by way of Web Services (SOAP & Restful), RMI, EJBs, Sockets, HTTP, FTP and a number of other protocols.

Graphics Rich application development work i.e. fat clients and/or Web Clients to include graphic design

Performance improvement through code rewrites, code interpreter enhancements, inline and native code compilations and system alterations.

Mentoring of IT and Business Teams for quick and guaranteed expertise transfer.

Architect both small and large software development systems to include: Data Dictionaries, UML Diagrams, Software & Systems Selections and more