{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks"}],"enrichment":{"capability":"txaio provides a compatibility layer that lets you write async code once and run it unmodified on either Twisted or asyncio, letting your users choose which event loop to use.","skillfed_tags":["async-abstraction","event-loop-agnostic","twisted-asyncio"],"use_cases":["Write a library that works with both Twisted and asyncio without maintaining two code paths.","Build an application where users can choose their async framework at deployment time without code changes.","Migrate from Twisted to asyncio (or vice versa) incrementally by using txaio as a compatibility bridge.","Create async utilities and helpers that are framework-agnostic and reusable across projects.","Test the same async logic against both event loops to ensure portability."],"what_it_does":"txaio is an abstraction layer over async event loops, similar to how six bridges Python 2 and 3 differences. Instead of writing separate code paths for Twisted's Deferred and asyncio's Future, you write against txaio's unified API and choose at runtime which event loop to use. Your code runs natively on whichever framework you select\u2014there is no event loop adapter or bridge, just a compatibility shim over the core abstractions like futures, callbacks, and errbacks.\n\nThe library is useful when you want to write a library or application that doesn't force a dependency choice on users. You provide helper functions like `create_future()`, `add_callbacks()`, `resolve()`, and `reject()` that map to the underlying framework's primitives. This means a single codebase can serve both Twisted and asyncio users without modification, though it does require you to adopt txaio's function-based style rather than direct object instantiation.","worth_installing":"Yes. txaio is actively maintained, has no dependencies, installs easily, carries no security vulnerabilities, and solves a real problem for anyone writing async code that needs to support multiple event loop frameworks. Use it if you're building a library or application that should work with both Twisted and asyncio; skip it if you're committed to a single framework."},"id":"txaio","links":{"html":"https://skillfed.io/packages/txaio","md":"https://skillfed.io/packages/txaio.md","pypi":"https://pypi.org/project/txaio/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-18","license_spdx":"MIT","license_treatment":"permissive","name":"txaio","python_support":"supports_current","summary":"Compatibility API between asyncio/Twisted/Trollius"},"popularity":{"monthly_downloads":6822988,"position":1842,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"26.6.1"}
