tciqrestclient 0.1.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 (75) hide show
  1. tciqrestclient-0.1.1/.env.example +46 -0
  2. tciqrestclient-0.1.1/API_REFERENCE.md +752 -0
  3. tciqrestclient-0.1.1/CHANGELOG.md +67 -0
  4. tciqrestclient-0.1.1/GETTING_STARTED.md +648 -0
  5. tciqrestclient-0.1.1/LICENSE +21 -0
  6. tciqrestclient-0.1.1/MANIFEST.in +5 -0
  7. tciqrestclient-0.1.1/PKG-INFO +161 -0
  8. tciqrestclient-0.1.1/QUICKGUIDE.md +704 -0
  9. tciqrestclient-0.1.1/QUICKSTART.md +86 -0
  10. tciqrestclient-0.1.1/README.md +129 -0
  11. tciqrestclient-0.1.1/TESTING.md +383 -0
  12. tciqrestclient-0.1.1/examples/aion_end_to_end.py +244 -0
  13. tciqrestclient-0.1.1/examples/auto_repair_demo.py +80 -0
  14. tciqrestclient-0.1.1/examples/bulk_cleanup_databases.py +84 -0
  15. tciqrestclient-0.1.1/examples/discover_aion.py +105 -0
  16. tciqrestclient-0.1.1/examples/discover_local.py +92 -0
  17. tciqrestclient-0.1.1/examples/fetch_view_data.py +190 -0
  18. tciqrestclient-0.1.1/examples/generate_report.py +250 -0
  19. tciqrestclient-0.1.1/examples/generate_report_labserver.py +192 -0
  20. tciqrestclient-0.1.1/examples/inspect_database_schema.py +87 -0
  21. tciqrestclient-0.1.1/examples/list_databases_aion.py +58 -0
  22. tciqrestclient-0.1.1/examples/list_databases_labserver.py +98 -0
  23. tciqrestclient-0.1.1/examples/list_tests_by_owner.py +34 -0
  24. tciqrestclient-0.1.1/examples/manage_test_database.py +76 -0
  25. tciqrestclient-0.1.1/examples/manage_views.py +131 -0
  26. tciqrestclient-0.1.1/examples/modify_query_definition.py +216 -0
  27. tciqrestclient-0.1.1/examples/multi_database_query.py +67 -0
  28. tciqrestclient-0.1.1/examples/query_modifiers.py +107 -0
  29. tciqrestclient-0.1.1/examples/rename_test_roundtrip.py +115 -0
  30. tciqrestclient-0.1.1/examples/run_boxplot_query.py +109 -0
  31. tciqrestclient-0.1.1/examples/run_histogram_query.py +114 -0
  32. tciqrestclient-0.1.1/examples/run_json_definition_query.py +123 -0
  33. tciqrestclient-0.1.1/examples/run_live_query.py +118 -0
  34. tciqrestclient-0.1.1/examples/run_pie_chart_query.py +105 -0
  35. tciqrestclient-0.1.1/examples/run_view_query.py +286 -0
  36. tciqrestclient-0.1.1/examples/run_xy_chart_query.py +93 -0
  37. tciqrestclient-0.1.1/pyproject.toml +45 -0
  38. tciqrestclient-0.1.1/setup.cfg +4 -0
  39. tciqrestclient-0.1.1/tciqrestclient/__init__.py +42 -0
  40. tciqrestclient-0.1.1/tciqrestclient/aion_discovery.py +173 -0
  41. tciqrestclient-0.1.1/tciqrestclient/client.py +976 -0
  42. tciqrestclient-0.1.1/tciqrestclient/config.py +268 -0
  43. tciqrestclient-0.1.1/tciqrestclient/databases.py +359 -0
  44. tciqrestclient-0.1.1/tciqrestclient/discovery.py +150 -0
  45. tciqrestclient-0.1.1/tciqrestclient/exceptions.py +31 -0
  46. tciqrestclient-0.1.1/tciqrestclient/queries.py +39 -0
  47. tciqrestclient-0.1.1/tciqrestclient/query.py +256 -0
  48. tciqrestclient-0.1.1/tciqrestclient/reports.py +257 -0
  49. tciqrestclient-0.1.1/tciqrestclient/transport.py +119 -0
  50. tciqrestclient-0.1.1/tciqrestclient/version.py +1 -0
  51. tciqrestclient-0.1.1/tciqrestclient/view_query_builder.py +776 -0
  52. tciqrestclient-0.1.1/tciqrestclient/views.py +345 -0
  53. tciqrestclient-0.1.1/tciqrestclient.egg-info/PKG-INFO +161 -0
  54. tciqrestclient-0.1.1/tciqrestclient.egg-info/SOURCES.txt +73 -0
  55. tciqrestclient-0.1.1/tciqrestclient.egg-info/dependency_links.txt +1 -0
  56. tciqrestclient-0.1.1/tciqrestclient.egg-info/requires.txt +7 -0
  57. tciqrestclient-0.1.1/tciqrestclient.egg-info/top_level.txt +1 -0
  58. tciqrestclient-0.1.1/tests/conftest.py +28 -0
  59. tciqrestclient-0.1.1/tests/data/dsr_query_filtered_min_latency.json +210 -0
  60. tciqrestclient-0.1.1/tests/data/dsr_query_unfiltered.json +208 -0
  61. tciqrestclient-0.1.1/tests/data/view_detailed_stream_results.json +1 -0
  62. tciqrestclient-0.1.1/tests/fixtures.py +233 -0
  63. tciqrestclient-0.1.1/tests/test_aion_discovery.py +231 -0
  64. tciqrestclient-0.1.1/tests/test_client.py +1402 -0
  65. tciqrestclient-0.1.1/tests/test_config.py +309 -0
  66. tciqrestclient-0.1.1/tests/test_databases.py +63 -0
  67. tciqrestclient-0.1.1/tests/test_discovery.py +124 -0
  68. tciqrestclient-0.1.1/tests/test_examples_smoke.py +481 -0
  69. tciqrestclient-0.1.1/tests/test_new_features.py +557 -0
  70. tciqrestclient-0.1.1/tests/test_queries.py +64 -0
  71. tciqrestclient-0.1.1/tests/test_query.py +258 -0
  72. tciqrestclient-0.1.1/tests/test_reports.py +213 -0
  73. tciqrestclient-0.1.1/tests/test_transport.py +205 -0
  74. tciqrestclient-0.1.1/tests/test_view_query_builder.py +589 -0
  75. tciqrestclient-0.1.1/tests/test_views.py +367 -0
