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

Uploaded Source

Built Distribution

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

pypicky-0.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypicky-0.6.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pypicky-0.6.tar.gz
Algorithm Hash digest
SHA256 e60bf6768ab18d1ed3a7482538cbaf4cb2dc3d53c7f2555bac1ac22e0600dc6b
MD5 d80389108b0168dfb0c1310a1b47886e
BLAKE2b-256 cf86df3dc831ce71f399f066357778281cd182843310042a936b343acfbbe606

See more details on using hashes here.

File details

Details for the file pypicky-0.6-py3-none-any.whl.

File metadata

  • Download URL: pypicky-0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pypicky-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 364bbda542898f39c05cd9c5ae522407b83f1c2ee5a45592bd7e843479a75388
MD5 94ac4e51b6fd079a055241fcd426bc8a
BLAKE2b-256 f6107ebbc439794209819de51082f5e427e5c264e1b657501211d2ab75edcdc5

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