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.

Deciding whether to take a release, and what it removes: CHANGELOG.md.

Install

It is available on PyPI:

pip install ichec_platform_core

License

This project is licensed under the MIT License. See the included LICENSE file for details.

Release files for ichec-platform-core 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ichec-platform-core 0.1.1
File Size Uploaded
ichec_platform_core-0.1.1.tar.gz 24.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ichec-platform-core 0.1.1
File Interpreter ABI Platform
ichec_platform_core-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.8 kB

Release files / ichec_platform_core-0.1.1.tar.gz

Download URL ichec_platform_core-0.1.1.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec5123f9aa19f36ad3f77d4a28fde88201e1203c93871815540dd38e7431bf48
BLAKE2b-256 checksum
How to use checksums
299631bd7d403c3273d99ad66b7676da48b649ee01f39bf7cb98077d86e9cead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / ichec_platform_core-0.1.1-py3-none-any.whl

Download URL ichec_platform_core-0.1.1-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b150ff0dbf1db172f6edcfec1556f10b2ebbe1ca1618767a259540450f0a0fc
BLAKE2b-256 checksum
How to use checksums
d06c58b89631af5e545c4c1be0154cff3c8a9f9753043418011cb9e5c141ba3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page