Skip to main content

A CLI tool for automating installation of ICAT components

Project description

ICAT Package Manager

icatpackagemanager is a python package that provides a CLI for automatically downloading and installing ICAT components on a local application server.

Usage

Invoke the CLI with python -m icatpackagemanager, or simply ipm if installed with a tool like pipx. Use -h or --help with any of the commands for full details.

Available commands:

  • list - lists all components available from the repo, and which are installed
  • list <component> - lists available and installed versions of the component
  • install <component>:
    • Checks for installed versions of the component
    • Checks for available versions of the component
    • If there is no newer version, do nothing.
    • Otherwise, download latest distro, and unzips it into install directory
    • If there is no previous version, stop and prompt for configuration
    • Otherwise, copy config from previous version, and (not implemented yet) run the setup script
  • install <component> <version> - installs specific version of a package

Terminology

  • Repository/repo is a website hosting ICAT packages. By default, this is the official repo.icatproject.org.
  • A component is one of the ICAT projects ie. icat.server, authn.simple, etc. Components can have many versions, in the format x.y.z-<suffix>.
  • A package is a specific version of a component. Packages are:
    • 'Available' if it exists in the repo
    • 'Installed' if it exists in the install directory
    • 'Deployed' if it's currently running on the application server
  • A distro is a zipfile containing a built package which can be installed
  • The distro cache is a directory containing distros downloaded from the repo
  • The install directory is where distros are unpacked so that they can be deployed

Planned work

  • Add a deploy command or --deploy option on install to run setup scripts

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

icat-package-manager-0.0.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

icat_package_manager-0.0.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file icat-package-manager-0.0.5.tar.gz.

File metadata

  • Download URL: icat-package-manager-0.0.5.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for icat-package-manager-0.0.5.tar.gz
Algorithm Hash digest
SHA256 916667048715bf5b79584ca6d082e1471607657bda1ee7da5fdd77ba0a6bbea1
MD5 b7ce417c498e26a9a9a06cace982e0f4
BLAKE2b-256 8b0f39729a6c59fb4eaef737813ac9c377ef38fc49970018e109bb428e3de90b

See more details on using hashes here.

File details

Details for the file icat_package_manager-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for icat_package_manager-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 67ea9dbb4cd15f1825e6545f55c87ff4051f3d94a2ffdc3b95edc2446cf3babf
MD5 416422c13492bb6736c0b7cbf951e459
BLAKE2b-256 79a9656462442de3b9ce547a3ac18c82950113eed88f8bdc3bf04905204e93f8

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