Currently writing about: AWS, React.js, Node.js, TypeScript, friction logs.

All results for tag: Python

First Steps With Jupyter Notebooks

Setting up a Jupyter Notebook for the first time to aid with the 100 Days of Python challenge

3 min read


Unsplash API with Python

Installing and using an unofficial Python Unsplash API by salvoventura

3 min read


Composing Images and Text with Python

Use the Pillow image library to add text and icons layers to an image programmatically.

4 min read


Frontmatter Parsing With Python

Learn how to take a markdown file and parse the frontmatter metadata for usage in your scripts.

2 min read


Reading a file directory with Python

Use the glob library to create a list of all the files in a directory.

3 min read


Building CLIs With python-fire

Work through an example of building a simple CLI script with the python-fire library.

3 min read


Python Unit Testing With PyTest

Learn the basics of installing and using PyTest with a basic math module example.

4 min read


Tip: Making Directories Recursively With Python

Using the OS module recursively make folders on your operating system.

1 min read


Tip: Interactive Python Notebooks With Binder

Display your public GitHub repositories in an interactive notebook.

2 min read


CLI Prompts In Python

Use PyInquirer to create more interactive and user-friendly command line prompts.

5 min read


Pretty Error Output In Python

Make debugging Python errors more enjoyable.

2 min read


Annotating Video Clips With MoviePy

Introduce yourself to MoviePy through a simple example to add text to video.

4 min read


Beautiful CLIs With The Rich Python Library

See how the Rich library for Python can make it easy to add color and style to terminal output.

4 min read


Working With Regex Expressions In Python

This post will look at how the regex module in python can be used to work with regular expressions.

4 min read


Exceptions In Python

An overview look at custom exceptions in Python

4 min read


Datetime In Python

Learn how to work with the datetime library in Python.

4 min read


Mocking Python datetime In Tests With FreezeGun

Learn how to set up reliable PyTest unit tests for the Python datetime library with FreezeGun.

5 min read


Time Functionality In Python

Explore how to work with the time module from the Python Standard Library in detail.

3 min read


How PyDoc Helps Your Python Development

Explore PyDoc and understand how it can improve your documentation and how to search it.

7 min read


PyTest With GitHub Actions

Build off previous work on PyTest by adding a GitHub action to run PyTest in CI.

4 min read


Your First Pip Package In Python

Learn how to deploy your first package to Pip in this straight-forward tutorial.

8 min read


Semantic Versioning In Python With Git Hooks

Use Conventional Commits, pre-commit and Commitizen to automate your versioning based on commit messages.

6 min read


Automating Pip Package Deployment With Github Actions

Learn how to use GitHub Actions to speed up your Pip package deployments to PyPi.

4 min read


Generating Fake CSV Data With Python

Learn how to generate random data and export it to CSV to use in your projects.

8 min read


Oil Paint Effect With OpenCV Python

Apply an oil paint effect to images in Python with OpenCV.

2 min read


Python Lambda Functions Deployed With The Typescript AWS CDK

Deploy a simple Python lambda function with the TypeScript AWS CDK to LocalStack.

7 min read


First Look At Supervised Learning With Classification

The 34 Days of Python series is moving into its second phase with Machine Learning. The journey will start with a first look at project setup and classification.

10 min read


Measuring Classifier Model Performance

See how we can visual test the performance capability of our K-Nearest Neighbors classifier using Scikit Learn.

7 min read


Regression With Scikit Learn (Part 1)

Continuing with our look into supervised learning, today we explore the basics linear regression by applying it to another Scikit Learn toy dataset.

4 min read


Regression With Scikit Learn (Part 2)

In second blog post on linear regression, we take what we learned in part one and look deeper into the basics of linear regression and applying a train-test-split to our data.

5 min read


Regression With Scikit Learn (Part 3)

In part three, we look at using k-fold cross-validation to prevent dependency on a particular train/test split.

4 min read


Regression With Scikit Learn (Part 4)

In our final coverage of regression using SciKit Learn, we look at how we can use regression with regularization.

5 min read


Python Decorators In Action

An overview on Python higher-order functions, decorators and some practical examples for when decorators can be used.

5 min read


Dennis O'Keeffe

2020-present Dennis O'Keeffe.

All Rights Reserved.