Skip to main content

Travel through time in your tests.

Project description

https://img.shields.io/github/workflow/status/adamchainz/time-machine/CI/master?style=for-the-badge https://img.shields.io/coveralls/github/adamchainz/django-mysql/master?style=for-the-badge https://img.shields.io/pypi/v/time-machine.svg?style=for-the-badge https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge pre-commit

Travel through time in your tests.

A quick example:

import datetime as dt
from zoneinfo import ZoneInfo
import time_machine

hill_valley_tz = ZoneInfo("America/Los_Angeles")

@time_machine.travel(dt.datetime(1985, 10, 26, 1, 24, tzinfo=hill_valley_tz))
def test_delorean():
    assert dt.date.today().isoformat() == "1985-10-26"

For a bit of background, see the introductory blog post.

Installation

Use pip:

python -m pip install time-machine

Python 3.6 to 3.9 supported. Only CPython is supported at this time because time-machine directly hooks into the C-level API.


Testing a Django project? Check out my book Speed Up Your Django Tests which covers loads of best practices so you can write faster, more accurate tests. I created time-machine whilst writing the book.


Usage

travel(destination, *, tick=True)

travel() is a class that allows time travel, to the datetime specified by destination. It does so by mocking all functions from Python’s standard library that return the current date or datetime. It can be used independently, as a function decorator, or as a context manager.

destination specifies the datetime to move to. It may be:

  • A datetime.datetime. If it is naive, it will be assumed to have the UTC timezone. If it has tzinfo set to a zoneinfo.ZoneInfo instance, the current timezone will also be mocked.

  • A datetime.date. This will be converted to a UTC datetime with the time 00:00:00.

  • A float or int specifying a Unix timestamp

  • A string, which will be parsed with dateutil.parse and converted to a timestamp.

Additionally, you can provide some more complex types:

  • A generator, in which case next() will be called on it, with the result treated as above.

  • A callable, in which case it will be called with no parameters, with the result treated as above.

tick defines whether time continues to “tick” after travelling, or is frozen. If True, the default, successive calls to mocked functions return values increasing by the elapsed real time since the first call. So after starting travel to 0.0 (the UNIX epoch), the first call to any datetime function will return its representation of 1970-01-01 00:00:00.000000 exactly. The following calls “tick,” so if a call was made exactly half a second later, it would return 1970-01-01 00:00:00.500000.

Mocked Functions

All datetime functions in the standard library are mocked to move to the destination current datetime:

  • datetime.datetime.now()

  • datetime.datetime.utcnow()

  • time.gmtime()

  • time.localtime()

  • time.clock_gettime() (only for CLOCK_REALTIME)

  • time.clock_gettime_ns() (only for CLOCK_REALTIME)

  • time.strftime()

  • time.time()

  • time.time_ns()

The mocking is done at the C layer, replacing the function pointers for these built-ins. Therefore, it automatically affects everywhere those functions have been imported, unlike use of unittest.mock.patch().

Usage with start() / stop()

To use independently, create and instance, use start() to move to the destination time, and stop() to move back. For example:

import datetime as dt
import time_machine

traveller = time_machine.travel(dt.datetime(1985, 10, 26))
traveller.start()
# It's the past!
assert dt.date.today() == dt.date(1985, 10, 26)
traveller.stop()
# We've gone back to the future!
assert dt.date.today() > dt.date(2020, 4, 29)

travel() instances are nestable, but you’ll need to be careful when manually managing to call their stop() methods in the correct order, even when exceptions occur. It’s recommended to use the decorator or context manager forms instead, to take advantage of Python features to do this.

Function Decorator

When used as a function decorator, time is mocked during the wrapped function’s duration:

import time
import time_machine

@time_machine.travel("1970-01-01 00:00 +0000")
def test_in_the_deep_past():
    assert 0.0 < time.time() < 1.0

You can also decorate asynchronous functions (coroutines):

import time
import time_machine

@time_machine.travel("1970-01-01 00:00 +0000")
async def test_in_the_deep_past():
    assert 0.0 < time.time() < 1.0