@@ -0,0 +1,46 @@
1
+ # tciqrestclient connection settings -- copy this file to .env and fill in what you
2
+ # need. Nothing here is hardcoded in the client; IQClient() reads all of
3
+ # it at runtime. See tciqrestclient/config.py for the full precedence rules.
4
+
5
+ # --- Where is orion-res? Pick ONE of the following approaches. ---
6
+
7
+ # Option A: full base URL (skips discovery entirely).
8
+ # TCIQ_BASE_URL=http://127.0.0.1:9200
9
+
10
+ # Option B: explicit host/port.
11
+ # TCIQ_HOST=127.0.0.1
12
+ # TCIQ_PORT=9200
13
+
14
+ # Option C: discover from an STC installation directory
15
+ # (reads orion-res.yaml for local IQ, or stcbll.ini for remote IQ).
16
+ # TCIQ_INSTALL_DIR=C:\Program Files\Spirent Communications\Spirent TestCenter
17
+
18
+ # Option D/E: AION platform discovery (authenticates to AION IAM, then
19
+ # looks up orion-res's host/port + bearer token from product-instances).
20
+ # TCIQ_AION_URL=https://aion.example.com
21
+ # TCIQ_AION_USERNAME=user@example.com
22
+ # TCIQ_AION_PASSWORD=secret
23
+ # TCIQ_AION_NODE_NAME=
24
+ # TCIQ_AION_PORT_NAME=iq
25
+ # TCIQ_AION_CA_CERT=
26
+
27
+ # --- Optional ---
28
+
29
+ # Default test (database) id used by query()/get_test() when use_test()
30
+ # hasn't been called. Leave unset and use_test() at runtime instead.
31
+ # TCIQ_DATABASE_ID=
32
+
33
+ # HTTP request timeout, in seconds. Defaults to 10.
34
+ # TCIQ_TIMEOUT=10
35
+
36
+ # 1/true/yes to log each request's method/URL/body + timing before sending.
37
+ # TCIQ_DEBUG=
38
+
39
+ # TLS certificate verification for the main orion-res connection (not
40
+ # the AION login, which uses TCIQ_AION_CA_CERT above instead). Leave
41
+ # unset for normal verification. Set to false/0/no/off to skip
42
+ # verification entirely -- only for a deployment you already trust on
43
+ # your own network, e.g. a lab server with a self-signed certificate
44
+ # (confirmed a real need 2026-09-22). Set to a CA bundle file path
45
+ # instead if your lab issues certs from an internal CA.
46
+ # TCIQ_VERIFY_SSL=