Faketime
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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faketime-0.9.6.3.tar.gz | 22.3 kB | Without provenance | Details for faketime-0.9.6.3.tar.gz |
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 |
Security for faketime 0.9.6.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.