Home » Python

Python

Default Implementations Using Delegation

Hey everyone! It’s my first post of the new year! Usually, I do a bunch of book reviews at the beginning of the year, and I will certainly do that in upcoming posts. Also, don’t worry that I may have given up on my video series; I haven’t. I’m simply being a moron and doing other, less important things in ...

Read More »

Getting Every Microsecond Out of uWSGI

In recent articles, I covered performance tuning both HAProxy and NGINX. Today’s article will be similar, however we’re going to go further down the stack and explore tuning a Python application running via uWSGI. What Is uWSGI In order to deploy a web application written in Python, you would typically need two supporting components. The first is a traditional web ...

Read More »

Multi-Line Lambdas in Python

I need to preface all of this with a disclaimer: I love Python, but I am able to see plenty of faults with it. In this article, I attempt to provide a very roundabout way of working around one of those faults: the lack of multi-line lambdas. This is not to say that this is a good solution, but it may ...

Read More »

Instance-Level Properties in Python

Making Descriptors that act as specialized properties can be tricky, especially when it comes to storing the data the property controls. I should know, I literally wrote the book. Looking at how other languages do it – especially Kotlin’s Delegated Properties – I felt that Python could use a system that works more like that. Delegated Properties are simply objects ...

Read More »

String Python Comparisons Along

Last time, I talked about Python’s boolean operators and and or and what can be confusing about them when “truthy” objects get into the mix. If you haven’t already read it, I would highly recommend it. This article is similar, but looks into something just a little different: the ability to string comparison operators. The Confusing Code Just like last ...

Read More »

Python: Regex – matching foreign characters/unicode letters

I’ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull out characters and actors. Here are some examples of the format of the data: Peter Dinklage as Tyrion Lannister Daniel Naprous as Oznak zo Pahl(credited as Stunt Performer) Filip Lozić as Young ...

Read More »

File Handling in Amazon S3 with Python Boto Library

1.Introduction Amazon Web Services (AWS) Simple Storage Service (S3) is a storage as a service provided by Amazon.  It a general purpose object store, the objects are grouped under a name space called as “buckets”.  The buckets are unique across entire AWS S3. Boto library is the official Python SDK for software development.  It provides APIs to work with AWS ...

Read More »

“Object Literals” in Python

This may come as a shock to my regular readers, but even as a Pythonista and Kotlinite, I’m a little jealous of JavaScript. That’s right; I – a JS hater – am jealous of JavaScript. More specifically, I’m jealous of JavaScript’s object literals (also full-featured function literals, but I don’t think I can do anything about that). Yes, in many ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook