uhttp-client 2.2.0__tar.gz → 2.3.0__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 (40) hide show
  1. uhttp_client-2.3.0/.github/workflows/micropython.yml +39 -0
  2. uhttp_client-2.3.0/.github/workflows/publish.yml +38 -0
  3. uhttp_client-2.3.0/.github/workflows/tests.yml +33 -0
  4. uhttp_client-2.3.0/.gitignore +10 -0
  5. uhttp_client-2.3.0/PKG-INFO +980 -0
  6. uhttp_client-2.3.0/README.md +963 -0
  7. uhttp_client-2.3.0/examples/client_async.py +143 -0
  8. uhttp_client-2.3.0/examples/client_basic.py +117 -0
  9. uhttp_client-2.3.0/examples/client_https.py +74 -0
  10. uhttp_client-2.3.0/examples/client_stream.py +126 -0
  11. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/pyproject.toml +10 -4
  12. uhttp_client-2.3.0/tests/__init__.py +0 -0
  13. uhttp_client-2.3.0/tests/test_100_continue.py +245 -0
  14. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_async.py +3 -1
  15. uhttp_client-2.3.0/tests/test_body_framing.py +135 -0
  16. uhttp_client-2.3.0/tests/test_cli.py +253 -0
  17. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_errors.py +4 -5
  18. uhttp_client-2.3.0/tests/test_event_mode.py +400 -0
  19. uhttp_client-2.3.0/tests/test_integration.py +536 -0
  20. uhttp_client-2.3.0/tests/test_mpy_integration.py +418 -0
  21. uhttp_client-2.3.0/tests/test_nonblocking_connect.py +414 -0
  22. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_unit.py +128 -0
  23. uhttp_client-2.3.0/uhttp/cli.py +277 -0
  24. uhttp_client-2.3.0/uhttp/client.py +1708 -0
  25. uhttp_client-2.3.0/uhttp_client.egg-info/PKG-INFO +980 -0
  26. uhttp_client-2.3.0/uhttp_client.egg-info/SOURCES.txt +33 -0
  27. uhttp_client-2.3.0/uhttp_client.egg-info/entry_points.txt +2 -0
  28. uhttp_client-2.2.0/PKG-INFO +0 -615
  29. uhttp_client-2.2.0/README.md +0 -598
  30. uhttp_client-2.2.0/uhttp/client.py +0 -847
  31. uhttp_client-2.2.0/uhttp_client.egg-info/PKG-INFO +0 -615
  32. uhttp_client-2.2.0/uhttp_client.egg-info/SOURCES.txt +0 -15
  33. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/LICENSE +0 -0
  34. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/setup.cfg +0 -0
  35. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_auth.py +0 -0
  36. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_basic.py +0 -0
  37. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_cookies.py +0 -0
  38. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/tests/test_keepalive.py +0 -0
  39. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/uhttp_client.egg-info/dependency_links.txt +0 -0
  40. {uhttp_client-2.2.0 → uhttp_client-2.3.0}/uhttp_client.egg-info/top_level.txt +0 -0
@@ -0,0 +1,39 @@
1
+ name: MicroPython Integration
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ unit-tests:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-python@v5
14
+ with:
15
+ python-version: '3.13'
16
+ - run: pip install -e .
17
+ - run: pip install uhttp-server
18
+ - run: python -m unittest discover tests/ -v
19
+
20
+ micropython:
21
+ runs-on: [self-hosted, Linux]
22
+ needs: unit-tests
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ device: [ESP32]
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+
30
+ - name: Install package
31
+ run: $HOME/actions-runner/.venv/bin/pip install -e .
32
+
33
+ - name: MicroPython tests (${{ matrix.device }})
34
+ run: |
35
+ export PATH="$HOME/actions-runner/.venv/bin:$PATH"
36
+ export MPY_TEST_PORT="$(cat $HOME/actions-runner/.config/mpytool/${{ matrix.device }})"
37
+ export MPY_WIFI_SSID="$(jq -r .ssid $HOME/actions-runner/.config/uhttp/wifi.json)"
38
+ export MPY_WIFI_PASSWORD="$(jq -r .password $HOME/actions-runner/.config/uhttp/wifi.json)"
39
+ python -m unittest tests.test_mpy_integration -v
@@ -0,0 +1,38 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.14"
21
+
22
+ - name: Install build dependencies
23
+ run: pip install build
24
+
25
+ - name: Install package
26
+ run: pip install .
27
+
28
+ - name: Install test dependencies
29
+ run: pip install uhttp-server
30
+
31
+ - name: Run unit tests
32
+ run: python -m unittest discover -v tests/
33
+
34
+ - name: Build package
35
+ run: python -m build
36
+
37
+ - name: Publish to PyPI
38
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,33 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ max-parallel: 1
14
+ matrix:
15
+ os: [ubuntu-latest, windows-latest]
16
+ python-version: ["3.10", "3.14"]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Install package
27
+ run: pip install .
28
+
29
+ - name: Install test dependencies
30
+ run: pip install uhttp-server
31
+
32
+ - name: Run unit tests
33
+ run: python -m unittest discover -v tests/
@@ -0,0 +1,10 @@
1
+ *.egg-info
2
+ __pycache__
3
+ *.pyc
4
+ .*
5
+ !.gitignore
6
+ !.github
7
+ !.mpyproject
8
+ *.pem
9
+ *.md
10
+ !README*.md