About 18 results
https://rednafi.com/python/pause-and-resume-a-socket-server/ · 5 Feb 2023
Build a pausable socket server with Python's socketserver module using threading for intermittent request handling and background tasks.
https://rednafi.com/python/tqdm-progressbar-with-concurrent-futures/ · 6 Jan 2023
Display progress bars for concurrent Python tasks using tqdm with ThreadPoolExecutor and as_completed for real-time execution monitoring.
https://rednafi.com/python/stream-process-a-csv-file/ · 1 Jul 2022
Process large CSV files without OOM errors by streaming content line-by-line with HTTPX and concurrent.futures for parallel processing.
https://rednafi.com/python/django-bulk-operation-with-process-pool/ · 27 Jun 2022
Speed up Django bulk operations with ProcessPoolExecutor while preserving signals and hooks that bulk_create/bulk_update bypass.
https://rednafi.com/python/limit-concurrency-with-semaphore/ · 10 Feb 2022
Control concurrent async requests with Python asyncio.Semaphore to respect rate limits and prevent overwhelming APIs or services.
https://rednafi.com/python/use-daemon-threads-to-test-infinite-loop/ · 18 Nov 2021
Test Python infinite loops safely using daemon threads with timeouts, allowing tests to complete without hanging or blocking execution.
https://rednafi.com/python/tqdm-with-multiprocessing/ · 18 Nov 2021
Integrate tqdm progress bars with multiprocessing.imap_unordered for visual feedback on parallel task execution across worker processes.
https://rednafi.com/python/concurrent-futures/ · 21 Apr 2020
Master Python's concurrent.futures module for easy threading and multiprocessing. Learn ThreadPoolExecutor and ProcessPoolExecutor with examples.