Timelink Python package
v0.2.7

Contents:

  • An Introduction to Timelink
  • Timelink Python package
  • Installation
  • Usage
  • Contributing
  • Credits
  • History
Timelink Python package
  • »
  • timelink.mhk package
  • Edit on GitHub

timelink.mhk package¶

Submodules¶

timelink.mhk.utilities module¶

Utilities for interaction with and MHK installation. MHK is the name of Java Webapp that preceded Timelink.

  1. Joaquim Carvalho, 2021. MIT Licence.

timelink.mhk.utilities.get_connection_string(db: str, host='localhost', port='3307')[source]¶
timelink.mhk.utilities.get_db_pwd()[source]¶

Get the password of the database from the MHL environment

timelink.mhk.utilities.get_dbnames()[source]¶

Get the names of MHK databases in MySQL

A search is made in the MySQL server running in the local host port 3307

timelink.mhk.utilities.get_engine(db: str, host='localhost', port='3307', echo=False)[source]¶
timelink.mhk.utilities.get_mhk_app_env()[source]¶

Get the mhk app environment variables from mhk-home/app/.env

The .env filed contains information used by docker to create the MHK application and some running options, like header color and docker image tags used for updates.

The .env file is created by the MHK installation process. Its contents can be changed my mhk manager commands.

timelink.mhk.utilities.get_mhk_env() → Type[Optional[str]][source]¶

Get the MHK environment variables from ~/.mhk

The .mhk file contains the path for the mhk-home of the current user. It is created by the MHK install process.

Module contents¶


© Copyright 2021, Joaquim Ramos de Carvalho. Revision 2e469d47.

Built with Sphinx using a theme provided by Read the Docs.