Skip to main content

Run a PyPI server with version requirements applied

Project description

PyPIcky is a tiny package that provides a proxy to the PyPI server but with version requirements pre-applied.

Installing

To install:

pip install pypicky

Using

Once installed, create a requirements file (using the same syntax that you would normally use for pip) and then start up PyPIcky by using the pypicky command and passing it the name of the requirements file as a command-line argument:

pypicky requirements.txt

This will start up a small web server, 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 packages excluded by the requirements file.

This can then be used for example with other tools that support PyPI index URLs, such as tox.

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 pypicky 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

pypicky-0.5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pypicky-0.5-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pypicky-0.5.tar.gz.

File metadata

  • Download URL: pypicky-0.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

File hashes

Hashes for pypicky-0.5.tar.gz
Algorithm Hash digest
SHA256 347e83ff2c3d76e1b907843db476623f7cafd83f11dee50eb930cbebc6b9b8c5
MD5 87148058d9775d26d4a165a0af8af2bd
BLAKE2b-256 d48579ca150b1d771e02ed0fb901806600d205b97558a5a9279f41b63629d0a9

See more details on using hashes here.

File details

Details for the file pypicky-0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: pypicky-0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

File hashes

Hashes for pypicky-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 be78adce1e835f37c617f0ef14d3217eaf6d94f5af9256ffcd7adf391b7e6c47
MD5 b9c3b5a560278c42033681af8706fb4b
BLAKE2b-256 061f0070c85f727089d4aefa5827dbf5cb39b99656bfb16a479a2d9733f4800f

See more details on using hashes here.

Supported by

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