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

Uploaded Python 3

File details

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

File metadata

  • Download URL: icat-package-manager-0.0.3.tar.gz
  • Upload date:
  • Size: 5.7 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.3.tar.gz
Algorithm Hash digest
SHA256 f4cf071507ad126e2ea752d530a55f87ef681c3aae242946525717f3e62624dd
MD5 08d6cde4a212f870dd014a2063a023ae
BLAKE2b-256 1309672d21b492112d04b2dbc9960730f3e206ffee3572b871ab5a2ea8d3ae0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for icat_package_manager-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a2b42950d30a4f3747d1cb11696194b1a663cf5439ae9a4fb6f3b9ccc67c013
MD5 d24f89b481d0ab3e0189b00b8330d52e
BLAKE2b-256 b27235448aadeb09718a404dcbd8f0b2a171d9200c17ee0ef27377087815363c

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