Beware: time is a global state - see below.

Context Manager

When used as a context manager, time is mocked during the with block:

import time
import time_machine

def test_in_the_deep_past():
    with time_machine.travel(0.0):
        assert 0.0 < time.time() < 1.0

Class Decorator

Only unittest.TestCase subclasses are supported. When applied as a class decorator to such classes, time is mocked from the start of setUpClass() to the end of tearDownClass():

import time
import time_machine
import unittest

@time_machine.travel(0.0)
class DeepPastTests(TestCase):
    def test_in_the_deep_past(self):
        assert 0.0 < time.time() < 1.0

Note this is different to unittest.mock.patch()'s behaviour, which is to mock only during the test methods.

Timezone mocking

If the destination passed to time_machine.travel() or Coordinates.move_to() has its tzinfo set to a zoneinfo.ZoneInfo instance, the current timezone will be mocked. This will be done by calling time.tzset(), so it is only available on Unix. The zoneinfo module is new in Python 3.8 - on older Python versions use the backports.zoneinfo package, by the original zoneinfo author.

time.tzset() changes the time module’s timezone constants and features that rely on those, such as time.localtime(). It won’t affect other concepts of “the current timezone”, such as Django’s (which can be changed with its time.override()).

Here’s a worked example changing the current timezone:

import datetime as dt
import time
from zoneinfo import ZoneInfo
import time_machine

hill_valley_tz = ZoneInfo("America/Los_Angeles")

@time_machine.travel(dt.datetime(2015, 10, 21, 16, 29, tzinfo=hill_valley_tz))
def test_hoverboard_era():
    assert time.tzname == ("PST", "PDT")
    now = dt.datetime.now()
    assert (now.hour, now.minute) == (16, 29)

Coordinates

The start() method and entry of the context manager both return a Coordinates object that corresponds to the given “trip” in time. This has a couple methods that can be used to travel to other times.

move_to(destination)

move_to() moves the current time to a new destination. destination may be any of the types supported by travel.

For example:

import datetime as dt
import time
import time_machine

with time_machine.travel(0, tick=False) as traveller:
    assert time.time() == 0

    traveller.move_to(234)
    assert time.time() == 234

shift(delta)

shift() takes one argument, delta, which moves the current time by the given offset. delta may be a timedelta or a number of seconds, which will be added to destination. It may be negative, in which case time will move to an earlier point.

For example:

import datetime as dt
import time
import time_machine

with time_machine.travel(0, tick=False) as traveller:
    assert time.time() == 0

    traveller.shift(dt.timedelta(seconds=100))
    assert time.time() == 100

    traveller.shift(-dt.timedelta(seconds=10))
    assert time.time() == 90

pytest plugin

time-machine also works as a pytest plugin. It provides a function-scoped fixture called time_machine that has one method, move_to(), which has the same signature as Coordinates.move_to(). This can be used to mock your test at different points in time and will automatically be un-mock when the test is torn down.

For example:

import datetime as dt

def test_delorean(time_machine):
    time_machine.move_to(dt.datetime(1985, 10, 26))

    assert dt.date.today().isoformat() == "1985-10-26"

    time_machine.move_to(dt.datetime(2015, 10, 21))

    assert dt.date.today().isoformat() == "2015-10-21"

Caveats

Time is a global state. Any concurrent threads or asynchronous functions are also be affected. Some aren’t ready for time to move so rapidly or backwards, and may crash or produce unexpected results.

Also beware that other processes are not affected. For example, if you use SQL datetime functions on a database server, they will return the real time.

Comparison

There are some prior libraries that try to achieve the same thing. They have their own strengths and weaknesses. Here’s a quick comparison.

unittest.mock

The standard library’s unittest.mock can be used to target imports of datetime and time to change the returned value for current time. Unfortunately, this is fragile as it only affects the import location the mock targets. Therefore, if you have several modules in a call tree requesting the date/time, you need several mocks. This is a general problem with unittest.mock - see Why Your Mock Doesn’t Work.

It’s also impossible to mock certain references, such as function default arguments:

