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.2.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.0.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: botsislabutils-1.0.2.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.0.2.tar.gz
Algorithm Hash digest
SHA256 6e7dda7e39433798c7bf491a465975bbabc07f900fe89a84f33deaf9ddc4c8eb
MD5 26c5a97f3cbf9c1e885f522c5ffb5d4d
BLAKE2b-256 ed8cf9f22a6c82ec601cfe6a62a36c84f8175cc08a0babbc9d1fb80b8e93bc42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: botsislabutils-1.0.2-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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e638b5644bb1a4e1514a7935df7dd99cdf1bd260a021bc68aeec3cb5cb23762f
MD5 119f65cb17041a7a720f8972259e8ec2
BLAKE2b-256 f81da3e5c101155f517a030d74cb4256f1c6855fd31d11beb75ca584f6db7400

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