157 Posts Tagged ‘python’ (Page 7)

(All tags.)


Introducing multilint

I maintain a few Python projects on Github + PyPI. I try to keep them as consistent and error-free as possible and thus running code quality tools (known as ‘linters’) such as flake8 and isort to ensure this happens. I also discovered the lesser known python setup.py check which has found a number of problems I otherwise wouldn’t have found until release time - highly recommended!

Read more...

Upgrading YPlan to Python 3 with Zero Downtime

We recently upgraded our 160,000 lines of backend Python code from Python 2 to Python 3. We did with zero downtime and no major errors! Here’s how we did it, hopefully it will help anyone else still stuck on Python 2!

Read more...

Swapping decimal for cdecimal on Python 2

Python 3 includes a faster re-implementation of the decimal standard library, called cdecimal. How much faster?

Read more...

Using IPython Notebook to Write Jekyll Blog Posts

My last blog post was written in IPython notebook, and my blog is in Jekyll. Here’s how I hooked the two up.

Read more...

Python Concepts: Part None

Let’s learn about nothing. More particularly, let’s learnt about python’s concept of representing nothing, None. This is the most nothingest concept of nothing as well - for example, zero is nothing, but it’s also a number, so it still has some information. Other names for nothing from other programming languages include null, nil, or Nothing.

Read more...

Time to Move on From Cron

I was recently tasked with keeping the various repeating jobs running for our data scientists at YPlan. They have a number of nightly or weekly jobs to be run, such as creating summary tables of the day’s various activity logs, pulling in data from third party services, and so on.

Read more...

Five Neat Little Python Libraries

Here are some great little Python libraries that have made my life (well, at least the coding part) a little bit nicer and easier. They mostly add neat syntax and a few things that you always wanted to do, but never knew.

Read more...