Skip to main content

A set of simple base functions and classes useful for cloudmesh and other programs

Project description

A set of simple functions that are used in cloudmesh but also could be used by other projects.

You can install it in one of two ways.

Instalation from pip

pip install cloudmesh_base

Installation ffrom Source

mkdir -p github/cloudmesh
cd github/cloudmesh
git clone https://github.com/cloudmesh/base.git
cd base
pip install -r requirements.txt
python setup.py install

Provided Functionality

  • ConfigDict – an ordered dictionary to read configurations frm YAML files

  • Shell – a convenient wrapper to python sh so that pylint does not complain all the time when importing commands from sh

  • dotdict – a simple dict with dot notation

  • gitinfo – get some information about authors and their statistics for a git repository

  • menu – a simple ascii menu so we can chose easily from options

  • ping – a simple ping (see also Shell)

  • ssh_config – a simple tool to read ./ssh/config into a dict

  • stopwatch – a simple stopwatch to measure times

  • tables – a simple table printer that prins dicts in a uniform table

  • util – a number of useful functions including yn_choice, banner, path_expand, introspecting and printing the method name at runtime, copy files, replace dict values in a string similar but less complicated to .format, read a file to a string, write a string to a file

Source Code

Project details


Download files

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

Source Distributions

cloudmesh_base-2.6.2.zip (29.1 kB view details)

Uploaded Source

cloudmesh_base-2.6.2.tar.bz2 (18.9 kB view details)

Uploaded Source

File details

Details for the file cloudmesh_base-2.6.2.zip.

File metadata

  • Download URL: cloudmesh_base-2.6.2.zip
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cloudmesh_base-2.6.2.zip
Algorithm Hash digest
SHA256 6a40b0a307212dc67848dad4f01c36877d6a8503df1a810a51c3ffadb75c4f0e
MD5 93487833e14ddebeaffba111a9c2d5a1
BLAKE2b-256 21b0b4c9534955707003a00f4154e7bd5c3d26bb56d76a0b8cffd647510e9c07

See more details on using hashes here.

File details

Details for the file cloudmesh_base-2.6.2.tar.bz2.

File metadata

File hashes

Hashes for cloudmesh_base-2.6.2.tar.bz2
Algorithm Hash digest
SHA256 572aaaf24a8b61ed6d67ddaa686556d93ef2e319c46b687cd024947037d3d45a
MD5 681524fcb6f6e76e1bba4b3bd9690acf
BLAKE2b-256 6f0086b122710fd8048d984f71f8588cf1bdf451880d92275dbc947e700e5800

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