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.1.0.tar.gz (6.5 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.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for botsislabutils-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a431f802521de866ceb3581d360ab4b80ee934b8c28f20d95bb705d276b4c4df
MD5 9ed7580e446a947f9645bfadde9aa413
BLAKE2b-256 60e5727efc07cb8d52009a93c4e58674b34dcd1e87d7ede9ee08a42afd486206

See more details on using hashes here.

File details

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

File metadata

  • Download URL: botsislabutils-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90a382234887d03128e458236ce6b966868783e4c3fc4cdba3d5198472f036ce
MD5 5a238264c58bdf4c613c6e38ea9939e5
BLAKE2b-256 6d0b98052db3d1774148c1af899a454be9ae75e945358d612a5e6fb450eada16

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