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 run 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 an upgrade command
  • 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.1.tar.gz (5.3 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.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for icat-package-manager-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c2138af41d34563ad42fc218d609ad3f7d7ba0f589d01c21e297a656e26a2ed6
MD5 33181e299ab167f93f0f5d83e00e563a
BLAKE2b-256 cce6c76ca47cf3bae9067f0ecb686ed3e81ef6934fbe25481c9ebeffd04ad04f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for icat_package_manager-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78db94efdd26711d371e4c497e886c79b700d1242efcddfe50419ac911b360be
MD5 249aa7a79acf7ce8826aabdc0ac97a43
BLAKE2b-256 1e07e4ec56174df28b2425902bdec0cbc2126c4f43a0e1915cdfc5c7714eb9d0

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