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.
Metadata
Release files for ichec-platform-core 0.1.5
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.5.tar.gz | 24.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ichec_platform_core-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.9 kB
Release files / ichec_platform_core-0.1.5.tar.gz
| Download URL | ichec_platform_core-0.1.5.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04a01f040f21c4c17ab41ab37cedcc501872e7540492791e2994c963c8666b17
|
|
BLAKE2b-256 checksum How to use checksums |
f6106729aec511ba36720965cbdbfaa658094d26f072668ef766840f9540f1b4
|
| 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.5-py3-none-any.whl
| Download URL | ichec_platform_core-0.1.5-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e81aea20be3e2e5a53e82be214ef7c70bda57dcf9ff95fcd2c09813384468549
|
|
BLAKE2b-256 checksum How to use checksums |
ccce955dafbe8a2c1bd1041ffbdd9709af45f682617d633fd0df275ac6f93a5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|