time-machine
JSON →time-machine is a Python library that enables 'time travel' in your tests by mocking Python's standard library functions that return the current date or datetime. It achieves this efficiently using C extensions, providing a fast and robust solution for time-dependent testing. The library is actively maintained, with version 3.2.0 released in December 2025.
Traffic · last 30 days ↑20% vs prev 7d
total hits 12
actors 3 distinct systems
last hit 8d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/time-machine
compatibility /v1/registry/time-machine/compatibility