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 usernameDATABASE_PASS: MySQL passwordDATABASE_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_interfacemodule). - Table
configurationin the database, which contains two columns:keyandvalue.
Authorization
The authorization_manager module contains functions for interacting with users.
Dependencies:
- MySQL database connection (using the
mysql_interfacemodule). - Table
user_rolein the database, which maps usernames to roles.
Authentication
The authentication_manager module provides functions for user authentication.
Dependencies:
- MySQL database connection (using the
mysql_interfacemodule). config_managermodule for retrieving SSO configuration.- Table
userin 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_managermodule for user authentication.authorization_managermodule 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fd75452000ce24f54691e3fb848f776e70fb66cfd6c0625a2d8601410da5edc
|
|
| MD5 |
3ac15e47b8f0bfc3ecf939004f64d3eb
|
|
| BLAKE2b-256 |
082ca39eb87e5fc0220da5810b71e21d5e0cd1ef9eb861396f60ebdffd731cdb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0a669789dc1b187bba410c38f84a8b8d23a621abf3cfe284dc816d3135c620c
|
|
| MD5 |
10e93cb68ed4de23793b579b2068dcb8
|
|
| BLAKE2b-256 |
b721a05bc72f944e04bae639c6aebe111156c708d00cd5c76163908ecc4a1d7a
|