edq-utils 0.0.4__tar.gz → 0.0.6__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 edq-utils might be problematic. Click here for more details.

Files changed (109) hide show
  1. edq_utils-0.0.6/.github/workflows/main.yml +95 -0
  2. edq_utils-0.0.6/.gitignore +33 -0
  3. edq_utils-0.0.6/.mypy.ini +12 -0
  4. edq_utils-0.0.6/.pylintrc +664 -0
  5. edq_utils-0.0.6/PKG-INFO +156 -0
  6. edq_utils-0.0.6/README.md +110 -0
  7. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/__init__.py +1 -1
  8. edq_utils-0.0.6/edq/cli/config/__init__.py +3 -0
  9. edq_utils-0.0.6/edq/cli/config/list.py +69 -0
  10. edq_utils-0.0.6/edq/cli/http/__init__.py +3 -0
  11. edq_utils-0.0.6/edq/cli/http/exchange-server.py +71 -0
  12. edq_utils-0.0.6/edq/cli/http/send-exchange.py +45 -0
  13. edq_utils-0.0.6/edq/cli/http/verify-exchanges.py +38 -0
  14. edq_utils-0.0.6/edq/cli/testing/__init__.py +3 -0
  15. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/cli/testing/cli-test.py +12 -5
  16. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/cli/version.py +2 -1
  17. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/core/argparser.py +28 -3
  18. edq_utils-0.0.6/edq/core/config.py +268 -0
  19. edq_utils-0.0.6/edq/core/config_test.py +1038 -0
  20. edq_utils-0.0.6/edq/procedure/verify_exchanges.py +85 -0
  21. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/testing/asserts.py +0 -1
  22. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/testing/cli.py +107 -29
  23. edq_utils-0.0.6/edq/testing/cli_test.py +15 -0
  24. edq_utils-0.0.6/edq/testing/httpserver.py +553 -0
  25. edq_utils-0.0.6/edq/testing/httpserver_test.py +424 -0
  26. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/testing/run.py +40 -10
  27. edq_utils-0.0.6/edq/testing/testdata/cli/data/configs/empty/edq-config.json +1 -0
  28. edq_utils-0.0.6/edq/testing/testdata/cli/data/configs/simple-1/edq-config.json +4 -0
  29. edq_utils-0.0.6/edq/testing/testdata/cli/data/configs/simple-2/edq-config.json +3 -0
  30. edq_utils-0.0.6/edq/testing/testdata/cli/data/configs/value-number/edq-config.json +3 -0
  31. edq_utils-0.0.6/edq/testing/testdata/cli/tests/config/list/config_list_base.txt +16 -0
  32. edq_utils-0.0.6/edq/testing/testdata/cli/tests/config/list/config_list_config_value_number.txt +10 -0
  33. edq_utils-0.0.6/edq/testing/testdata/cli/tests/config/list/config_list_ignore_config.txt +14 -0
  34. edq_utils-0.0.6/edq/testing/testdata/cli/tests/config/list/config_list_no_config.txt +8 -0
  35. edq_utils-0.0.6/edq/testing/testdata/cli/tests/config/list/config_list_show_origin.txt +13 -0
  36. edq_utils-0.0.6/edq/testing/testdata/cli/tests/config/list/config_list_skip_header.txt +10 -0
  37. edq_utils-0.0.6/edq/testing/testdata/cli/tests/platform_skip.txt +5 -0
  38. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple.httpex.json +5 -0
  39. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_anchor.httpex.json +5 -0
  40. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file.httpex.json +10 -0
  41. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file_binary.httpex.json +10 -0
  42. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file_get_params.httpex.json +14 -0
  43. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file_multiple.httpex.json +13 -0
  44. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file_name.httpex.json +11 -0
  45. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file_post_multiple.httpex.json +13 -0
  46. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_file_post_params.httpex.json +14 -0
  47. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_headers.httpex.json +8 -0
  48. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_jsonresponse_dict.httpex.json +7 -0
  49. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_jsonresponse_list.httpex.json +9 -0
  50. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_params.httpex.json +9 -0
  51. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_post.httpex.json +5 -0
  52. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_post_params.httpex.json +9 -0
  53. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_post_urlparams.httpex.json +5 -0
  54. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/simple_urlparams.httpex.json +5 -0
  55. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/specialcase_listparams_explicit.httpex.json +8 -0
  56. edq_utils-0.0.6/edq/testing/testdata/http/exchanges/specialcase_listparams_url.httpex.json +5 -0
  57. edq_utils-0.0.6/edq/testing/testdata/http/files/tiny.png +0 -0
  58. edq_utils-0.0.6/edq/testing/unittest.py +74 -0
  59. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/dirent.py +2 -0
  60. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/dirent_test.py +43 -32
  61. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/json.py +21 -4
  62. edq_utils-0.0.6/edq/util/net.py +894 -0
  63. edq_utils-0.0.6/edq_utils.egg-info/PKG-INFO +156 -0
  64. edq_utils-0.0.6/edq_utils.egg-info/SOURCES.txt +94 -0
  65. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq_utils.egg-info/requires.txt +1 -0
  66. {edq_utils-0.0.4 → edq_utils-0.0.6}/pyproject.toml +3 -1
  67. {edq_utils-0.0.4 → edq_utils-0.0.6}/requirements-dev.txt +1 -0
  68. edq_utils-0.0.6/scripts/check_all.sh +50 -0
  69. edq_utils-0.0.6/scripts/check_lint.sh +23 -0
  70. edq_utils-0.0.6/scripts/check_python_version.sh +23 -0
  71. edq_utils-0.0.6/scripts/check_strict_types.sh +23 -0
  72. edq_utils-0.0.6/scripts/check_types.sh +23 -0
  73. edq_utils-0.0.6/scripts/gen_docs.sh +30 -0
  74. edq_utils-0.0.6/scripts/run_tests.sh +18 -0
  75. edq_utils-0.0.4/PKG-INFO +0 -63
  76. edq_utils-0.0.4/README.md +0 -18
  77. edq_utils-0.0.4/edq/testing/cli_test.py +0 -8
  78. edq_utils-0.0.4/edq/testing/unittest.py +0 -54
  79. edq_utils-0.0.4/edq/util/testdata/dirent-operations/dir_1/b.txt +0 -1
  80. edq_utils-0.0.4/edq/util/testdata/dirent-operations/dir_1/dir_2/c.txt +0 -1
  81. edq_utils-0.0.4/edq/util/testdata/dirent-operations/file_empty +0 -0
  82. edq_utils-0.0.4/edq/util/testdata/dirent-operations/symlink_a.txt +0 -1
  83. edq_utils-0.0.4/edq/util/testdata/dirent-operations/symlink_dir_1/b.txt +0 -1
  84. edq_utils-0.0.4/edq/util/testdata/dirent-operations/symlink_dir_1/dir_2/c.txt +0 -1
  85. edq_utils-0.0.4/edq/util/testdata/dirent-operations/symlink_file_empty +0 -0
  86. edq_utils-0.0.4/edq_utils.egg-info/PKG-INFO +0 -63
  87. edq_utils-0.0.4/edq_utils.egg-info/SOURCES.txt +0 -46
  88. {edq_utils-0.0.4 → edq_utils-0.0.6}/LICENSE +0 -0
  89. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/cli/__init__.py +0 -0
  90. {edq_utils-0.0.4/edq/cli/testing → edq_utils-0.0.6/edq/core}/__init__.py +0 -0
  91. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/core/argparser_test.py +0 -0
  92. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/core/log.py +0 -0
  93. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/core/version.py +0 -0
  94. {edq_utils-0.0.4/edq/core → edq_utils-0.0.6/edq/procedure}/__init__.py +0 -0
  95. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/py.typed +0 -0
  96. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/testing/__init__.py +0 -0
  97. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/testing/testdata/cli/tests/version_base.txt +0 -0
  98. {edq_utils-0.0.4/edq/util/testdata/dirent-operations → edq_utils-0.0.6/edq/testing/testdata/http/files}/a.txt +0 -0
  99. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/__init__.py +0 -0
  100. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/json_test.py +0 -0
  101. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/pyimport.py +0 -0
  102. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/pyimport_test.py +0 -0
  103. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/reflection.py +0 -0
  104. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/time.py +0 -0
  105. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq/util/time_test.py +0 -0
  106. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq_utils.egg-info/dependency_links.txt +0 -0
  107. {edq_utils-0.0.4 → edq_utils-0.0.6}/edq_utils.egg-info/top_level.txt +0 -0
  108. {edq_utils-0.0.4 → edq_utils-0.0.6}/requirements.txt +0 -0
  109. {edq_utils-0.0.4 → edq_utils-0.0.6}/setup.cfg +0 -0
