Pros and Cons of Python Various Markup Syntax

Introduction to Markup Syntax Markup syntax is a type of computer language used to create and modify documents. It is used to format text, create links, and add images, among other things. Markup syntax is commonly used in web development and programing languages such as HTML and CSS. In this blog post, we will be discussing the pros and cons of three popular Python markup syntaxes: Numpy-Style, Google-Style, and RestructuredText. ...

March 1, 2023 · 7 min · Scott

Python Snowflake UDF Quoting Issue

I recently did some tinkering with creating a Snowflake UDF in Python. It turns out that I discovered a Python Snowflake UDF Quoting issue on the return value from the function. I was not able to find any information on this issue online so I figured it was good to document it for anyone else that might run into the same problem. It turns out that this also impacted a Javascript UDF that I had also written. Here’s the best part, the fix is the same for both UDF types! ...

February 16, 2023 · 3 min · Scott

Testing Python AWS calls with Moto

In my previous Writing Tests For Your Python Project, I started writing tests for my Python code but then ran out of options because I had completed all tests that didn’t involve calls to the AWS API. Now we’ll begin testing Python AWS calls with Moto. You can view some additional details about Moto in their documentation. You will want to also review the list of Implemented Services in the Moto documentation to make sure you the API endpoints and methods are supported. The good news is that there are very few unsupported methods. The bad news is that they do not support the describe_export_tasks for the logs endpoint and we use that in our code. Because of this not being supported we’ll not create a test for it in this example. ...

January 27, 2023 · 9 min · Scott

Writing Tests For Your Python Project

I began this little trip with the post Exporting CloudWatch Logs to S3 that provided example code to get logs from Cloud Watch to S3. From there, the code got prettier with Adding pre-commit Hooks to Python Repo. The next logical step is to make sure the code functions exactly like we’d expect. This can be done by writing tests to make sure our code functions like we’d expect. I’ve highlighted a number of reasons why you should create tests in the article Top 5 Reasons to Build Tests for Your Code. ...

January 20, 2023 · 5 min · Scott

Top 5 Reasons to Build Tests for Your Code

As a Python developer, it’s important to make sure that your code is working correctly and efficiently. One way to do this is by building tests for your code. In this blog post, we’ll go over the top reasons why you should build tests for your Python code. Improved Quality One of the main benefits of building tests for your code is that it helps improve the quality of your code. When you write tests, you are effectively creating a set of requirements for your code to meet. This helps ensure that your code is doing what it’s supposed to do, and it helps catch any issues early on in the development process. ...

January 13, 2023 · 2 min · Scott