Skip to main content

Libfaketime wrapper.

Project description

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.

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

faketime-0.9.6.3.tar.gz (22.3 kB view details)

Uploaded Source

File details

Details for the file faketime-0.9.6.3.tar.gz.

File metadata

  • Download URL: faketime-0.9.6.3.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for faketime-0.9.6.3.tar.gz
Algorithm Hash digest
SHA256 345d6325e4822672c165973249ed899865b522f1c823a97b35f0b5e4d5a29cc0
MD5 955e1f550e709cbf99eacc9130b9798a
BLAKE2b-256 e3029dcbfde44ac43da7201f3235c7b390315fb12b9027e0dc0334f000af7497

See more details on using hashes here.

Supported by

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