python-atexit-network-io
CommunityAvoid 'cannot schedule new futures after shutdown' errors during Python atexit handlers
Authorreez455G
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill resolves the issue of encountering "cannot schedule new futures after shutdown" errors when Python atexit handlers perform network I/O via async-backed sync clients, such as aiohttp/asyncio wrappers.
Core Features & Use Cases
- Fix atexit Network I/O Errors: Corrects the failure of
atexit-registered handlers that call sync client methods with aiohttp/asyncio internally. - Prevent Unclosed Client Session Warnings: Eliminates "Unclosed client session" and "Unclosed connector" warnings.
- Explicit Finalizer Call: Ensures the finalizer is called explicitly at the end of the main code path before interpreter teardown.
Quick Start
Implement the finalizer in your main code path, calling finalize_session() at the end of the __main__ block.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-atexit-network-io Download link: https://github.com/reez455G/my-ai-agents/archive/main.zip#python-atexit-network-io Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.