Skip to main content

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


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.0.3.tar.gz (35.5 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.0.3-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ichec_platform_core-0.0.3.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for ichec_platform_core-0.0.3.tar.gz
Algorithm Hash digest
SHA256 acc5e0be7dac2f33579782ffdc5125d74edfc19cde8c0cea7a086e2e4ffed34b
MD5 1ab56c4c92423210a3e74110dcd8d9a4
BLAKE2b-256 ede0aa50e57f006dc86b3d0a9eec116312448016d81545e8bdbe4e32a326d620

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ichec_platform_core-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 40433186aa3f72e71bbda79af190c0425ad7b0c403cbe2456c53dc86d2064a5c
MD5 8abc9786dd47af807ec0413769f0b433
BLAKE2b-256 1e39b86178e4587abca0fe70c83e4b6f8cba117c2b00f5b05e8b754bc4027a35

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