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.
Files changed (18) hide show
  1. {karakeep_python_api-1.2.0/karakeep_python_api.egg-info → karakeep_python_api-1.2.1}/PKG-INFO +1 -1
  2. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/__main__.py +6 -1
  3. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/karakeep_api.py +1 -1
  4. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/openapi_reference.json +1 -2
  5. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1/karakeep_python_api.egg-info}/PKG-INFO +1 -1
  6. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/setup.py +1 -1
  7. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/LICENSE +0 -0
  8. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/MANIFEST.in +0 -0
  9. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/README.md +0 -0
  10. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/__init__.py +0 -0
  11. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api/datatypes.py +0 -0
  12. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/SOURCES.txt +0 -0
  13. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/dependency_links.txt +0 -0
  14. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/entry_points.txt +0 -0
  15. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/requires.txt +0 -0
  16. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/karakeep_python_api.egg-info/top_level.txt +0 -0
  17. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/setup.cfg +0 -0
  18. {karakeep_python_api-1.2.0 → karakeep_python_api-1.2.1}/tests/test_karakeep_api.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karakeep_python_api
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Community python client for the Karakeep API.
5
5
  Home-page: https://github.com/thiswillbeyourgithub/karakeep_python_api/
6
6
  License: GPLv3
@@ -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
@@ -85,7 +85,7 @@ class KarakeepAPI:
85
85
  """
86
86
 
87
87
  # Version reflects the client library version, updated by bumpver
88
- VERSION: str = "1.2.0"
88
+ VERSION: str = "1.2.1"
89
89
 
90
90
  def __init__(
91
91
  self,
@@ -2321,8 +2321,7 @@
2321
2321
  "type": "object",
2322
2322
  "properties": {
2323
2323
  "name": {
2324
- "type": "string",
2325
- "minLength": 1
2324
+ "type": "string"
2326
2325
  }
2327
2326
  },
2328
2327
  "required": [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karakeep_python_api
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Community python client for the Karakeep API.
5
5
  Home-page: https://github.com/thiswillbeyourgithub/karakeep_python_api/
6
6
  License: GPLv3
@@ -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.0",
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",