meshnet 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 (39) hide show
  1. meshnet-0.1.0/.github/workflows/pypi-deploy.yml +45 -0
  2. meshnet-0.1.0/.gitignore +13 -0
  3. meshnet-0.1.0/.python-version +1 -0
  4. meshnet-0.1.0/LICENSE.txt +663 -0
  5. meshnet-0.1.0/PKG-INFO +264 -0
  6. meshnet-0.1.0/README.md +254 -0
  7. meshnet-0.1.0/THREAT_MODEL.md +172 -0
  8. meshnet-0.1.0/example-1.conf +14 -0
  9. meshnet-0.1.0/example-2.conf +13 -0
  10. meshnet-0.1.0/main.py +61 -0
  11. meshnet-0.1.0/meshnet/__init__.py +3 -0
  12. meshnet-0.1.0/meshnet/cli/__init__.py +249 -0
  13. meshnet-0.1.0/meshnet/meshtastic_core/__init__.py +612 -0
  14. meshnet-0.1.0/meshnet/vpn/__init__.py +1 -0
  15. meshnet-0.1.0/meshnet/vpn/config.py +239 -0
  16. meshnet-0.1.0/meshnet/vpn/crypto.py +227 -0
  17. meshnet-0.1.0/meshnet/vpn/daemon.py +463 -0
  18. meshnet-0.1.0/meshnet/vpn/routing.py +78 -0
  19. meshnet-0.1.0/meshnet/vpn/session.py +434 -0
  20. meshnet-0.1.0/meshnet/vpn/tap.py +122 -0
  21. meshnet-0.1.0/meshnet/vpn/transport.py +301 -0
  22. meshnet-0.1.0/pyproject.toml +31 -0
  23. meshnet-0.1.0/tests/__init__.py +0 -0
  24. meshnet-0.1.0/tests/conftest.py +228 -0
  25. meshnet-0.1.0/tests/integration/__init__.py +0 -0
  26. meshnet-0.1.0/tests/integration/test_daemon.py +170 -0
  27. meshnet-0.1.0/tests/integration/test_handshake_transport.py +193 -0
  28. meshnet-0.1.0/tests/regression/__init__.py +0 -0
  29. meshnet-0.1.0/tests/regression/test_security.py +295 -0
  30. meshnet-0.1.0/tests/unit/__init__.py +0 -0
  31. meshnet-0.1.0/tests/unit/test_cli.py +144 -0
  32. meshnet-0.1.0/tests/unit/test_config.py +388 -0
  33. meshnet-0.1.0/tests/unit/test_crypto.py +294 -0
  34. meshnet-0.1.0/tests/unit/test_meshtastic_core.py +405 -0
  35. meshnet-0.1.0/tests/unit/test_routing.py +137 -0
  36. meshnet-0.1.0/tests/unit/test_session.py +380 -0
  37. meshnet-0.1.0/tests/unit/test_tap.py +75 -0
  38. meshnet-0.1.0/tests/unit/test_transport.py +359 -0
  39. meshnet-0.1.0/uv.lock +757 -0
@@ -0,0 +1,45 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+
6
+ name: release
7
+
8
+ jobs:
9
+ test:
10
+ name: Run tests
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.13"
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v4
21
+ - name: Install dependencies
22
+ run: uv sync
23
+ - name: Run tests
24
+ run: uv run pytest tests/ -q
25
+
26
+ pypi-publish:
27
+ name: Upload release to PyPI
28
+ needs: test
29
+ runs-on: ubuntu-latest
30
+ environment: release
31
+ permissions:
32
+ id-token: write
33
+ steps:
34
+ - name: Checkout
35
+ uses: actions/checkout@v4
36
+ - name: Set up Python
37
+ uses: actions/setup-python@v5
38
+ with:
39
+ python-version: "3.13"
40
+ - name: Install uv
41
+ uses: astral-sh/setup-uv@v4
42
+ - name: Build
43
+ run: uv build
44
+ - name: Publish package distributions to PyPI
45
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,13 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+ .agents
12
+ *.conf
13
+ !example*.conf
@@ -0,0 +1 @@
1
+ 3.13