Skip to main content

Manager Pypi Package & Mirror

Project description

mppm

Introduce

Configure the pypi source repository, support for downloading specified modules or files and its dependent packages.

My Use Case

The project project is offline and requires downloading the dependent package locally. The project project can only be started after the installation of the dependent package is completed.

Installation

pip install mppm

Usage

usage: mppm  <sub-commands>  [<args>] 

mppm Manage pip sources and dependent packages

positional arguments:
  {download,uninstall,config}
    download            download modules
    uninstall           uninstall modules
    config              rewrite pip configuration

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

SubCommand: config

usage: mppm  <sub-commands>  [<args>] config [-h] [-y]

options:
  -h, --help  show this help message and exit
  -y, --yes   force rewrite pip configuration

examples

mppm config

SubCommand: download

usage: mppm  <sub-commands>  [<args>] download [-h] (-m MODULE | -r REQUIREMENT) [-y]

options:
  -h, --help            show this help message and exit
  -m MODULE, --module MODULE
                        download specified modules and dependencies
  -r REQUIREMENT, --requirement REQUIREMENT
                        download the modules and dependencies specified in the file. like requirements.txt
  -y, --yes             rewrite the pip configuration

examples

mppm download -m flask  
mppm download -r /tmp/requiremen.txt

SubCommand: uninstall

usage: mppm  <sub-commands>  [<args>] uninstall [-h] (-m MODULE | -r REQUIREMENT) [-y]

options:
  -h, --help            show this help message and exit
  -m MODULE, --module MODULE
                        uninstall specified modules and dependencies
  -r REQUIREMENT, --requirement REQUIREMENT
                        uninstall the modules and dependencies specified in the file. like requirements.txt
  -y, --yes             interactive

examples

mppm uninstall -m flask
mppm download -r /tmp/requiremen.txt -y

Configuration

You can add package indexes to your ~/.pip/pip.conf file. Example:

[global]
timeout = 120
index-url = https://pypi.org/simple/
trusted-host = pypi.org

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

mppm-3.0.9.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

mppm-3.0.9-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file mppm-3.0.9.tar.gz.

File metadata

  • Download URL: mppm-3.0.9.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for mppm-3.0.9.tar.gz
Algorithm Hash digest
SHA256 25ff6d9d98089df71ed293b11c6b69fd7a875201b197b6f84aa13c9d54e34b26
MD5 1ca819df9bffd00573bb9ab6a68d0a1b
BLAKE2b-256 6c5976f65b929d38234196af8a326b90fb2cca2c1836103bc43f3a0fc97a801d

See more details on using hashes here.

File details

Details for the file mppm-3.0.9-py3-none-any.whl.

File metadata

  • Download URL: mppm-3.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for mppm-3.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 479dbcd2ff1a283d6da6b75f36d8db5c7fa7c3262f864158d934b3d8a0a65268
MD5 287d275cdd19eae20045141bbb54a9a7
BLAKE2b-256 4f10201a216126832cce7b367bae68997f9577d55969cf7dd9592b507b69b2ce

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