×

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. It does so by modifying the built-in functions at the C level, to point them through wrappers that return different values when mocking. Normally in Python, built-in functions are immutable, but time-machine overcomes this by using C code to replace their function pointers.

Uploaded Tue Apr 1 00:31:27 2025
md5 checksum 73cd6c89f10edbc9d05c878bdd851cd2
arch x86_64
build py310h5eee18b_0
depends libgcc-ng >=11.2.0, python >=3.10,<3.11.0a0, python-dateutil
license MIT
license_family MIT
md5 73cd6c89f10edbc9d05c878bdd851cd2
name time-machine
platform linux
sha1 837467173936eca7a423598b4898e04b52142067
sha256 125cfc68169883e4717905ea0f891a1d1811126ce68887e89ba9daba36cb925e
size 37341
subdir linux-64
timestamp 1733244393587
version 2.16.0