--- id: syncer version: "2.0.3" license: MIT license_treatment: permissive maintenance: dormant --- # syncer — Async to sync converter License: permissive · Maintenance: dormant · Downloads: 450.1K/mo ## What it is and what it does Syncer is a lightweight utility that wraps async functions and coroutines to run them synchronously, eliminating the need to call asyncio.get_event_loop().run_until_complete() directly. It has no runtime dependencies and works by managing the event loop internally. The package is most useful in testing scenarios where you need to call async code from synchronous test functions or decorators, or when you have a synchronous codebase that needs to consume async libraries. It can be used as a decorator or called directly on a coroutine to get its result synchronously. Use it for: - Run async test functions synchronously in unittest or pytest without rewriting test infrastructure. - Call async library functions from synchronous code without manually managing event loops. - Decorate async test methods to make them compatible with synchronous test runners. - Evaluate coroutines in a REPL or script without boilerplate event loop setup. - Integrate async code into legacy synchronous applications during migration. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Syncer converts async functions to synchronous callables, allowing you to run coroutines synchronously without manually managing event loops. Yes, if you need to run async code synchronously in tests or legacy code. The package is simple, has no dependencies, and carries no security vulnerabilities. However, the dormant maintenance status (last release over a year ago) means you should verify it works with your Python version and be prepared to fork or find alternatives if asyncio internals change significantly in future Python releases. ## Install pip install syncer uv add syncer poetry add syncer ## Installing syncer Before you install: High install friction with no runtime dependencies. The package is dormant—last release was 2023-05-08, over a year ago, with no commits since 2023-11-08. It remains marked Production/Stable and supports Python 3.8–3.11, but the long inactivity means maintenance risk if Python or asyncio internals shift. License in practice: MIT license (permissive) imposes no restrictions on use, modification, or distribution in your own projects. Quickstart: from syncer import sync async def async_fun(): return 1 b = sync(async_fun) # convert to synchronous result = b() # call synchronously Verify before relying: - Whether the package works correctly with Python 3.12+ or newer asyncio implementations. - Current state of the GitHub repository and whether maintainer is responsive to issues. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: dormant - Downloads: 450.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags async to sync converter, run coroutines synchronously, async function wrapper, asyncio event loop shortcut, test async code synchronously, convert async to sync, coroutine runner, async-testing, event-loop-management [View on SkillFed](https://skillfed.io/packages/syncer) · [View on PyPI](https://pypi.org/project/syncer/)