pingera-cli 0.1.7__tar.gz → 0.1.8__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 (50) hide show
  1. {pingera_cli-0.1.7/pingera_cli.egg-info → pingera_cli-0.1.8}/PKG-INFO +1 -1
  2. pingera_cli-0.1.8/docs/example-web-check.json +23 -0
  3. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/__init__.py +1 -1
  4. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/checks.py +1 -1
  5. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/on_demand_checks.py +8 -5
  6. {pingera_cli-0.1.7 → pingera_cli-0.1.8/pingera_cli.egg-info}/PKG-INFO +1 -1
  7. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/SOURCES.txt +1 -0
  8. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/.gitignore +0 -0
  9. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/.replit +0 -0
  10. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/LICENSE +0 -0
  11. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/README.md +0 -0
  12. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/assert +0 -0
  13. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/docs/cli-commands.md +0 -0
  14. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/docs/example-check.yaml +0 -0
  15. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/docs/example-synthetic-screenshot.json +0 -0
  16. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/__main__.py +0 -0
  17. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/__init__.py +0 -0
  18. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/auth.py +0 -0
  19. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/base.py +0 -0
  20. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/check_groups.py +0 -0
  21. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/check_secrets.py +0 -0
  22. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/secrets.py +0 -0
  23. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/__init__.py +0 -0
  24. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/base_formatter.py +0 -0
  25. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/generic_formatter.py +0 -0
  26. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/multistep_formatter.py +0 -0
  27. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/registry.py +0 -0
  28. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/ssl_formatter.py +0 -0
  29. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/synthetic_formatter.py +0 -0
  30. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/web_formatter.py +0 -0
  31. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/main.py +0 -0
  32. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/utils/__init__.py +0 -0
  33. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/utils/config.py +0 -0
  34. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/utils/console.py +0 -0
  35. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/dependency_links.txt +0 -0
  36. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/entry_points.txt +0 -0
  37. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/requires.txt +0 -0
  38. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/top_level.txt +0 -0
  39. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pyproject.toml +0 -0
  40. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/replit.md +0 -0
  41. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/run_tests.py +0 -0
  42. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/setup.cfg +0 -0
  43. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/setup.py +0 -0
  44. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/__init__.py +0 -0
  45. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/conftest.py +0 -0
  46. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/requirements.txt +0 -0
  47. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_auth.py +0 -0
  48. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_checks.py +0 -0
  49. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_config.py +0 -0
  50. {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_on_demand_checks.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pingera-cli
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: A beautiful Python CLI tool built with typer and rich, distributed via pip and based on Pingera SDK
5
5
  Home-page: https://github.com/pingera/pingera-cli
6
6
  Author: PingeraCLI Team
@@ -0,0 +1,23 @@
1
+
2
+ {
3
+ "name": "Example Web Check",
4
+ "type": "web",
5
+ "url": "https://example.com",
6
+ "interval": 300,
7
+ "timeout": 30,
8
+ "parameters": {
9
+ "regions": ["RU, Moscow", "EU, West"],
10
+ "search_text": "Welcome",
11
+ "http_request": {
12
+ "method": "GET",
13
+ "headers": {
14
+ "User-Agent": "PingeraCLI/1.0"
15
+ }
16
+ }
17
+ },
18
+ "marketplace": {
19
+ "tags": ["web", "basic"],
20
+ "name": "Simple website check with string search",
21
+ "description": "Queries website URL and searches for a string in the response"
22
+ }
23
+ }
@@ -2,7 +2,7 @@
2
2
  Pingera CLI - A beautiful CLI tool for Pingera Platform
3
3
  """
4
4
 
5
- __version__ = "0.1.7"
5
+ __version__ = "0.1.8"
6
6
  __author__ = "Pingera Team"
7
7
  __description__ = "A beautiful Python CLI tool built with typer and rich, distributed via pip and based on Pingera SDK"
8
8
 
@@ -444,7 +444,7 @@ class ChecksCommand(BaseCommand):
444
444
 
445
445
  # Filter only SDK-recognized fields from file data
446
446
  # This ignores marketplace-specific fields and other extensions
447
- sdk_fields = ["name", "type", "url", "host", "port", "interval", "timeout", "parameters", "active"]
447
+ sdk_fields = ["name", "type", "url", "host", "port", "interval", "timeout", "parameters", "active", "secrets"]
448
448
  filtered_file_data = {k: v for k, v in file_data.items() if k in sdk_fields}
449
449
 
450
450
  # Command line options take precedence over file data
@@ -106,7 +106,7 @@ class OnDemandChecksCommand(BaseCommand):
106
106
 
107
107
  # Filter only SDK-recognized fields from file data
108
108
  # This ignores marketplace-specific fields and other extensions
109
- sdk_fields = ["name", "type", "url", "host", "port", "timeout", "parameters"]
109
+ sdk_fields = ["name", "type", "url", "host", "port", "timeout", "parameters", "secrets"]
110
110
  filtered_file_data = {k: v for k, v in file_data.items() if k in sdk_fields}
111
111
 
112
112
  # Command line options take precedence over file data
@@ -240,8 +240,9 @@ class OnDemandChecksCommand(BaseCommand):
240
240
  response = checks_api.v1_checks_execute_post(check_request)
241
241
  job_id = response.job_id
242
242
 
243
- # Build success message
244
- success_details = [f"Job ID: {job_id}", f"Type: {check_type}"]
243
+ # Build success message - use the actual type from check_data
244
+ actual_check_type = check_data.get("type", check_type)
245
+ success_details = [f"Job ID: {job_id}", f"Type: {actual_check_type}"]
245
246
  if url:
246
247
  success_details.append(f"URL: {url}")
247
248
  if host:
@@ -256,13 +257,15 @@ class OnDemandChecksCommand(BaseCommand):
256
257
  self._wait_and_show_result(job_id, success_details)
257
258
  else:
258
259
  if self.output_format in ['json', 'yaml']:
260
+ actual_check_type = check_data.get("type", check_type)
261
+ actual_name = check_data.get("name", name)
259
262
  self.output_data({
260
263
  "job_id": job_id,
261
- "check_type": check_type,
264
+ "check_type": actual_check_type,
262
265
  "url": url,
263
266
  "host": host,
264
267
  "port": port,
265
- "name": name,
268
+ "name": actual_name,
266
269
  "status": "queued"
267
270
  })
268
271
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pingera-cli
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: A beautiful Python CLI tool built with typer and rich, distributed via pip and based on Pingera SDK
5
5
  Home-page: https://github.com/pingera/pingera-cli
6
6
  Author: PingeraCLI Team
@@ -10,6 +10,7 @@ setup.py
10
10
  docs/cli-commands.md
11
11
  docs/example-check.yaml
12
12
  docs/example-synthetic-screenshot.json
13
+ docs/example-web-check.json
13
14
  pingera_cli/__init__.py
14
15
  pingera_cli/__main__.py
15
16
  pingera_cli/main.py
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