def update_books(_now=time.time):  # set as default argument so faster lookup
    for book in books:
        ...

Although such references are rare, they are occasionally used to optimize highly repeated loops.

freezegun

Steve Pulec’s freezegun library is a popular solution. It provides a clear API which was much of the inspiration for time-machine.

The main drawback is its slow implementation. It essentially does a find-and-replace mock of all the places that the datetime and time modules have been imported. This gets around the problems with using unittest.mock, but it means the time it takes to do the mocking is proportional to the number of loaded modules. In large projects, this can take several seconds, an impractical overhead for an individual test.

It’s also not a perfect search, since it searches only module-level imports. Such imports are definitely the most common way projects use date and time functions, but they’re not the only way. freezegun won’t find functions that have been “hidden” inside arbitrary objects, such as class-level attributes.

It also can’t affect C extensions that call the standard library functions, including (I believe) Cython-ized Python code.

python-libfaketime

Simon Weber’s python-libfaketime wraps the libfaketime library. libfaketime replaces all the C-level system calls for the current time with its own wrappers. It’s therefore a “perfect” mock for the current process, affecting every single point the current time might be fetched, and performs much faster than freezegun.

Unfortunately python-libfaketime comes with the limitations of LD_PRELOAD. This is a mechanism to replace system libraries for a program as it loads (explanation). This causes two issues in particular when you use python-libfaketime.

First, LD_PRELOAD is only available on Unix platforms, which prevents you from using it on Windows.

Second, you have to help manage LD_PRELOAD. You either use python-libfaketime’s reexec_if_needed() function, which restarts (re-execs) your test process while loading, or manually manage the LD_PRELOAD environment variable. Neither is ideal. Re-execing breaks anything that might wrap your test process, such as profilers, debuggers, and IDE test runners. Manually managing the environment variable is a bit of overhead, and must be done for each environment you run your tests in, including each developer’s machine.

time-machine

time-machine is intended to combine the advantages of freezegun and libfaketime. It works without LD_PRELOAD but still mocks the standard library functions everywhere they may be referenced. Its weak point is that other libraries using date/time system calls won’t be mocked. Thankfully this is rare. It’s also possible such python libraries can be added to the set mocked by time-machine.

One drawback is that it only works with CPython, so can’t be used with other Python interpreters like PyPy. However it may possible to extend it to support other interpreters through different mocking mechanisms.

Migrating from libfaketime or freezegun

freezegun has a useful API, and python-libfaketime copies some of it, with a different function name. time-machine also copies some of freezegun’s API, in travel()'s destination, and tick arguments, and the shift() method. There are a few differences:

  • time-machine’s tick argument defaults to True, because code tends to make the (reasonable) assumption that time progresses between function calls, and should normally be tested as such. Testing with time frozen can make it easy to write complete assertions, but it’s quite artificial.

  • freezegun’s tick() method has been implemented as shift(), to avoid confusion with the tick argument. It also requires an explicit delta rather than defaulting to 1 second.

  • freezegun’s tz_offset argument only partially mocks the current time zone. Time zones are more complicated than a single offset from UTC, and freezegun only uses the offset in time.localtime(). Instead, time-machine will mock the current time zone if you give it a datetime with a ZoneInfo timezone.

Some features aren’t supported like the auto_tick_seconds argument. These may be added in a future release.

If you are only fairly simple function calls, you should be able to migrate by replacing calls to freezegun.freeze_time() and libfaketime.fake_time() with time_machine.travel().

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

