Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ichec_platform_core-0.1.0.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ichec_platform_core-0.1.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file ichec_platform_core-0.1.0.tar.gz.

File metadata

  • Download URL: ichec_platform_core-0.1.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for ichec_platform_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2bc29ed8edd2d3081b1bb0bd05aa88574508f3a0b78abac088081e9cf0ce6540
MD5 fc9c13d19a7f252bbb97da666f0c47b2
BLAKE2b-256 b63472383917e21af87f411d8f4d6ae525b26fdb84ef1487bc2a3d3fe7badb2f

See more details on using hashes here.

File details

Details for the file ichec_platform_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ichec_platform_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fde3749bc6ba0cf6368edec62db24145d8ca16c4bce3d12721f5ecf3f6d0b618
MD5 8aa6ae00a08abdc92e5c9f6af5fbc094
BLAKE2b-256 295818d5ca89f1f32ee526afa68d79f4cd4f0eda009e1394604205d9b722dced

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page