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.7.tar.gz (34.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for faketime-0.9.6.7.tar.gz
Algorithm Hash digest
SHA256 1a042353ade5874e7fc3f644af8fa63636d9d3cad8ce88ba38bb41845572ffdb
MD5 6db3a888418f7805e03f07246557f761
BLAKE2b-256 199d02d2f1c12690b9bbb64466b2972d6c59ce77ec6eae0a6d7dd37a9f60816d

See more details on using hashes here.

Supported by

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