Skip to main content

Commonly used utilities for Botsis Lab

Project description

The Botsis Lab Utilities package provides a set of commonly used tools within projects developed at the Botsis Lab at Johns Hopkins University.

Installation

The package can be installed using pip:

pip install botsislabutils

Available Modules

MySQL Interface

The mysql_interface module provides a set of functions for commonly used MySQL operations.

Dependencies:

  • A set of environment variables for MySQL connection:
    • DATABASE_USER: MySQL username
    • DATABASE_PASS: MySQL password
    • DATABASE_HOST: MySQL host (default: localhost)
    • DATABASE_PORT: MySQL port (default: 3306)
    • DATABASE_SCHEMA_NAME: MySQL database name

Configuration

The config_manager module provides functions for reading and writing configuration to and from a MySQL database.

Dependencies:

  • MySQL database connection (using the mysql_interface module).
  • Table configuration in the database, which contains two columns: key and value.

Authorization

The authorization_manager module contains functions for interacting with users.

Dependencies:

  • MySQL database connection (using the mysql_interface module).
  • Table user_role in the database, which maps usernames to roles.

Authentication

The authentication_manager module provides functions for user authentication.

Dependencies:

  • MySQL database connection (using the mysql_interface module).
  • config_manager module for retrieving SSO configuration.
  • Table user in the database, which contains a username column.
  • Authorization module (to retrieve user roles).

Logging

The logger module provides a simple logging interface which prepends log messages with a timestamp.

Service Utility

The service_utility module provides functionality used by Flask services.

Dependencies:

  • authentication_manager module for user authentication.
  • authorization_manager module for user authorization.

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

botsislabutils-1.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

botsislabutils-1.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file botsislabutils-1.0.1.tar.gz.

File metadata

  • Download URL: botsislabutils-1.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for botsislabutils-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4fd75452000ce24f54691e3fb848f776e70fb66cfd6c0625a2d8601410da5edc
MD5 3ac15e47b8f0bfc3ecf939004f64d3eb
BLAKE2b-256 082ca39eb87e5fc0220da5810b71e21d5e0cd1ef9eb861396f60ebdffd731cdb

See more details on using hashes here.

File details

Details for the file botsislabutils-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: botsislabutils-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for botsislabutils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a669789dc1b187bba410c38f84a8b8d23a621abf3cfe284dc816d3135c620c
MD5 10e93cb68ed4de23793b579b2068dcb8
BLAKE2b-256 b721a05bc72f944e04bae639c6aebe111156c708d00cd5c76163908ecc4a1d7a

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