2 статьи о asyncio semaphore и ограничения конкурентности при использовании asyncio.gather
https://superfastpython.com/asyncio-semaphore/
https://superfastpython.com/asyncio-gather-limit-concurrency/
#asyncio #semaphore #gather #limit #concurrency
https://superfastpython.com/asyncio-semaphore/
https://superfastpython.com/asyncio-gather-limit-concurrency/
#asyncio #semaphore #gather #limit #concurrency
https://adamj.eu/tech/2024/12/30/python-temporary-files-directories-unittest/
#testing #unittest #tmp
#testing #unittest #tmp
adamj.eu
Python: create temporary files and directories in unittest - Adam Johnson
Sometimes, tests need temporary files or directories. You can do this in Python’s unittest with the standard library tempfile module. Let’s look at some recipes to do so within individual tests and setUp().
https://blog.devgenius.io/10-ways-to-work-with-large-files-in-python-effortlessly-handle-gigabytes-of-data-aeef19bc0429
#file #data #IO
#file #data #IO
Medium
10 Ways to Work with Large Files in Python: Effortlessly Handle Gigabytes of Data!
Handling large text files in Python can feel overwhelming. When files grow into gigabytes, attempting to load them into memory all at once…
https://pythonspeed.com/articles/bytesio-reduce-memory-usage/?utm_source=www.pythonweekly.com&utm_medium=newsletter&utm_campaign=python-weekly-issue-686-february-6-2025
#BytesIO #memoryview #memory
#BytesIO #memoryview #memory
Python⇒Speed
The surprising way to save memory with BytesIO
If you want to save memory when reading from a BytesIO, getvalue() is surprisingly a good choice.