Comparison
freezegun 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 freezegunTravel through time in your tests.
Actively maintained. Last release 5 weeks ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install time-machineIn short
- freezegun is the most used: 41.2M downloads a month, 1.9× more than time-machine.
- time-machine is better maintained: Pythie’s Index 85 against 23.
Side by side
| Metric | freezegun | time-machine |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 23 | 85 |