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.6.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.6-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icat-package-manager-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 2dea1859db2fab458822a90244de086be4c70d5d0bc2d44d311db64d8134dfc7
MD5 d3be477d92333c704f4770615d9e8f31
BLAKE2b-256 4fdadd6ac02286fb41149cdcd711a96c5130745abfc4380ed7dc7056f94de38a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for icat_package_manager-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aa391de91526937e5f7b8ac157e8bdf497d5a697d57797a848e42326651e77c0
MD5 f56efad9bbb06f237b473fde4f4ed814
BLAKE2b-256 c2980c40afa591d99f2d1c072dbf75198314dd63e30686cb0223bddf8060d239

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