Python
Articles about Python
Category articles "Python"
Study all materials on this topic
Event Loop in Python: How asyncio Achieves "Parallelism"
Event loop is the heart of asyncio. It doesn't run code in parallel across multiple threads. Instead, it switches between...
pytest-django: Testing Django
Охватываемые темы: Installation, @pytest.mark.djangodb, Fixtures, Testing views.
pip: Python Package Manager
Охватываемые темы: Installing packages, Upgrading and removing, requirements.txt, Virtual environment.
run_in_executor and anyio: Sync Libraries in Async Code
Sometimes you need to call a synchronous library from async code without blocking the event loop.
Async Context Managers: async with and @asynccontextmanager
Async context managers manage resources in async code — connections, files, transactions.
pathlib: Working with Paths in Python
pathlib is the modern way to work with filesystem paths instead of plain strings.
Installing Python
Or download the installer from python.org.
What is an ORM
ORM (Object-Relational Mapping) is a technology that lets you work with a database through Python objects instead of writing raw...
asyncio: Timeouts, Task Cancellation and Graceful Shutdown
Three things you absolutely need in production async code.
asyncio: Queue, Lock, Semaphore — Synchronization Without Threads
In async code multiple coroutines run concurrently in a single thread. Race conditions can still happen — and asyncio provides...
Password Hashing: bcrypt and passlib
If the database is leaked, an attacker gains access to every password. Hashing makes this impossible.
Async Generators and Async Iterators in Python
Async generators are a way to lazily produce data in an async context. Perfect for streaming, pagination and processing large...
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!