Coder Social home page Coder Social logo

pypi_multi_versions's Introduction

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.

Upload to pypi

python setup.py sdist bdist_wheel
twine upload dist/* --verbose

pypi_multi_versions's People

Contributors

sam-zenon avatar namzakku avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.