Posts

  • AWS Create New User

    As a best practice, it’s best to manage user accounts within AWS that are restricted to only the services they need. This is especially the case for accounts that are not actually human users, but may be for a specific application (known within AWS as “programmatic access”). An example being...

    Posted in

  • Python Config Parser

    Config Parser Config Parser is commonly used with Python applications to configure application settings. ConfigParser is included as a core package in Python. It is common to have multiple files: one for each OS and/or environment. Creating a Config File For starters, we can use ConfigParser to dynamically create a...

    Posted in

  • Autoenv

    Autoenv will automatically execute certain commands whenever you “cd” into a directory containing a “.env” file. This is an excellent command-line tool for enhancing productivity. My most common use for Autoenv is activating virtual environments or setting environment variables. Install with Homebrew: brew install autoenv echo "source $(brew --prefix autoenv)/activate.sh"...

    Posted in

  • Python Virtual Environments

    Virtual Environments allow us to create and switch between different projects, keeping each project’s dependencies isolated. The following example will be based on a version of Python 3 installed from Homebrew on MacOS. To install Homebrew, you can find the installation instructions here. Once it’s installed simply run brew install...

    Posted in

  • Python IP Geolocation

    Last updated: Oct 16, 2023 Source Code In this tutorial, we will be covering 2 different libraries that can be used to find a geolocation for any IP address. Both options have distinct advantages. ip2geotools ip2geotools provides an API for multiple geolocation databases. A free version is also available. This...

    Posted in

  • Beautiful Soup

    In this 4-video series, we will scrape HTML web pages. In the first video, we will cover the basics of using video soup. In the remaining videos, we will pull economic data for over 200 countries using the CIA World Factbook website. Source Code

    Posted in ,

subscribe via RSS