Utility library to support ICHEC Platform Engineering tools
Project description
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 occurences 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.
Install
It is available on PyPI:
pip install ichec_platform_core
License
This project is licensed under the GPLv3+. See the incluced LICENSE.txt file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ichec_platform_core-0.0.1.tar.gz.
File metadata
- Download URL: ichec_platform_core-0.0.1.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
113b5f3abc5b1d4e952b7001a3a69f7e821205dac0fff5ad2a42c956df3cd4d3
|
|
| MD5 |
26342ba10ae50e01fa439d0244049ecc
|
|
| BLAKE2b-256 |
fa5fdbebeb07c83359c398ebafbc877343cfcc55f94df10a45ec2447228f7042
|
File details
Details for the file ichec_platform_core-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ichec_platform_core-0.0.1-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6295917b98af43cc800f7d04069fe5534be7d09f657702318a78ea84e4fda9
|
|
| MD5 |
cc2953fdc56225fd277a3af257520d8e
|
|
| BLAKE2b-256 |
0daed06412d6816fc275442cfc689abd4ef1939f7c0587d86d61fddd2304edce
|