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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ichec_platform_core-0.1.3.tar.gz | 24.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ichec_platform_core-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.9 kB
Release files / ichec_platform_core-0.1.3.tar.gz
| Download URL | ichec_platform_core-0.1.3.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf199017ef9e31ea9ebee433e78180a389192b49ec751d352d0727e2475effcf
|
|
BLAKE2b-256 checksum How to use checksums |
bca8048358b3ea0f40fd69f600a0ecfb7a18024324cc5e2bb95c51c7535565a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / ichec_platform_core-0.1.3-py3-none-any.whl
| Download URL | ichec_platform_core-0.1.3-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5066628d24f18fb67e37a32d66f6226a450efab41779727159c96446e97d822
|
|
BLAKE2b-256 checksum How to use checksums |
ba9a9b7d44472f9fdb440f3791b18aa1fbd81ce10c0f8a76e44296659531e82a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|