presolv 0.1.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 (50) hide show
  1. presolv-0.1.0/.github/workflows/ci.yml +23 -0
  2. presolv-0.1.0/.github/workflows/wheels.yml +14 -0
  3. presolv-0.1.0/.gitignore +6 -0
  4. presolv-0.1.0/Cargo.lock +1494 -0
  5. presolv-0.1.0/Cargo.toml +28 -0
  6. presolv-0.1.0/LICENSE-APACHE +202 -0
  7. presolv-0.1.0/LICENSE-MIT +21 -0
  8. presolv-0.1.0/PKG-INFO +134 -0
  9. presolv-0.1.0/README.md +118 -0
  10. presolv-0.1.0/dist/presolv-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl +0 -0
  11. presolv-0.1.0/docs/superpowers/plans/2026-10-03-presolv-v1.md +4068 -0
  12. presolv-0.1.0/examples/_rabbitmq_common.py +22 -0
  13. presolv-0.1.0/examples/load_test.py +73 -0
  14. presolv-0.1.0/examples/rabbitmq_publish.py +55 -0
  15. presolv-0.1.0/examples/rabbitmq_resolve.py +78 -0
  16. presolv-0.1.0/examples/throughput_vs_concurrency.png +0 -0
  17. presolv-0.1.0/pyproject.toml +37 -0
  18. presolv-0.1.0/python/presolv/__init__.py +17 -0
  19. presolv-0.1.0/python/presolv/_convert.py +68 -0
  20. presolv-0.1.0/python/presolv/_presolv.pyi +30 -0
  21. presolv-0.1.0/python/presolv/errors.py +56 -0
  22. presolv-0.1.0/python/presolv/query.py +53 -0
  23. presolv-0.1.0/python/presolv/resolver.py +228 -0
  24. presolv-0.1.0/python/presolv/result.py +18 -0
  25. presolv-0.1.0/python/tests/conftest.py +194 -0
  26. presolv-0.1.0/python/tests/test_behavior.py +254 -0
  27. presolv-0.1.0/python/tests/test_convert.py +75 -0
  28. presolv-0.1.0/python/tests/test_errors.py +37 -0
  29. presolv-0.1.0/python/tests/test_native.py +100 -0
  30. presolv-0.1.0/python/tests/test_query.py +72 -0
  31. presolv-0.1.0/python/tests/test_resolver.py +190 -0
  32. presolv-0.1.0/python/tests/test_smoke.py +4 -0
  33. presolv-0.1.0/python/tests/test_throughput.py +35 -0
  34. presolv-0.1.0/spec.md +467 -0
  35. presolv-0.1.0/src/demux.rs +162 -0
  36. presolv-0.1.0/src/error.rs +48 -0
  37. presolv-0.1.0/src/health.rs +128 -0
  38. presolv-0.1.0/src/lib.rs +13 -0
  39. presolv-0.1.0/src/pool.rs +129 -0
  40. presolv-0.1.0/src/python.rs +234 -0
  41. presolv-0.1.0/src/query.rs +42 -0
  42. presolv-0.1.0/src/rate_limiter.rs +114 -0
  43. presolv-0.1.0/src/resolver.rs +181 -0
  44. presolv-0.1.0/src/system.rs +26 -0
  45. presolv-0.1.0/src/transport.rs +213 -0
  46. presolv-0.1.0/src/wire.rs +40 -0
  47. presolv-0.1.0/tests/common/mod.rs +176 -0
  48. presolv-0.1.0/tests/engine.rs +269 -0
  49. presolv-0.1.0/tests/pool.rs +117 -0
  50. presolv-0.1.0/tests/transport.rs +119 -0
@@ -0,0 +1,23 @@
1
+ name: ci
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ matrix:
7
+ os: [ubuntu-latest, macos-latest, windows-latest]
8
+ runs-on: ${{ matrix.os }}
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: dtolnay/rust-toolchain@stable
12
+ with: { components: "clippy, rustfmt" }
13
+ - uses: actions/setup-python@v5
14
+ with: { python-version: "3.12" }
15
+ - run: cargo fmt --check
16
+ - run: cargo clippy --all-targets -- -D warnings
17
+ - if: matrix.os == 'ubuntu-latest'
18
+ run: cargo clippy --features python --all-targets -- -D warnings
19
+ - run: cargo test
20
+ - run: pip install maturin pytest dnspython
21
+ - run: maturin build --out dist && pip install --no-index --find-links dist presolv
22
+ shell: bash
23
+ - run: pytest python/tests -q
@@ -0,0 +1,14 @@
1
+ name: wheels
2
+ on:
3
+ push: { tags: ["v*"] }
4
+ jobs:
5
+ build:
6
+ strategy:
7
+ matrix:
8
+ os: [ubuntu-latest, macos-latest, windows-latest]
9
+ runs-on: ${{ matrix.os }}
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: pypa/cibuildwheel@v2
13
+ - uses: actions/upload-artifact@v4
14
+ with: { name: wheels-${{ matrix.os }}, path: wheelhouse/*.whl }
@@ -0,0 +1,6 @@
1
+ /target
2
+ .venv/
3
+ __pycache__/
4
+ *.so
5
+ *.pyd
6
+ .pytest_cache/