freezegun VS arrow

Compare freezegun vs arrow and see what are their differences.

freezegun

Let your Python tests travel through time (by spulec)

arrow

Better dates & times for Python [Moved to: https://github.com/arrow-py/arrow] (by crsmithdev)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
freezegun arrow
9 1
3,969 7,467
- -
6.7 8.0
3 days ago almost 3 years ago
Python Python
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

freezegun

Posts with mentions or reviews of freezegun. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-19.

arrow

Posts with mentions or reviews of arrow. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-16.
  • Introduction to Flaky Tests by Example
    4 projects | dev.to | 16 Jul 2021
    Another way of doing so would be to inject the value directly to the method. Python has a very good library to sandbox the tests when using the built-in datetime objects: freezegun. Once again, and unfortunately for us, the project was using arrow so this was not a possibility.

What are some alternatives?

When comparing freezegun and arrow you can also consider the following projects:

time-machine - Travel through time in your tests.

Pendulum - Python datetimes made easy

python-libfaketime - A fast time mocking alternative to freezegun that wraps libfaketime.

timezonefinder - python package for finding the timezone of any point on earth (coordinates) offline

Moto - A library that allows you to easily mock out tests based on AWS infrastructure.

pandas_market_calendars - Exchange calendars to use with pandas for trading applications

VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing

kevin-deldycke-blog - :notebook: My blog, based on Pelican.

httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module

jalali-pandas - A pandas extension that solves all problems of Jalai/Iraninan/Shamsi dates

mock - The Python mock library

TimeZones - Simple time zone converter in Python