Writing unit tests for the async message queue server
Marton Trencseni - Sat 15 June 2024 • Tagged with python, async, message, queue, unit, test
I write a small library of unit tests for the message queue servers.
Marton Trencseni - Sat 15 June 2024 • Tagged with python, async, message, queue, unit, test
I write a small library of unit tests for the message queue servers.
Marton Trencseni - Wed 22 May 2024 • Tagged with python, async, message, queue
In this final post on the toy Python async message queue server implementation, I make further feature and code improvements.
Marton Trencseni - Sun 05 March 2023 • Tagged with python, async, message, queue, chatgpt
I try to get ChatGPT to write the codes in the previous posts. It's able to write the basic message queue skeleton, but cannot implement more complicated features such as delivery semantics with caching.
Marton Trencseni - Thu 02 March 2023 • Tagged with python, async, message, queue
I write a somewhat more complicated, but still relatively simple async message queue server in Python.
Marton Trencseni - Mon 27 February 2023 • Tagged with python, async, message, queue
I write a simple, bi-directional async message queue server in Python.
Marton Trencseni - Sun 22 May 2022 • Tagged with python, decorators
I show toy implementations of Python decorator patterns that may be useful for Data Scientists.
Marton Trencseni - Thu 12 May 2022 • Tagged with python, dataclass, decorator
I write a toy implementation of Python's @dataclass
decorator to improve my Python fu and learn more about decorators and metaprogramming.
Marton Trencseni - Sun 08 May 2022 • Tagged with python, decorators
I show toy implementations of Python decorator patterns such as @measure
, @repeat
, @trace
, @count
, @singleton
, and @app.route
(made famous by Flask).
Marton Trencseni - Thu 05 May 2022 • Tagged with python, enum
I extend my previous toy implementation of Python's Enum
class to add more features.
Marton Trencseni - Tue 03 May 2022 • Tagged with python, enum
I write a toy implementation of Python's Enum
class to learn about Python metaclasses.
Marton Trencseni - Fri 22 April 2022 • Tagged with python, types
I show slightly more advanced aspects of type checking in Python for Data Scientists.
Marton Trencseni - Sun 17 April 2022 • Tagged with python, types
I show slightly more advanced uses of type checking in Python.
Marton Trencseni - Fri 08 April 2022 • Tagged with python, types
I show how to use basic type hints and get type checking working in ipython notebooks.
Marton Trencseni - Sat 02 March 2019 • Tagged with python
rxe
is a thin wrapper around Python's re
module. The various rxe
functions are wrappers around corresponding re
patterns. For example, rxe.digit().one_or_more('a').whitespace()
corresponds to \da+\s
. Because rxe
uses parentheses but wants to avoid unnamed groups, the internal (equivalent) representation is actually \d(?:a)+\s
. This pattern can always be retrieved with get_pattern()
.