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.2

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.2
File Size Uploaded
ichec_platform_core-0.1.2.tar.gz 24.9 kB Details

Built distribution (wheel)

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

Total release size: 51.9 kB

Release files / ichec_platform_core-0.1.2.tar.gz

Download URL ichec_platform_core-0.1.2.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1ed4925c11231439bb368f4aca2e785725004b8a89aee521d91f3dd19c18729f
BLAKE2b-256 checksum
How to use checksums
6ffafa04b3de0da0142d33d17988fb9248520cf6b6176cbdf5c52f1e6ab45d81
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.2-py3-none-any.whl

Download URL ichec_platform_core-0.1.2-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c1978e0aa174cc4e4ccfe0a33f41ef12917326bf2de653684db0deaa4238b10
BLAKE2b-256 checksum
How to use checksums
528232be7eaf4e2c30f89e4b39f377b5fa5e6121132f53544a94c55e1f45ac8c
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

This release

0.1.2 This release

2 release files

0.1.1

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