We understand how hard it can be to maintain your downloads directory. We developed a python script to delete any file within the downloads directory that has been modified more than 7 days ago. After reading this tutorial, you will know how to delete all files within a directory and execute the script on schedule...Continue Reading
The timeit module enables you to measure the execution time of python functions. This proves beneficial when looking to optimize your python code. Especially, when determining the best way to solve a problem. During this tutorial you will learn about the timeit python module and how to use it to time your python functions. What...Continue Reading
Looking for ways to optimize python lists? We will cover a few data structures and algorithms that will help you optimize your code when working with lists. At the end of this post you will have a general understanding of the bisect module, deques, and heaps. All of which can be helpful when using lists....Continue Reading
Are you new to python? No worries, we have put together a list of great resources to help you learn python for free. All of the resources listed in this article are free and have been selected because of the quality of the content and the frequency of which developers at TG4 use them. 1....Continue Reading
Python is a great language to learn for its ease of use and its powerful application in big data. When first learning python, there are 4 powerful concepts that can be hard to understand depending on your prior programming experience. Today, we explain these concepts in detail to help you write cleaner code. 1. A...Continue Reading
Depending on your solution, running a single threaded PyRFC server (like the one we setup in part 1 of this series) may not work for your data needs. In our case, we needed the ability to process multiple request simultaneously. In part three of this series, we will discuss how to scale your PyRFC server...Continue Reading
In our previous post, we walked through how to setup a PyRFC server program. Now we will discuss how to create a Dockerfile to containerize your program. If you aren’t familiar with Docker or Dockerfiles, we suggest reviewing this documentation. After reading this post, you should have a working Dockerfile that can be used to...Continue Reading
PyRFC is a Python package that provides users with the ability to connect to the SAP Netweaver RFC library. In doing so, ABAP modules are able to call Python modules and vice versa. This is advantageous when attempting to setup a lightweight Python server to handle SAP ETL jobs. Today, we will walk you through...Continue Reading
Virtual environments are isolated working copies of python, which allow you to have different projects environments for each of your projects. Which prevents changes in one project affecting others. 1. Install Xcode 2. Open a terminal window 3. Install Command Line Tools of Xcode xcode-select ––install 4. Install Homebrew ruby -e \ “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”...Continue Reading