Comparison
freezegun vs libfaketime vs time-machine
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Let your Python tests travel through time
Low maintenance activity. Last release 16 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install freezegunA fast alternative to freezegun that wraps libfaketime.
Maintained. Last release 3 months ago. Weaker on release cadence.
$
pip install libfaketimeTravel through time in your tests.
Actively maintained. Last release 5 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
$
pip install time-machineIn short
- freezegun is the most used: 40.5M downloads a month, 1.8× more than time-machine.
- time-machine is better maintained: Pythie’s Index 84 against 23.
- libfaketime is growing fastest: downloads +90% over the last month.
Side by side
| Metric | freezegun | libfaketime | time-machine |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 23 | 64 |