Skip to main content

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.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ichec-platform-core 0.1.7
File Size Uploaded
ichec_platform_core-0.1.7.tar.gz 24.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ichec-platform-core 0.1.7
File Interpreter ABI Platform
ichec_platform_core-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 51.5 kB

Release files / ichec_platform_core-0.1.7.tar.gz

Download URL ichec_platform_core-0.1.7.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e151437df34bd96f405d791da414ec53451740cb7502e7961c68e5a2a53f19c9
BLAKE2b-256 checksum
How to use checksums
88d88e482cc71bd545bb3ca41e51f7da1fe3266c680e6c76b254d7c7245c69ea
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.7-py3-none-any.whl

Download URL ichec_platform_core-0.1.7-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
993292ff907ad21e877723a58f3cfc62e5ae66ae7ef933233b901dfad7273da9
BLAKE2b-256 checksum
How to use checksums
9acbf18d67a1a5618c7e7c6d34bd191bc2c071e82146955820e032d7d1b11f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page