time-machine

JSON →
library 3.2.0 ·python
verified Jun 9, 2026 install

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.

total hits 13
actors 4 distinct systems
last hit 5d ago AhrefsBot
MetaBot
4
Script
2
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany · 🇧🇷 Brazil