Skip to main content

Manage and use multiple versions of PyPI packages in your Python projects.

Installation

Install pypi_multi_versions using pip:

pip install pypi_multi_versions

Usage

Python Interface

Install a Specific Version of a python Package in a directory

from pypi_multi_versions.installer import install_version

install_version('scikit-learn', '0.24.1', './my_packages')

Import a Specific Version of a Package

from pypi_multi_versions.importer import import_helper

with import_helper('scikit-learn', '0.24.1', './my_packages'):
    import sklearn
print(sklearn.__version__)  # Should print '0.24.1'

import dependecy that staifies with other package

from pypi_multi_versions.importer import import_helper

with import_helper('scikit-learn', '0.24.1', './my_packages'):
    import numpy
print(numpy.__version__)  # Should be version compatable with scikit-learn==0.24.1

CLI Commands

Install a Specific Version of a Package

pypi-multi-versions install --package <package_name> --version <version_number> --path <target_path>

Example:

pypi-multi-versions install --package scikit-learn --version 0.24.1 --path ./my_packages

Development

Clone the repository and install dependencies:

git clone https://github.com/frier-sam/pypi_multi_versions.git
cd pypi_multi_versions
pip install -r requirements.txt

Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct, and the process for submitting pull requests.

License This project is licensed under the MIT License.

Metadata

Release files for pypi-multi-versions 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypi-multi-versions 0.3.0
File Size Uploaded
pypi_multi_versions-0.3.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypi-multi-versions 0.3.0
File Interpreter ABI Platform
pypi_multi_versions-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / pypi_multi_versions-0.3.0.tar.gz

Download URL pypi_multi_versions-0.3.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a4d82d6a35d35cd79d213af9dd4fcdd4832f53dfef0a1890481d83656fd9e0ac
BLAKE2b-256 checksum
How to use checksums
27798b1c97848ce84b94c8cea2106d0f08e878e268ace12c56dd0371c3363bce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / pypi_multi_versions-0.3.0-py3-none-any.whl

Download URL pypi_multi_versions-0.3.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8c05880b1a1da07729679ead8e1694b0e7d125522f2560a4d970a80785e8b31
BLAKE2b-256 checksum
How to use checksums
f53384cd678600d22ec9fadf1619c67336c1a58c3a417bbe413e88ee562b2d46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page