mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
21 lines
618 B
Markdown
21 lines
618 B
Markdown
# Utilities
|
|
|
|
Common utility functions and helpers for the OpenHands app server.
|
|
|
|
## Overview
|
|
|
|
This module provides utility functions that are used across the app server for common operations like date handling, SQL operations, and dynamic imports.
|
|
|
|
## Key Components
|
|
|
|
- **date_utils**: Date and time utilities
|
|
- **sql_utils**: SQL database operation helpers
|
|
- **import_utils**: Dynamic module import utilities
|
|
|
|
## Key Functions
|
|
|
|
- **utc_now()**: Returns current UTC timestamp (replaces deprecated datetime.utcnow)
|
|
- Database connection and query helpers
|
|
- Dynamic module loading utilities
|
|
- Safe import error handling
|