Manage multiple versions of PyPI packages
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pypi_multi_versions-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d82d6a35d35cd79d213af9dd4fcdd4832f53dfef0a1890481d83656fd9e0ac |
|
MD5 | 5c6925ba067f26786d495584d9d49e3a |
|
BLAKE2b-256 | 27798b1c97848ce84b94c8cea2106d0f08e878e268ace12c56dd0371c3363bce |
Close
Hashes for pypi_multi_versions-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c05880b1a1da07729679ead8e1694b0e7d125522f2560a4d970a80785e8b31 |
|
MD5 | 2ed8005459c9affc7916763fdd69ee52 |
|
BLAKE2b-256 | f53384cd678600d22ec9fadf1619c67336c1a58c3a417bbe413e88ee562b2d46 |