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.4
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.4.tar.gz | 24.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ichec_platform_core-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.9 kB
Release files / ichec_platform_core-0.1.4.tar.gz
| Download URL | ichec_platform_core-0.1.4.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78453528e7004942421157f1b3f17c56006cf5192593467e05610a92852a2f5e
|
|
BLAKE2b-256 checksum How to use checksums |
440942fa062b41bdf8f5697b1826caa5b1e825970f4fea922000d236bac18507
|
| 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.4-py3-none-any.whl
| Download URL | ichec_platform_core-0.1.4-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ff43ebc5ec23e5c6ed88f3cfe09247df0244feb24857cb05b23495093146b42
|
|
BLAKE2b-256 checksum How to use checksums |
34f1e9148fc6161db79d95c358b849e4894bbc5f8c5ee44fbfbe1341039cc5eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|