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:28 2025 |
md5 checksum | dca7f6ee6284e239bda92cf189515a50 |
arch | x86_64 |
build | py311h5eee18b_0 |
depends | libgcc-ng >=11.2.0, python >=3.11,<3.12.0a0, python-dateutil |
license | MIT |
license_family | MIT |
md5 | dca7f6ee6284e239bda92cf189515a50 |
name | time-machine |
platform | linux |
sha1 | 2f611ff9dcb4f1ec25a30e28e80fcb4ea4b69326 |
sha256 | cf1b5b2636ae7b30459da1cac2c6ae9922951e6a53e14cb8bd278a47fad0f142 |
size | 40504 |
subdir | linux-64 |
timestamp | 1733244338869 |
version | 2.16.0 |