Heading image

This post is #4 of a multi-part series on the AWS CDK with TypeScript written during Melbourne lockdown #6.

This post will use the AWS TypeScript CDK to deploy table to DynamoDB on LocalStack with single-table schema design.

The code will build off the work done in the first two articles of the “Working with the TypeScript AWS CDK” series.

The final code can be found here.

Prerequisites


Heading image

This is Day 20 of the #100DaysOfPython challenge.

This post will build off previous work done in the Python Unit Testing With PyTest post to add a GitHub Action for running test runner jobs on a push event to the repo.

The final project code can be found on my GitHub repo.

Prerequisites

Getting started

Let’s clone the original PyTest repo in hello-pytest-github-actions.

At this stage, we can test that our repo is working correctly with PyTest locally:

At…


Heading image

This post is #3 of a multi-part series on the AWS CDK with TypeScript written during Melbourne lockdown #6.

This post will use the AWS TypeScript CDK to deploy an S3 bucket to hold media assets, a CloudFront distribution for a content delivery network for those assets and setup a Aaaa record for that CDN through Route53.

The code will build off the work done in the first two articles of the “Working with the TypeScript AWS CDK” series.

Source code can be found here.

Prerequisites


Heading image

This post is #2 of a multi-part series on the AWS CDK with TypeScript written during Melbourne lockdown #6.

We will explore how we can make use of LocalStack and LocalStack’s wrapper package aws-cdk-local to speed up our local development.

This post will build off the work that in my AWS CDK With TypeScript Foundations blog post.

Source code can be found here.

Prerequisites

This blog post will operate as if you have a pro LocalStack account, however…


Heading image

This is Day 19 of the #100DaysOfPython challenge.

This post will use the pydoc module from the standard library to to explore how we can navigate documentation as well as create our own.

The code can be found on my GitHub repo.

Getting started

Let’s create the hello-pydoc directory and set up the required files.

At this stage, we have our files sorted and we can start to write some code.

Exploring PyDoc from the command line

PyDoc is a tool that allows us to explore the documentation of a module.

As a simple starter, we can use PyDoc to explore the documentation of the datetime module…


Heading image

This is Day 18 of the #100DaysOfPython challenge.

This post will use the time module from Python's standard library to explore how we can work with different time capabilities such as getting the local time and sleeping within a program.

All of the code used in this post can be found in my GitHub repository.

Prerequisites

Getting started

Let’s create the hello-python-time-module directory and install Pillow.

At this stage, we are ready to explore using the time module using iPython.

To do so, run pipenv run ipython from…


Heading image

This post is #1 of a multi-part series on the AWS CDK with TypeScript written during Melbourne lockdown #6.

This post will be an introduction to working with the AWS CDK in TypeScript.

It will lay the foundations for future posts in this series by introducing a simply example of a simple CDK application and speaking to some useful resources and definitions. This is a series where I will write one post for each day of our current lockdown in Melbourne (lockdown #6 that is expected to last seven days).

Source code can be found here.

Prerequisites


Heading image

This is Day 17 of the #100DaysOfPython challenge.

This post will use the FreezeGun library to demonstrate how to mock the datetime.datetime.now return value to set up consistent test environments.

The repo code can be found on GitHub at okeeffed/hello-python-datetime

Prerequisites

Getting started

The previous code will built on top of the code from Datetime In Python. …


Heading image

This is Day 15 of the #100DaysOfPython challenge.

This post will look at home exceptions are rescued and will demonstrate how to handle different exceptions raised.

Prerequisites

Getting started

Let’s create the hello-python-exceptions directory and install Pillow.

Now we can start up the notebook server.

The server will now be up and running.

Creating the notebook

Once on http://localhost:8888/lab, select to create a new Python 3 notebook from the launcher.

Ensure that this notebook is saved in hello-python-exceptions/docs/<your-file-name>.

We will create four cells to…


Heading image

This is Day 16 of the #100DaysOfPython challenge.

This post will use the standard datetime library to work with dates. The final project code can be found here.

Prerequisites

Getting started

Let’s create the hello-python-datetimes directory and install the required dependencies.

We are now ready to begin exploring the standard datetime library.

Playing around with dates and times

Start the shell with pipenv shell ipython. This will activate the virtual shell and start an iPython interactive shell.

Now we are free to from datetime import date and play around with it:

Dennis O'Keeffe

Senior Engineer @ UsabilityHub. Formerly Culture Amp.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store