Skip to main content

Libfaketime is a C library which can fake the passage of time for UNIX applications, written by Wolfgang Hommel.

This library compiles it and gives some python convenience functions to run it, abstracting away the differences between running it under Linux and Mac OS X.

Get extra environment vars you need to run your process with:

>>> import faketime
>>> faketime.environment_vars("filename.txt")

Write a new time to file:

>>> import datetime
>>> faketime.change_time("filename.txt", datetime.datetime(2050, 6, 7, 10, 9, 22, 713689))
>>> import flyingcar

As soon as you have written the time to file, the new process should have picked up the new time.

Release files for faketime 0.9.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faketime 0.9.6.3
File Size Uploaded
faketime-0.9.6.3.tar.gz 22.3 kB Details

Release files / faketime-0.9.6.3.tar.gz

Download URL faketime-0.9.6.3.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
345d6325e4822672c165973249ed899865b522f1c823a97b35f0b5e4d5a29cc0
BLAKE2b-256 checksum
How to use checksums
e3029dcbfde44ac43da7201f3235c7b390315fb12b9027e0dc0334f000af7497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.9.8

1 release file

0.9.6.9

1 release file

0.9.6.8

1 release file

0.9.6.7

1 release file

This release

0.9.6.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page