Skip to main content

ichec-platform-core

This package has a set of low-level and low-dependency tools used by several ICHEC Platform Engineering projects. Some basic CLI commands are also included, sometimes just as a demo or way to easily test out library features.

Features

Filesystem

Filesystem interaction utilities.

Example CLI: You can replace all occurrences of a string with another recursively in files with:

ichec_platform_core filesystem replace_in_files --target $REPLACE_DIR --search $FILE_WITH_SEARCH_TERM --replace $FILE_WITH_REPLACE_TERM 

The search and replace terms are read from files. This can be handy to avoid shell escape sequences - as might be needed in sed.

Network

Tooling for communication over a network, includes a:

  • HttpClient

Example CLI: You can download a file with:

ichec_platform_core network download --url $RESOURCE_URL --download_dir $WHERE_TO_PUT_DOWNLOAD

Version Control

Tooling for interacting with git and gitlab via its API. Includes a:

  • GitlabClient

Example CLI: You can get the version number of the most recent project release with:

ichec_platform_core gitlab --token $GITLAB_TOKEN latest_release $PROJECT_ID

or download a particular release asset with:

ichec_platform_core gitlab --token $GITLAB_TOKEN latest_release $PROJECT_ID --asset_name $ASSET_NAME

The token should have suitable permissions to download project release assets, in particular 'read api', 'repo access' and Developer Role.

You can get info about a git repo with:

ichec_platform_core git info 

run in the repo.

Install

It is available on PyPI:

pip install ichec_platform_core

License

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ichec_platform_core-0.0.4.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

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

ichec_platform_core-0.0.4-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file ichec_platform_core-0.0.4.tar.gz.

File metadata

  • Download URL: ichec_platform_core-0.0.4.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ichec_platform_core-0.0.4.tar.gz
Algorithm Hash digest
SHA256 db57ecab43a6dbefa3dc5b85a4ab8895b9630da697ec97d5fa36e0780b8c92d5
MD5 208f5dda8fb327b0d4f944f862dddff3
BLAKE2b-256 a63fea95b3c8a84c0cad0228d2ef4c8bcd568b1306e845b7f3269737406843c6

See more details on using hashes here.

File details

Details for the file ichec_platform_core-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ichec_platform_core-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd8dcca43dac2989687b427470a1770345aac56ef6e3a04fbf66d99a4561aa3
MD5 3a1a292a67dfbda093fe2722005a1620
BLAKE2b-256 7c4ebff6899cc69cda78b4cf666bdac128612da41ea37e27f3c8efd5b82ed53e

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