Python
- Examining Product Correlation in Customer Purchase Baskets
My self-assigned task was to look at all of the purchasing our customers have done and see whether there are any strong correlations between any purchased items. If we can find some strong correlation
- Using a Python Program to Post to an SFTP Server
We have a client that requested that we deliver a daily file with some data to their SFTP site. They planned to import the data into their systems in order to do some internal reporting. We are a Pyth
- Parsing Variable Numbers of Command Line Arguments in a Python Program
As part of the day job, I end up writing a lot of command utility-type scripts (programs). These are often scripts that are used very occasionally, like once per quarter. By the time a script is going
- Concatenating Lists in Python
We frequently come across situations where we need to add together two Python lists. We do have a couple of syntax options available to us as developers and they do, of course, have their tradeoffs. T
- Creating a Variety of Dummy Order Ids in Python
I have a work task to give our sales reps a tool where they can add dummy customer requests into our system. Since we ingest data from a variety of vendors, we have “order ids” that are in a variety o
- Using Python to Select and Load a Random File
I had a task to create a mechanism to load sample data so that we could do some demonstrations. Our incoming data is in JSON format so I took a bunch of requests and put them into individual text file
- Using Python to Read Windows Event Logs from Multiple Servers
Reading Windows Event Logs In our shop, we have to monitor a whole bunch of Windows servers to try to keep aware of any issues. We have monitoring systems that let us know if computers or services fai
- How to post a file to an AWS S3 from a Windows Python 3 program
Amazon Simple Storage Service (Amazon S3) gives you an easy way to make files available on the internet. They host the files for you and your customers, friends, parents, and siblings can all download
- Starting and Stopping an Amazon AWS Instance from a Windows Python Program
Sometimes you end up with a situation where you want to start (or stop) an Amazon AWS instance from your own program instead of using the AWS interface. It’s those occasions where something weird is g
- How to send a message to Slack from your Python program
We use and love Slack for team messaging. We’re all in and out Slack throughout the day (and night). We depend on it for communication of our geographically distributed team. We also have lots of auto
- How to list Active Directory groups with Python
Getting a listing of the user groups from Active Directory (AD) is very similar to getting the list of users. We are making use of the ldap3 module. Giovanni Cannata provided us a pretty sweet tool. S
- Listing Active Directory Users Using Python
Sometimes it’s nice to be able to take a quick look at your Active Directory (AD) users and see what’s there and who is actually active. Here’s a quick little Python program to list out your current u
- Finding uptime of computers in Python
