karakeep-python-api 1.2.0__tar.gz → 1.2.1__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-1.2.0/karakeep_python_api.egg-info → karakeep_python_api-1.2.1}/PKG-INFO +1 -1
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/__main__.py +6 -1
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/karakeep_api.py +1 -1
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/openapi_reference.json +1 -2
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1/karakeep_python_api.egg-info}/PKG-INFO +1 -1
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/setup.py +1 -1
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/LICENSE +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/MANIFEST.in +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/README.md +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/__init__.py +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/datatypes.py +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/SOURCES.txt +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/dependency_links.txt +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/entry_points.txt +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/requires.txt +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/top_level.txt +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/setup.cfg +0 -0
- {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/tests/test_karakeep_api.py +0 -0
|
@@ -80,7 +80,6 @@ shared_options = [
|
|
|
80
80
|
"-v",
|
|
81
81
|
is_flag=True,
|
|
82
82
|
default=False,
|
|
83
|
-
envvar="KARAKEEP_PYTHON_API_VERBOSE",
|
|
84
83
|
help="Enable verbose logging.",
|
|
85
84
|
),
|
|
86
85
|
click.option(
|
|
@@ -185,6 +184,12 @@ def cli(
|
|
|
185
184
|
"The URL must include the API path, e.g., 'https://your-instance.com/api/v1/'."
|
|
186
185
|
)
|
|
187
186
|
|
|
187
|
+
# Handle verbose environment variable manually since Click's is_flag=True + envvar
|
|
188
|
+
# treats any non-empty value (including "false") as True
|
|
189
|
+
if not verbose: # Only check env var if not already set via CLI flag
|
|
190
|
+
env_verbose = os.environ.get("KARAKEEP_PYTHON_API_VERBOSE", "").lower()
|
|
191
|
+
verbose = env_verbose in ("true", "1", "yes")
|
|
192
|
+
|
|
188
193
|
# Store common API parameters in the context for commands to use
|
|
189
194
|
ctx.obj["API_ENDPOINT"] = resolved_api_endpoint # Store the resolved endpoint
|
|
190
195
|
ctx.obj["API_KEY"] = resolved_api_key # Store the resolved key
|
|
@@ -7,7 +7,7 @@ with open("README.md", "r") as readme:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="karakeep_python_api",
|
|
10
|
-
version="1.2.
|
|
10
|
+
version="1.2.1",
|
|
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-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/requires.txt
RENAMED
|
File without changes
|
{karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|