@@ -0,0 +1,95 @@
1
+ name: Main
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ test:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
13
+ os: ['ubuntu-22.04', 'ubuntu-24.04', 'macos-13', 'macos-14', 'macos-15', 'windows-2022', 'windows-2025']
14
+
15
+ runs-on: ${{ matrix.os }}
16
+
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ env:
24
+ PIP_DISABLE_PIP_VERSION_CHECK: 1
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Cache Python Dependencies
29
+ uses: actions/cache@v4
30
+ with:
31
+ path: ${{ env.pythonLocation }}
32
+ key: ${{ runner.os }}-os:${{ matrix.os }}-python:${{ matrix.python-version }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('pyproject.toml') }}
33
+
34
+ - name: Install Dependencies
35
+ shell: bash
36
+ run: pip3 install -r requirements.txt -r requirements-dev.txt
37
+
38
+ - name: Check Python Version Compatibility
39
+ shell: bash
40
+ run: scripts/check_python_version.sh
41
+
42
+ - name: Check Types
43
+ shell: bash
44
+ run: ./scripts/check_types.sh
45
+
46
+ - name: Check Lint
47
+ shell: bash
48
+ run: ./scripts/check_lint.sh
49
+
50
+ - name: Run Tests
51
+ shell: bash
52
+ run: ./scripts/run_tests.sh
53
+
54
+ deploy:
55
+ needs: test
56
+
57
+ strategy:
58
+ matrix:
59
+ python-version: ['3.11']
60
+ os: ['ubuntu-22.04']
61
+
62
+ runs-on: ${{ matrix.os }}
63
+
64
+ steps:
65
+ - name: Checkout
66
+ uses: actions/checkout@v4
67
+
68
+ - name: Set Up Python ${{ matrix.python-version }}
69
+ uses: actions/setup-python@v5
70
+ env:
71
+ PIP_DISABLE_PIP_VERSION_CHECK: 1
72
+ with:
73
+ python-version: ${{ matrix.python-version }}
74
+
75
+ - name: Cache Python Dependencies
76
+ uses: actions/cache@v4
77
+ with:
78
+ path: ${{ env.pythonLocation }}
79
+ key: ${{ runner.os }}-os:${{ matrix.os }}-python:${{ matrix.python-version }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('pyproject.toml') }}
80
+
81
+ - name: Install Python Dependencies
82
+ shell: bash
83
+ run: pip3 install -r requirements.txt -r requirements-dev.txt
84
+
85
+ - name: Generate Documentation
86
+ shell: bash
87
+ run: ./scripts/gen_docs.sh
88
+
89
+ - name: Deploy
90
+ uses: casperdcl/deploy-pypi@10cf4cd83fc885003a8d4f37f93a5a0f0fc2d2f4 # v2.4.1
91
+ with:
92
+ build: --sdist --wheel --outdir dist .
93
+ # Only upload if a tag is pushed (otherwise just build & check).
94
+ upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
95
+ password: ${{ secrets.PYPI_TOKEN }}
@@ -0,0 +1,33 @@
1
+ # Editor Files
2
+ .DS_Store
3
+ *.swp
4
+
5
+ # Language Dirents
6
+ .ipynb_checkpoints
7
+ node_modules/
8
+ venv/
9
+ *.pyc
10
+ __pycache__/
11
+
12
+ # Common Temp Dirents
13
+ old/
14
+ temp/
15
+ out*/
16
+ /test*
17
+ test/
18
+ /test*.*
19
+
20
+ # Build
21
+ /bin/
22
+ /build/
23
+ /dist/
24
+ *.egg-info
25
+ /html/
26
+ /.mypy_*/
27
+
28
+ # Project-Specific
29
+ *.gif
30
+ *.gz
31
+ /._site/
32
+ *.zip
33
+ *.xcf
@@ -0,0 +1,12 @@
1
+ [mypy]
2
+
3
+ exclude = _test\.py$
4
+
5
+ strict = false
6
+ disable_error_code = type-arg
7
+
8
+ [mypy-requests.*]
9
+ ignore_missing_imports = True
10
+
11
+ [mypy-requests_toolbelt.*]
12
+ ignore_missing_imports = True