About 149 results
https://rednafi.com/python/dependency-management-redux/ · 27 Jun 2023
Modern Python dependency management using pip-tools, hatch, and PEP-621 for web apps and libraries with reproducible builds.
https://rednafi.com/python/implement-traceroute/ · 1 Jun 2023
Build a traceroute clone in Python using UDP and ICMP sockets to trace network packet routes and measure hop latency with TTL manipulation.
https://rednafi.com/python/sort-by-a-custom-sequence-in-django/ · 9 May 2023
Sort Django querysets by custom attribute sequences using Case and When expressions for database-level ordering with SQL CASE statements.
https://rednafi.com/python/deduplicate-iterables-while-preserving-order/ · 1 May 2023
Master techniques to remove duplicates from Python iterables while maintaining original order using sets, OrderedDict, and nested deduplication.
https://marko.tech/journal/10-reasons-why-python-is-better-than-node · 11 Apr 2023
Python vs Node.js. This was written using several open source AI libraries. Just wanted to test it out.
https://rednafi.com/python/server-sent-events/ · 8 Apr 2023
Stream real-time server updates to web clients using Server-Sent Events (SSE) as a simpler alternative to WebSockets for unidirectional data flow.
https://rednafi.com/misc/tinkering-with-unix-domain-socket/ · 11 Mar 2023
Build Unix domain socket servers and clients with Python and socat. Access Docker API via UDS, create HTTP servers, and optimize inter-process communication.
https://rednafi.com/python/multithreaded-socket-server-signal-handling/ · 26 Feb 2023
Gracefully shutdown Python's ThreadingTCPServer with signal handlers for SIGINT, SIGTERM handling and client notification on server shutdown.
https://rednafi.com/python/switch-between-multiple-datastreams/ · 19 Feb 2023
Poll multiple data sources in a single thread using Python generators with itertools.cycle to alternate between infinite data streams efficiently.
https://rednafi.com/python/skip-first-part-of-an-iterable/ · 12 Feb 2023
Skip elements in iterables until a condition is met using itertools.dropwhile for efficient lazy evaluation that works with generators.