Filtered by:
tags=python
Async Python Part 2 – A deeper look
In the previous [article](https://blog.smallpearl.com/async-python-part-1/) we demonstrated with an example how asynchronous code can achieve massive scalability with the same hardware resources compared to a threaded model. In this example we would go a l
Async Python - Part 1
In the previous article on [Python Generators](https://blog.smallpearl.com/python-generators-an-inside-look/) we saw how generator functions are essentially objects that represent the function, execution of which can be suspended and resumed. The resumptio
Python Generators - A Look Inside
May 29, 2023 |
python
generators
One of the most powerful features of Python is its *generator functions*. It also happens to be a feature that leads to confusion among its users; it can seem quite mysterious as to how generators do their magic. A decent understanding of how generators wo
Brief Overview of Pelican
Recently I switched this website from Django to a static site. This article gives an overview of the core concepts of [Pelican](https://github.com/getpelican/pelican/), covering areas that are not directly captured in the official docs. This is written pri
How to Create a Random String
Random strings are used everywhere in computing -- mostly as keys for cryptographic signing sensitive data. So how does one go about creating one? My first thinking was to use Python code and its random library. I came up with this It does produce a random