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 | 7dc53e962d69c651597aa5e1ed241d44 |
arch | x86_64 |
build | py312h5eee18b_0 |
depends | libgcc-ng >=11.2.0, python >=3.12,<3.13.0a0, python-dateutil |
license | MIT |
license_family | MIT |
md5 | 7dc53e962d69c651597aa5e1ed241d44 |
name | time-machine |
platform | linux |
sha1 | 1a9b97d7878b14eb9ea80077c6e38eac2dac5a94 |
sha256 | f271153a81430822a8d6c208d51b2c5a3e58fb222ac3a8411a84fbc421c73bd1 |
size | 40078 |
subdir | linux-64 |
timestamp | 1733244312619 |
version | 2.16.0 |