Skip to main content

Run a PyPI server from the past

Project description

Do you wish you could just install packages with pip as if you were at some fixed date in the past? If so, the PyPI time machine is for you!

Installing

To install:

pip install pypi-timemachine

Using

Once installed, you can run a PyPI server with:

pypi-timemachine 2014-02-03

or if you need to specify a precise time (in UTC):

pypi-timemachine 2014-02-03T12:33:02

This will start up a Flask app, and will print out a line such as:

Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

You can then call pip with:

pip install --index-url http://127.0.0.1:5000/ astropy

and this will then install the requested packages and all dependencies, ignoring any releases after the cutoff date specified above.

Caveats/warnings

If a package is already installed, pip will not try installing it again. This means that if e.g. you try and run pip as described above, but the package you are trying to install (or any of its dependencies) is already installed, no matter how recent the version, it will not be installed again. Therefore, I recommend using pip with the custom index URL inside a clean environment (but you can run the pypi-timemachine command inside your regular environment.)

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

pypi-timemachine-0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypi_timemachine-0.1-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pypi-timemachine-0.1.tar.gz.

File metadata

  • Download URL: pypi-timemachine-0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for pypi-timemachine-0.1.tar.gz
Algorithm Hash digest
SHA256 48a9ba7c9d814a9a0279195fc700f7a3117ec259a19c36bd75523317ebd9a589
MD5 63fd75b10c7681384b4ea05893678a46
BLAKE2b-256 4c822e8dab5867646821a8d05200907a99fa07041dabc7cde2776f7a767364fe

See more details on using hashes here.

File details

Details for the file pypi_timemachine-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pypi_timemachine-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for pypi_timemachine-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ca1d632657ac05946159b8adf475a7dc04b139e4a2a541c0505ac634ec5b59c4
MD5 225b00e2782fe1f285542f900498d477
BLAKE2b-256 ba7ddfe94a964bf94045bba12929a3a5c566f9b1cb41639c580777ef7799e10c

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