karakeep-python-api 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {karakeep_python_api-0.1.4/karakeep_python_api.egg-info → karakeep_python_api-0.1.5}/PKG-INFO +1 -1
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api/__main__.py +9 -1
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api/karakeep_api.py +4 -11
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5/karakeep_python_api.egg-info}/PKG-INFO +1 -1
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/setup.py +1 -1
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/LICENSE +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/MANIFEST.in +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/README.md +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api/__init__.py +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api/datatypes.py +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api/openapi_reference.json +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/SOURCES.txt +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/dependency_links.txt +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/entry_points.txt +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/requires.txt +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/top_level.txt +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/setup.cfg +0 -0
- {karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/tests/test_karakeep_api.py +0 -0
|
@@ -176,7 +176,15 @@ def cli(ctx, base_url, api_key, verify_ssl, verbose, disable_response_validation
|
|
|
176
176
|
# --- Configure Logger ---
|
|
177
177
|
log_level = "DEBUG" if verbose else "INFO"
|
|
178
178
|
logger.remove() # Remove default handler
|
|
179
|
-
|
|
179
|
+
if verbose:
|
|
180
|
+
logger.add(
|
|
181
|
+
sys.stderr,
|
|
182
|
+
level=log_level,
|
|
183
|
+
format="<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>",
|
|
184
|
+
)
|
|
185
|
+
logger.debug("Verbose logging enabled with detailed format.")
|
|
186
|
+
else:
|
|
187
|
+
logger.add(sys.stderr, level=log_level) # Default format for INFO
|
|
180
188
|
logger.debug("Logger configured for level: {}", log_level)
|
|
181
189
|
logger.debug("CLI context initialized.")
|
|
182
190
|
|
|
@@ -85,7 +85,7 @@ class KarakeepAPI:
|
|
|
85
85
|
"""
|
|
86
86
|
|
|
87
87
|
# Version reflects the client library version, updated by bumpver
|
|
88
|
-
VERSION: str = "0.1.
|
|
88
|
+
VERSION: str = "0.1.5"
|
|
89
89
|
|
|
90
90
|
def __init__(
|
|
91
91
|
self,
|
|
@@ -222,16 +222,9 @@ class KarakeepAPI:
|
|
|
222
222
|
f"Response validation set to {not self.disable_response_validation} via environment variable (KARAKEEP_PYTHON_API_DISABLE_RESPONSE_VALIDATION={env_disable_validation})."
|
|
223
223
|
)
|
|
224
224
|
|
|
225
|
-
#
|
|
226
|
-
if
|
|
227
|
-
|
|
228
|
-
sys.stderr,
|
|
229
|
-
level="DEBUG",
|
|
230
|
-
format="<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>",
|
|
231
|
-
)
|
|
232
|
-
logger.info("Verbose logging enabled.")
|
|
233
|
-
else:
|
|
234
|
-
logger.add(sys.stderr, level="INFO") # Default level
|
|
225
|
+
# Logger configuration is now handled by the calling application (e.g., __main__.py)
|
|
226
|
+
# or defaults to loguru's standard setup if KarakeepAPI is used as a library.
|
|
227
|
+
# self.verbose is still used for conditional logging within the class methods.
|
|
235
228
|
|
|
236
229
|
logger.debug("KarakeepAPI client initialized.")
|
|
237
230
|
logger.debug(f" Base URL: {self.api_base_url}")
|
|
@@ -7,7 +7,7 @@ with open("README.md", "r") as readme:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="karakeep_python_api",
|
|
10
|
-
version="0.1.
|
|
10
|
+
version="0.1.5",
|
|
11
11
|
description="Community python client for the Karakeep API.", # Simplified description
|
|
12
12
|
long_description=long_description,
|
|
13
13
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api/openapi_reference.json
RENAMED
|
File without changes
|
{karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/requires.txt
RENAMED
|
File without changes
|
{karakeep_python_api-0.1.4 → karakeep_python_api-0.1.5}/karakeep_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|