pipmaster


Namepipmaster JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/ParisNeo/pipmaster
SummaryA simple and versatile Python package manager for automating installation and verification across platforms.
upload_time2024-11-03 01:07:58
maintainerNone
docs_urlNone
authorParisNeo
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pipmaster

[![GitHub stars](https://img.shields.io/github/stars/ParisNeo/pipmaster.svg?style=social&label=Stars)](https://github.com/ParisNeo/pipmaster)
[![PyPI version](https://badge.fury.io/py/pipmaster.svg)](https://badge.fury.io/py/pipmaster)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ParisNeo/pipmaster/blob/main/LICENSE)


# PipMaster

PipMaster is a Python package manager utility that simplifies package installation, updating, and information retrieval.

## Installation

```
pip install pipmaster
```

## Usage

```python
import pipmaster as pm

# Install a package
pm.install("requests")

# Install a specific version
pm.install_version("numpy", "1.21.0")

# Check if a package is installed
if pm.is_installed("scipy"):
    print("SciPy is installed!")

# Get package info
info = pm.get_package_info("matplotlib")
if info:
    print(info)

# Install or update a package
pm.install_or_update("pandas")

```


for a more complete  example you can do this:

```python
import pipmaster as pm
import pkg_resources
# Check and install required packages
required_packages = [
    // Package, min version, index
    ["torch","","https://download.pytorch.org/whl/cu121"],
    ["diffusers","0.30.1",None],
    ["transformers","4.44.2",None],
    ["accelerate","0.33.0",None],
    ["imageio-ffmpeg","0.5.1",None]
]

for package, min_version, index_url in required_packages:
    if not pm.is_installed(package):
        pm.install_or_update(package, index_url)
    else:
        if min_version:
            if pkg_resources.parse_version(pm.get_installed_version(package))< pkg_resources.parse_version(min_version):
                pm.install_or_update(package, index_url)
```
## License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ParisNeo/pipmaster",
    "name": "pipmaster",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "ParisNeo",
    "author_email": "parisneoai@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6f/d4/aa5924d61a24d9e018712a9dabffa05542745ddebf96c651203262355f00/pipmaster-0.4.0.tar.gz",
    "platform": null,
    "description": "# pipmaster\r\n\r\n[![GitHub stars](https://img.shields.io/github/stars/ParisNeo/pipmaster.svg?style=social&label=Stars)](https://github.com/ParisNeo/pipmaster)\r\n[![PyPI version](https://badge.fury.io/py/pipmaster.svg)](https://badge.fury.io/py/pipmaster)\r\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ParisNeo/pipmaster/blob/main/LICENSE)\r\n\r\n\r\n# PipMaster\r\n\r\nPipMaster is a Python package manager utility that simplifies package installation, updating, and information retrieval.\r\n\r\n## Installation\r\n\r\n```\r\npip install pipmaster\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nimport pipmaster as pm\r\n\r\n# Install a package\r\npm.install(\"requests\")\r\n\r\n# Install a specific version\r\npm.install_version(\"numpy\", \"1.21.0\")\r\n\r\n# Check if a package is installed\r\nif pm.is_installed(\"scipy\"):\r\n    print(\"SciPy is installed!\")\r\n\r\n# Get package info\r\ninfo = pm.get_package_info(\"matplotlib\")\r\nif info:\r\n    print(info)\r\n\r\n# Install or update a package\r\npm.install_or_update(\"pandas\")\r\n\r\n```\r\n\r\n\r\nfor a more complete  example you can do this:\r\n\r\n```python\r\nimport pipmaster as pm\r\nimport pkg_resources\r\n# Check and install required packages\r\nrequired_packages = [\r\n    // Package, min version, index\r\n    [\"torch\",\"\",\"https://download.pytorch.org/whl/cu121\"],\r\n    [\"diffusers\",\"0.30.1\",None],\r\n    [\"transformers\",\"4.44.2\",None],\r\n    [\"accelerate\",\"0.33.0\",None],\r\n    [\"imageio-ffmpeg\",\"0.5.1\",None]\r\n]\r\n\r\nfor package, min_version, index_url in required_packages:\r\n    if not pm.is_installed(package):\r\n        pm.install_or_update(package, index_url)\r\n    else:\r\n        if min_version:\r\n            if pkg_resources.parse_version(pm.get_installed_version(package))< pkg_resources.parse_version(min_version):\r\n                pm.install_or_update(package, index_url)\r\n```\r\n## License\r\n\r\nThis project is licensed under the Apache 2.0 License - see the LICENSE file for details.\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple and versatile Python package manager for automating installation and verification across platforms.",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/ParisNeo/pipmaster"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c18f78ebc821e95c09090764548780a006668ffc38cf811e308617c5a36ea13c",
                "md5": "0834e5e1593a03f75d37e72865b1c0ab",
                "sha256": "096f5c9837f6f87f11afbfdad0469f120c9f8a2ee15019c3b5a42359407ff56d"
            },
            "downloads": -1,
            "filename": "pipmaster-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0834e5e1593a03f75d37e72865b1c0ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8061,
            "upload_time": "2024-11-03T01:07:54",
            "upload_time_iso_8601": "2024-11-03T01:07:54.731643Z",
            "url": "https://files.pythonhosted.org/packages/c1/8f/78ebc821e95c09090764548780a006668ffc38cf811e308617c5a36ea13c/pipmaster-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fd4aa5924d61a24d9e018712a9dabffa05542745ddebf96c651203262355f00",
                "md5": "9ee27a3ef437f9ff7a4997cba9a8dd19",
                "sha256": "3f8b91291375341786b04c2d9a12efb69395d8b3e22ffcdbec82b660ab56e11e"
            },
            "downloads": -1,
            "filename": "pipmaster-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9ee27a3ef437f9ff7a4997cba9a8dd19",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7635,
            "upload_time": "2024-11-03T01:07:58",
            "upload_time_iso_8601": "2024-11-03T01:07:58.414961Z",
            "url": "https://files.pythonhosted.org/packages/6f/d4/aa5924d61a24d9e018712a9dabffa05542745ddebf96c651203262355f00/pipmaster-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-03 01:07:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ParisNeo",
    "github_project": "pipmaster",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pipmaster"
}
        
Elapsed time: 0.37246s