Skip to main content

A collection of common data structures and utilities used in other ICHEC tools

Project description

iccore

This project has a collection of common data structures and utilities used in other ICHEC tools.

Install

It is available on PyPI:

pip install iccore

Features

The idea of this project is to provide some common, tested and 'production focused' utilities for use in other ICHEC projects.

Here 'production focused' means that features like 'dry run', logging and secure defaults are included.

This is done by wrapping basic Python utilities that interact with system resources, for example:

  • external processes
  • the filesystem
  • network

with stubs that can be mocked for tests or executed in 'dry run' mode.

By using the filesystem, process and network utils provided here instead of the low-level Python libraries directly you get to benefit from these extra features and help to standarize our tooling.

CLI

A basic CLI is included, mostly for testing, but it may be useful for getting ideas on what features the package can be used to support.

Downloading a file

iccore download --url $RESOURCE_URL --download_dir $WHERE_TO_PUT_DOWNLOAD

Getting Gitlab Milestones

This is an example of using the CLI to get Gitlab Milestones given a project id and access token.

iccore gitlab --token $GITLAB_TOKEN milestone $PROJECT_ID

Getting The Latest Project Release

This example uses the CLI to get version number of the most recent project release

iccore gitlab --token $GITLAB_TOKEN latest_release $PROJECT_ID

License

This project is licensed under the GPLv3+. See the incluced LICENSE.txt file for details.

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

iccore-0.0.9.tar.gz (26.0 kB view hashes)

Uploaded Source

Built Distribution

iccore-0.0.9-py3-none-any.whl (27.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page