An intuitive command line interface that wraps boto3 to search and manage media assets
mgmt is available on PyPI:
python -m pip install mgmtMedia Management Command Line Interface officially supports Python 3.8+.
- setup global config file
~/.config/mgmt/config
mgmt configfill out prompts
mgmt configcheck configs are correct
mgmt lsFor help, run:
mgmt --helpCommands:
➜ mgmt --help
Usage: mgmt [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version Show the version and exit. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ config Configures the application │
│ delete Deletes the specified file from S3; requires confirmation │
│ download Downloads the specified file from S3 │
│ ls Lists the files in the specified location │
│ search Searches for files that contain the specified keyword in their names │
│ status Retrieves and prints the metadata of the specified file │
│ upload Uploads the specified file to S3 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯Why not use awscli?
You can, and I do, in tandem with mgmt -- the purpose is to create an additional interface that minimized the lookup/copy/paste process I found myself frequently going through
To contribute to this tool, first checkout the code:
git clone https://github.com/will-wright-eng/media-mgmt-cli.git
cd media-mgmt-cliThen create a new virtual environment:
python -m venv venv
source venv/bin/activateNow install the dependencies and test dependencies:
pip install -e '.[test]'To run the tests:
pytestInstall pre-commit before submitting a PR:
brew install pre-commit
pre-commit install- PyPI Package
- Based on cookiecutter template will-wright-eng/click-app
- Rewrite of original project will-wright-eng/media_mgmt_cli