{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"Looptime fakes the passage of time in asyncio event loops during tests, allowing time-dependent code to run in near-zero real time while the loop's internal clock advances by configured amounts.","skillfed_tags":["asyncio-testing","time-mocking"],"use_cases":["Speed up asyncio test suites that use sleeps, timeouts, or rate limiters without breaking time-dependent assertions.","Test retry logic, exponential backoff, or other delay-based patterns in near-zero real time.","Verify event loop scheduling and callback ordering without waiting for actual delays.","Reduce CI/CD pipeline duration for projects with large asyncio test suites.","Test long-running background tasks or periodic jobs that would otherwise take minutes per test."],"what_it_does":"Looptime is a plugin that intercepts asyncio's internal clock, allowing tests to advance time instantly while the event loop sees the full passage. From the loop's perspective, sleeps, timeouts, and delayed callbacks execute in zero real time; from the observer's perspective, a test that would normally take minutes runs in seconds or less. It was originally built for Kopf, a framework for Kubernetes Operators in Python, where it reduced approximately 7000 unit tests to approximately 2 minutes.\n\nThe library does not speed up tests that are slow for reasons unrelated to explicit time delays\u2014such as local network I/O, heavy computation, or data processing. It only compacts asyncio-based timing primitives. It works transparently and can be enabled globally or per-test, with no changes to test code itself.","worth_installing":"Yes, if you have asyncio-based tests with explicit time delays. Install it for any suite using asyncio that includes sleeps, timeouts, or time-dependent logic\u2014it integrates transparently, has no dependencies, and is actively maintained. Skip it if your tests have no explicit delays or use only synchronous code."},"id":"looptime","links":{"html":"https://skillfed.io/packages/looptime","md":"https://skillfed.io/packages/looptime.md","pypi":"https://pypi.org/project/looptime/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-03","license_spdx":"MIT","license_treatment":"permissive","name":"looptime","python_support":"supports_current","summary":"Fast-forward asyncio event loop time (in tests)"},"popularity":{"monthly_downloads":305147,"position":7797,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7"}
