ichec-platform-core
ichec_platform_core is a small Python library that other ICHEC platform tools
build on. It works with files, HTTP, git and the GitLab API. It also has a few
commands, which are handy for trying the library out.
Install
pip install ichec_platform_core
Before you upgrade, read CHANGELOG.md for what each release removes.
Replace text in files
ichec_platform_core filesystem replace_in_files --target $REPLACE_DIR --search $FILE_WITH_SEARCH_TERM --replace $FILE_WITH_REPLACE_TERM
This replaces the search text with the replacement in every file under the
target directory. Both come from files, so you don't have to escape them for
the shell as you would with sed.
Download a file
ichec_platform_core network download --url $RESOURCE_URL --download_dir $WHERE_TO_PUT_DOWNLOAD
Work with GitLab and git
Get the version of a project's latest release:
ichec_platform_core gitlab --token $GITLAB_TOKEN latest_release $PROJECT_ID
Add --asset_name $ASSET_NAME to download an asset from that release. The
token needs the Developer role and the read_api scope.
Inside a git repo, show information about it:
ichec_platform_core git info
In Python, use GitlabClient and HttpClient for the same things.
Licence
MIT. See LICENSE.
Metadata
Release files for ichec-platform-core 0.1.6
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.6.tar.gz | 24.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ichec_platform_core-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.3 kB
Release files / ichec_platform_core-0.1.6.tar.gz
| Download URL | ichec_platform_core-0.1.6.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b53ef3769cb35a853b8d77ea46512a0f1a601e2cda1892041a4b15fcd860383c
|
|
BLAKE2b-256 checksum How to use checksums |
f972f5ee3c280de496a9aca83432ed43b313dfb33ed78e6d90fa21d5818a14ce
|
| 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.6-py3-none-any.whl
| Download URL | ichec_platform_core-0.1.6-py3-none-any.whl |
|---|---|
| Size | 26.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d282ab6f6ee3b86edbc51c77a6a4f030770fe3d6b3f2c1349d665b528c73cdc
|
|
BLAKE2b-256 checksum How to use checksums |
46ccabf273a6d78cf04905bf2d9c7b2e74c66c09834feb69b42e628fab3f37a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|