Unified API to handle several package managers.
Project description
A CLI and a BitBar plugin to simplify software upgrades from several package managers.
Supported
Only macOS platform is supported.
Package manager |
Individual upgrade |
Full upgrade |
---|---|---|
✅ |
✅ |
|
✅ |
✅ |
|
✅ |
✅ |
|
✅ |
✅ |
|
✅ |
✅ |
|
✅ |
✅ |
|
✅ |
✅ |
|
✅ |
✅ |
If you’re bored, feel free to add support for new package manager. See the list of good candidates.
Usage
Examples of the package’s mpm CLI.
List global options and commands:
$ mpm
Usage: mpm [OPTIONS] COMMAND [ARGS]...
CLI for multi-package manager updates and upgrades.
Options:
-v, --verbosity LEVEL Either CRITICAL, ERROR, WARNING, INFO or
DEBUG. Defaults to INFO.
-o, --output-format [simple|plain|json|fancy]
Rendering mode of the output. Defaults to
fancy.
--version Show the version and exit.
--help Show this message and exit.
Commands:
managers List supported package managers and their location.
outdated List available updates.
sync Sync local package info.
update Update all packages.
List all supported package managers and their status on current system:
$ mpm managers
╒═══════════════════╤══════╤═════════════════════╤═════════╤══════════════╤═══════════╕
│ Package manager │ ID │ CLI path │ Found │ Executable │ Version │
╞═══════════════════╪══════╪═════════════════════╪═════════╪══════════════╪═══════════╡
│ Atom's apm │ apm │ /usr/local/bin/apm │ ✅ │ ✅ │ ✅ │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Homebrew │ brew │ /usr/local/bin/brew │ ✅ │ ✅ │ ✅ 1.1.2 │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Homebrew Cask │ cask │ /usr/local/bin/brew │ ✅ │ ✅ │ ✅ 1.1.2 │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Ruby Gems │ gem │ /usr/bin/gem │ ✅ │ ✅ │ ✅ │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Mac AppStore │ mas │ /usr/local/bin/mas │ ✅ │ ✅ │ ✅ 1.3.1 │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Node's npm │ npm │ /usr/local/bin/npm │ ✅ │ ✅ │ ✅ │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Python 2's Pip │ pip2 │ /usr/local/bin/pip2 │ ✅ │ ✅ │ ✅ │
├───────────────────┼──────┼─────────────────────┼─────────┼──────────────┼───────────┤
│ Python 3's Pip │ pip3 │ /usr/local/bin/pip3 │ ✅ │ ✅ │ ✅ │
╘═══════════════════╧══════╧═════════════════════╧═════════╧══════════════╧═══════════╛
BitBar plugin
A copy of the latest stable version of the Meta Package Manager BitBar plugin is always available on BitBar website and plugin repository.
History
The package_manager.py script started its life in my ‘dotfile’ repository, as a rewrite from Bash to Python of the ‘brew-updates.sh’ script.
I then merged both Homebrew and Cask upgrade in the same single script as both were competing with each other when run concurrently.
I finally proposed the script for inclusion in the official BitBar plugin repository. It lived there for a couple of weeks and saw a huge amount of contributions by the community.
With its complexity increasing, it was decided to move the plugin to its own repository. For details, see the migration script.
Current status
Active development of the script is continuing here, in the exact same conditions as we were before moving the repository, like nothing happened.
Each time we reach a releaseable script, we simply tag it and push a copy to the BitBar plugin repository. Plain and simple.
At the same time we maintain a Python library on the side. The library is going to handle all idiosyncracies of supported package managers under a unified API.
Once the library is good enough, we’ll evaluate rebasing the original plugin on it, and lay out a plan for a painless transition, from the standalone script to a bare BitBar-plugin depending on the library alone.
In the mean time we have to temporarily manage duplicate code. But at least the whole project is kept in one centralized place, trying to tackle the same issues.
Contributors
License
This software is licensed under the GNU General Public License v2 or later (GPLv2+).
Changes for v2.1.1 (2016-12-17)
Fix parsing of non-point releases of brew and cask versions. Closes #15.
Do not render emoji in BitBar plugin menu entries.
Do not trim error messages rendered in BitBar plugin.
Do not strip CLI output. Keep original format.
Fix full changelog link.
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 Distributions
File details
Details for the file meta-package-manager-2.1.1.tar.gz
.
File metadata
- Download URL: meta-package-manager-2.1.1.tar.gz
- Upload date:
- Size: 30.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a45a743cd524df0f3be411ae31f7c347483e2f582d19a4dca46e4fc83369b1ba |
|
MD5 | 203426bd3c4886e206c79bbebd3b686d |
|
BLAKE2b-256 | 8e7481d4e5fc4db1bcb645cf9671acdd9882f7163168a4101e85f3965e832390 |
File details
Details for the file meta_package_manager-2.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: meta_package_manager-2.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 38.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9772a8b93cb555ed61041112116bc5d60734d21c35d60f0019bf77a040e2b22 |
|
MD5 | 9b7df4411ab4063f42e64e26e1c2de78 |
|
BLAKE2b-256 | 9b58a5931775e54f4e1d0acb7f570cdb7a0a493f8359e6a1e9436b29c21bb57e |
File details
Details for the file meta_package_manager-2.1.1-py2.7.egg
.
File metadata
- Download URL: meta_package_manager-2.1.1-py2.7.egg
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55be4dd7f4f832e45de40bb452e66f2f2096cdbf234a82e7775a4080a49004da |
|
MD5 | a92699869f6f5e5f8ece54403c728082 |
|
BLAKE2b-256 | 1b49989bae5b1868441bdb7b78afbca5d320564b34d164319cb1403b3adba294 |