time-machine-2.0.1.tar.gz (132.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

time_machine-2.0.1-cp39-cp39-win_amd64.whl (17.5 kB view details)

Uploaded CPython 3.9Windows x86-64

time_machine-2.0.1-cp39-cp39-win32.whl (16.7 kB view details)

Uploaded CPython 3.9Windows x86

time_machine-2.0.1-cp39-cp39-manylinux2010_x86_64.whl (33.4 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

time_machine-2.0.1-cp39-cp39-manylinux2010_i686.whl (32.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ i686

time_machine-2.0.1-cp39-cp39-manylinux1_x86_64.whl (33.4 kB view details)

Uploaded CPython 3.9

time_machine-2.0.1-cp39-cp39-manylinux1_i686.whl (32.0 kB view details)

Uploaded CPython 3.9

time_machine-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl (14.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

time_machine-2.0.1-cp38-cp38-win_amd64.whl (17.3 kB view details)

Uploaded CPython 3.8Windows x86-64

time_machine-2.0.1-cp38-cp38-win32.whl (16.6 kB view details)

Uploaded CPython 3.8Windows x86

time_machine-2.0.1-cp38-cp38-manylinux2010_x86_64.whl (34.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

time_machine-2.0.1-cp38-cp38-manylinux2010_i686.whl (33.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ i686

time_machine-2.0.1-cp38-cp38-manylinux1_x86_64.whl (34.7 kB view details)

Uploaded CPython 3.8

time_machine-2.0.1-cp38-cp38-manylinux1_i686.whl (33.2 kB view details)

Uploaded CPython 3.8

time_machine-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl (14.5 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

time_machine-2.0.1-cp37-cp37m-win_amd64.whl (17.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

time_machine-2.0.1-cp37-cp37m-win32.whl (16.5 kB view details)

Uploaded CPython 3.7mWindows x86

time_machine-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl (32.8 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

time_machine-2.0.1-cp37-cp37m-manylinux2010_i686.whl (31.4 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ i686

time_machine-2.0.1-cp37-cp37m-manylinux1_x86_64.whl (32.8 kB view details)

Uploaded CPython 3.7m

time_machine-2.0.1-cp37-cp37m-manylinux1_i686.whl (31.4 kB view details)

Uploaded CPython 3.7m

time_machine-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (14.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

time_machine-2.0.1-cp36-cp36m-win_amd64.whl (17.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

time_machine-2.0.1-cp36-cp36m-win32.whl (16.4 kB view details)

Uploaded CPython 3.6mWindows x86

time_machine-2.0.1-cp36-cp36m-manylinux2010_x86_64.whl (30.6 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

time_machine-2.0.1-cp36-cp36m-manylinux2010_i686.whl (29.5 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ i686

time_machine-2.0.1-cp36-cp36m-manylinux1_x86_64.whl (30.6 kB view details)

Uploaded CPython 3.6m

time_machine-2.0.1-cp36-cp36m-manylinux1_i686.whl (29.5 kB view details)

Uploaded CPython 3.6m

time_machine-2.0.1-cp36-cp36m-macosx_10_9_x86_64.whl (14.1 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file time-machine-2.0.1.tar.gz.

File metadata

  • Download URL: time-machine-2.0.1.tar.gz
  • Upload date:
  • Size: 132.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time-machine-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e0e2e904ad3cdfde24b0c3de1baada9f721afc93d3aa0d259d7804114eb90c73
MD5 3a667792479df930af95e268a6ba8f39
BLAKE2b-256 d3b729de409037d0ff960124c1e92a29dca4b8185915a70ec02ffa96d45084fa

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fc7dbab34571e0b4740e1fee476d85965d36d4cb0f79422291a2f9c73d8ff243
MD5 323739c98a308f76301ac778645afac0
BLAKE2b-256 256a246dbbb817cf6ba6cfec1278a71373ee9bd903a24788c1114058eee0c53a

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-win32.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-win32.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 705cce45f0174c5dda4f29334096a4c2d3336a7424cc821494b7f0e194874e9d
MD5 5e7e00f56a512d62c5da6b1325657600
BLAKE2b-256 a9366aba830a34e2b832d8889295bd374e608cc3559868cd2c50e97ff9c3fdea

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9859a50cb575502bacf9c8017381a9198c63b5be6795392923099b9a218274d5
MD5 8de8d4bcda7582bc815cad0e130ae890
BLAKE2b-256 ca7bf4c2523f4a8f27ffd6b2af1c4fd36075a822d883b73f59d748a8b0be3024

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-manylinux2010_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-manylinux2010_i686.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 3b4db6163fb817840ca92b30ffad96fa4616288e711610ffb5dc565f3a5737fc
MD5 11f125be2c47338d0110874adf83a050
BLAKE2b-256 d50f7b50e60b746cfe0bfb3897134e471a9bcb2d2a8e53d6d3506db7594d7c38

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 63babafeee1da037d000dfc78630407360e830269002e4c1915b82a9e5a9f570
MD5 e432a40e402ef52d77465840d2fc25d4
BLAKE2b-256 b10d71a65c3f720070d13e63b4f9e0249b36196dcfd0813d90ae7137f38e4fbf

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-manylinux1_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-manylinux1_i686.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-manylinux1_i686.whl
Algorithm Hash digest
SHA256 bd8b56bccfce0d0811061a7e3059b45f1cf2253dd473fcb3c7ecda7fe2f1b1d9
MD5 33aba35f2025630abadda997d23c338b
BLAKE2b-256 74fe2738f9d1ea4ececef1dca768488552794daeebc7410de7e9faf814a1c448

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c58eb6be6a65eb60b65c82bfe94991459e77df45fbf32d7d5ae8bd6fa1b59f70
MD5 f66782c193d75ddf25b1374c45351426
BLAKE2b-256 301d00f53686d49e1eccce2e8259ee41ea98a5bdef28713f910662acca6fd3db

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8c22f915f3a7397ffca1a6ae7f5d95cb253ac039d19102f5ef7ae9a412e1d289
MD5 630dadc7fd6482ff6477b7034928da34
BLAKE2b-256 abef24382262288bd7b3b4caf0fb3f0235720aa4e7fa68731e64c367e7f24221

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-win32.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9b45caeb63e39abb61b3a1c9a715481dfc4a3880c0a7726e5949e61d687a7aaa
MD5 02694bb389e25034c37b6e37f203a36c
BLAKE2b-256 7edec5cac6a4024dd923e9b637a273eb88bcca7afe8ff6a39036b5d0d3979961

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4da65491be5bd663f50621c71dfc55c4d2d5806c238f3ea2d1d1244be6687333
MD5 568ce98be7ea55e12e07420b0edec7c3
BLAKE2b-256 05737866d8e6e9eec23b09ddc6e39babd9b3cb9701257efbc6c6824354f1d915

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-manylinux2010_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-manylinux2010_i686.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 e3ab67de170701bfe6ca6718cc812a43347b4986c03ab53d472b1ab39af70822
MD5 22de1aa205bf84a5287ebe30df00c1b7
BLAKE2b-256 7c9dfe438373feebc70eed577a6deb61a7828f0dec47de182f986b7900daacf3

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6cf056ccb7c4d36e1186c8202600556ac6815433e1a538a73f0e7789d8a3e228
MD5 935f39ffd21a2d6518273508c950b389
BLAKE2b-256 83b035dd82ab9a9c066f31911321d10fe63ed05597a7cd21c762140ff76838ec

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-manylinux1_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c7bee91ce0be1cb00ff9fa5fa819567e7b4b6a497f40fe2101ad9602b0e2dc5b
MD5 aa56656080a7cbb6b79fc54173f75121
BLAKE2b-256 77e3766167555b638893b0f969d3b0d6552e20022153733010d423a1447e3f63

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1bbde4f256b4610773ff2bcd06b0b26ae9677082351201fbb8bc0e4a7fc6ece2
MD5 440e0755f84dbdb6c9a9bb88f1208959
BLAKE2b-256 083d6fde70952ba722bd61e2d2453492208a27c35d38bf96dbd0c8d2c1a4a1f5

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 75ac9cd14223aefce319770b3ed674c80de0cf7619db049bd9ad3a0e33e4bb5d
MD5 2af131e95979d77ab623eb7dc7d9283d
BLAKE2b-256 c07bc846fda7e39a87716e77f26cfef50ef4c5544db6b4949f1354ca762b6121

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 927443ce4abe27a3b61b7cb6e4e5335b36dc9dd5a8dd09de8baff737beeb9524
MD5 b181299fe092b877ea27154751e5c2a7
BLAKE2b-256 b97ce120b5b9ba4810bb5a6d319df93a8561c72086c76fd02c3aba340d4f9c72

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5638331ea3421a40aec28f7faf6b3d1d629b60a8f51ce8dc5e86c8852caec9dd
MD5 e8114b4d7c94f36358da1f1d5f7c5728
BLAKE2b-256 a940796c6cfe37bc74204b7066340dbccc2de23b0a5c45f2065de4e205746674

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-manylinux2010_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-manylinux2010_i686.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 1f19ad8134ffb3ed5ef5f3dd8772fba26d4d0acf4b1ce18dd27a376264fcd814
MD5 b6b00a06c9559f40fa5adf66069ea664
BLAKE2b-256 039e176d6f898d803dca3c982bb49b7d3f83dad3b2d4ccc567bfa9ca8be9be44

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9860f96b2cf5a9110a7331eb4f0323d8a3ad29a1a7118f4aefa4f006b9155c53
MD5 77be4e4fc15299ac2cbd29914973ad0f
BLAKE2b-256 28fc1d6c7240aba1ee8af8e58074a8cfd3eb2f61a387361fec824a5329ac749d

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7174959e107259138436e2219f09999c1dd6068eaa8fdbea4220a295d8e681d5
MD5 924a6278e7e443634e672fb380ce93ec
BLAKE2b-256 253e0f0bda16bfb50d5f27b14bdfc0c79d5a8bf12b0caaf88d3d9fc3e7691e3f

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e720553269275bb44b3c6a202edb2000f213019202dabbec646821bc110dc834
MD5 c3a58daa2f26816044d51ff7d38769d8
BLAKE2b-256 d3d40b3e662878dd3bb48e9caf639999f2465a1f729d7cc3fe0742cf3de9fcf1

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8fa1a257f66f25ac8e74b153e3bdb607f1f164556e7dd951da48c0ee5e50ba39
MD5 6e3f9c6a9b485ac6963cbe5cd5a71bb7
BLAKE2b-256 20759942b393ce751a217834ee030306271c001c0489072e2423d58e901edf70

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 476b414a433cb7bbd519c369cd62b9c2af9ff0098c7518a008fb46b69da8f053
MD5 0e68fa43ff85b353f64f57f46602af7e
BLAKE2b-256 322e3855a7f328f1a3ea325823747736d20bc10b6daa10df5423fc11be0a7b94

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 02cbdde507e4f210903c198eaa218e93c1343d21752826b17ecaaa7e7dc5f13b
MD5 134150a1dbfbca110c0937709cd5f0c9
BLAKE2b-256 5850bfd0fa429c702b70079898200027b82164efdcdd24c7c2b5d3b22b6c2c8b

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-manylinux2010_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-manylinux2010_i686.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 634167e7294d576f971c7303bd805160c90927222ff668d9db1e1d3b71286735
MD5 f29ad80ff0fa75966eb6a0108f9e9274
BLAKE2b-256 b2d80d11b5cd72d8c058a344d7258fef8f92b3d45c3d85daaaaa0a9db56fdd5c

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ea8e91eeadf282bbb3f2312b15fe41b2bf917c901dd178b18e3d8f43a94b73a2
MD5 f38abb1a9ff30efdd837d87ba2710a75
BLAKE2b-256 e6d6fc61c4cd31d82e412a6c2171c41b4714ae91c2c8a1ea2b0714511020e244

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 05df6b5f4cc9b392272007da9363abf1c59abdc00988eca09787c46481b491e0
MD5 5d2fb3f83af8292cca9a5677e8b19724
BLAKE2b-256 39a7a72c65523145780bb3c224d302ec7f37dd62276268c162446e598484e539

See more details on using hashes here.

File details

Details for the file time_machine-2.0.1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: time_machine-2.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for time_machine-2.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2b6679adc2452f708a46d409e7a1612ede78107e6e73f25e284a06f73d10cf27
MD5 43f16f193096d7b7fe6e0dc425f4a41e
BLAKE2b-256 c7a2e618d38f3931e5f436119133ce02ba26a78300f80dbadf5b906b212cbf76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page