nepse_client.client
Base client implementation for NEPSE API.
This module provides the foundation for both sync and async clients, including common utilities, configuration loading, and response handling.
Functions
|
Mask sensitive fields in data for safe logging. |
|
Safely serialize objects for logging. |
- nepse_client.client.mask_sensitive_data(data, keys=('token', 'password', 'Authorization'))[source]
Mask sensitive fields in data for safe logging.
- Parameters:
data (
dict[str,Any]) – Dictionary containing potentially sensitive datakeys (
tuple) – Tuple of keys to mask
- Return type:
dict[str,Any]- Returns:
Dictionary with masked sensitive values