das-cli 1.0.1__tar.gz → 1.0.2__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.
Potentially problematic release.
This version of das-cli might be problematic. Click here for more details.
- {das_cli-1.0.1/das_cli.egg-info → das_cli-1.0.2}/PKG-INFO +1 -1
- {das_cli-1.0.1 → das_cli-1.0.2}/das/cli.py +8 -0
- {das_cli-1.0.1 → das_cli-1.0.2/das_cli.egg-info}/PKG-INFO +1 -1
- {das_cli-1.0.1 → das_cli-1.0.2}/pyproject.toml +1 -1
- {das_cli-1.0.1 → das_cli-1.0.2}/LICENSE +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/MANIFEST.in +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/README.md +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/__init__.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/ai/plugins/dasai.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/ai/plugins/entries/entries_plugin.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/app.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/authentication/auth.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/authentication/secure_input.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/common/api.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/common/config.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/common/entry_fields_constants.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/common/enums.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/common/file_utils.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/managers/__init__.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/managers/download_manager.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/managers/entries_manager.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/managers/search_manager.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/attributes.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/cache.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/downloads.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/entries.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/entry_fields.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/hangfire.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/search.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das/services/users.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das_cli.egg-info/SOURCES.txt +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das_cli.egg-info/dependency_links.txt +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das_cli.egg-info/entry_points.txt +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das_cli.egg-info/requires.txt +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/das_cli.egg-info/top_level.txt +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/setup.cfg +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/__init__.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/attributes_test.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/download_manager_test.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/entries_manager_test.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/entries_service_test.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/entries_test.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/file_utils_test.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/run_tests.py +0 -0
- {das_cli-1.0.1 → das_cli-1.0.2}/tests/search_manager_test.py +0 -0
|
@@ -221,6 +221,8 @@ def search_entries(das_ctx, attribute, query, max_results, page, sort_by, sort_o
|
|
|
221
221
|
def get_entry(das_ctx, entry_id, output_format):
|
|
222
222
|
"""Get detailed information about a single entry by ID"""
|
|
223
223
|
try:
|
|
224
|
+
# Ensure client and entry_manager are initialized
|
|
225
|
+
das_ctx.get_client()
|
|
224
226
|
# Reusing the entry manager to get entry details by ID
|
|
225
227
|
entry = das_ctx.entry_manager.get_entry(entry_id)
|
|
226
228
|
|
|
@@ -318,6 +320,8 @@ def update_entry(das_ctx, attribute, code=None, file_path=None, data=None):
|
|
|
318
320
|
das entry update --attribute core --data [{ 'Code': 'ENT001', ... }, { 'Code': 'ENT002', ... }]
|
|
319
321
|
"""
|
|
320
322
|
try:
|
|
323
|
+
# Ensure client and entry_manager are initialized
|
|
324
|
+
das_ctx.get_client()
|
|
321
325
|
if not file_path and not data:
|
|
322
326
|
raise click.UsageError("Please provide either a file path or data string")
|
|
323
327
|
|
|
@@ -437,6 +441,8 @@ def create_entry(das_ctx, attribute, file_path=None, data=None):
|
|
|
437
441
|
das entry create --attribute core --data [{ 'Name': 'Entry 1', ... }, { 'Name': 'Entry 2', ... }]
|
|
438
442
|
"""
|
|
439
443
|
try:
|
|
444
|
+
# Ensure client and entry_manager are initialized
|
|
445
|
+
das_ctx.get_client()
|
|
440
446
|
if not file_path and not data:
|
|
441
447
|
raise click.UsageError("Please provide either a file path or data string")
|
|
442
448
|
|
|
@@ -514,6 +520,8 @@ def get_entry(das_ctx, code=None, id=None):
|
|
|
514
520
|
raise click.UsageError("Please provide either an entry code or ID")
|
|
515
521
|
|
|
516
522
|
try:
|
|
523
|
+
# Ensure client and entry_manager are initialized
|
|
524
|
+
das_ctx.get_client()
|
|
517
525
|
# Pass client as a named parameter to avoid conflicts with 'id' parameter
|
|
518
526
|
entry = das_ctx.entry_manager.get(code=code, id=id)
|
|
519
527
|
if entry:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|