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.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ichec_platform_core-0.1.8.tar.gz | 24.6 kB | Without provenance | Details for ichec_platform_core-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ichec_platform_core-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for ichec_platform_core-0.1.8-py3-none-any.whl |
Total release size: 51.4 kB
Release files / ichec_platform_core-0.1.8.tar.gz
| Download URL | ichec_platform_core-0.1.8.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb0f4ff06966e1002d1b5fd15a42d6974174f2d9e5131a495e1e6013d6583b3a
|
|
BLAKE2b-256 checksum How to use checksums |
e51522c39cfdcc333e6dcf42c9a0f2d78f4571398e3885bbba0b107822ab2502
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / ichec_platform_core-0.1.8-py3-none-any.whl
| Download URL | ichec_platform_core-0.1.8-py3-none-any.whl |
|---|---|
| Size | 26.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70b60654b7f79da1b307db08a974f942d69e9ccdd70d5cdc53f5f312c0244872
|
|
BLAKE2b-256 checksum How to use checksums |
36e4575b0b9f3becb911ee04e129d2fbf8a182f67ec1ed11890753e758c56a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for ichec-platform-core 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.