dnp3py 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 (127) hide show
  1. dnp3py-0.1.0/.github/dependabot.yml +38 -0
  2. dnp3py-0.1.0/.github/workflows/ci.yml +130 -0
  3. dnp3py-0.1.0/.github/workflows/codeql.yml +34 -0
  4. dnp3py-0.1.0/.github/workflows/release.yml +110 -0
  5. dnp3py-0.1.0/.gitignore +225 -0
  6. dnp3py-0.1.0/.pre-commit-config.yaml +33 -0
  7. dnp3py-0.1.0/LICENSE +21 -0
  8. dnp3py-0.1.0/PKG-INFO +187 -0
  9. dnp3py-0.1.0/README.md +166 -0
  10. dnp3py-0.1.0/noxfile.py +43 -0
  11. dnp3py-0.1.0/pixi.toml +58 -0
  12. dnp3py-0.1.0/pyproject.toml +88 -0
  13. dnp3py-0.1.0/src/dnp3/__init__.py +3 -0
  14. dnp3py-0.1.0/src/dnp3/application/__init__.py +97 -0
  15. dnp3py-0.1.0/src/dnp3/application/builder.py +531 -0
  16. dnp3py-0.1.0/src/dnp3/application/fragment.py +189 -0
  17. dnp3py-0.1.0/src/dnp3/application/header.py +330 -0
  18. dnp3py-0.1.0/src/dnp3/application/parser.py +326 -0
  19. dnp3py-0.1.0/src/dnp3/application/qualifiers.py +384 -0
  20. dnp3py-0.1.0/src/dnp3/core/__init__.py +76 -0
  21. dnp3py-0.1.0/src/dnp3/core/crc.py +77 -0
  22. dnp3py-0.1.0/src/dnp3/core/enums.py +175 -0
  23. dnp3py-0.1.0/src/dnp3/core/exceptions.py +41 -0
  24. dnp3py-0.1.0/src/dnp3/core/flags.py +137 -0
  25. dnp3py-0.1.0/src/dnp3/core/timestamp.py +86 -0
  26. dnp3py-0.1.0/src/dnp3/core/types.py +31 -0
  27. dnp3py-0.1.0/src/dnp3/database/__init__.py +57 -0
  28. dnp3py-0.1.0/src/dnp3/database/database.py +640 -0
  29. dnp3py-0.1.0/src/dnp3/database/event_buffer.py +459 -0
  30. dnp3py-0.1.0/src/dnp3/database/point.py +383 -0
  31. dnp3py-0.1.0/src/dnp3/datalink/__init__.py +54 -0
  32. dnp3py-0.1.0/src/dnp3/datalink/builder.py +337 -0
  33. dnp3py-0.1.0/src/dnp3/datalink/control.py +82 -0
  34. dnp3py-0.1.0/src/dnp3/datalink/frame.py +197 -0
  35. dnp3py-0.1.0/src/dnp3/datalink/parser.py +240 -0
  36. dnp3py-0.1.0/src/dnp3/master/__init__.py +51 -0
  37. dnp3py-0.1.0/src/dnp3/master/commands.py +503 -0
  38. dnp3py-0.1.0/src/dnp3/master/config.py +88 -0
  39. dnp3py-0.1.0/src/dnp3/master/handler.py +310 -0
  40. dnp3py-0.1.0/src/dnp3/master/master.py +671 -0
  41. dnp3py-0.1.0/src/dnp3/master/polling.py +327 -0
  42. dnp3py-0.1.0/src/dnp3/master/state.py +286 -0
  43. dnp3py-0.1.0/src/dnp3/objects/__init__.py +138 -0
  44. dnp3py-0.1.0/src/dnp3/objects/analog_input.py +625 -0
  45. dnp3py-0.1.0/src/dnp3/objects/base.py +159 -0
  46. dnp3py-0.1.0/src/dnp3/objects/binary_input.py +212 -0
  47. dnp3py-0.1.0/src/dnp3/objects/binary_output.py +346 -0
  48. dnp3py-0.1.0/src/dnp3/objects/class_data.py +112 -0
  49. dnp3py-0.1.0/src/dnp3/objects/counter.py +580 -0
  50. dnp3py-0.1.0/src/dnp3/objects/registry.py +124 -0
  51. dnp3py-0.1.0/src/dnp3/objects/time.py +204 -0
  52. dnp3py-0.1.0/src/dnp3/outstation/__init__.py +31 -0
  53. dnp3py-0.1.0/src/dnp3/outstation/config.py +93 -0
  54. dnp3py-0.1.0/src/dnp3/outstation/handler.py +316 -0
  55. dnp3py-0.1.0/src/dnp3/outstation/outstation.py +1115 -0
  56. dnp3py-0.1.0/src/dnp3/outstation/state.py +333 -0
  57. dnp3py-0.1.0/src/dnp3/py.typed +0 -0
  58. dnp3py-0.1.0/src/dnp3/transport/__init__.py +35 -0
  59. dnp3py-0.1.0/src/dnp3/transport/reassembler.py +189 -0
  60. dnp3py-0.1.0/src/dnp3/transport/segment.py +216 -0
  61. dnp3py-0.1.0/src/dnp3/transport/segmenter.py +123 -0
  62. dnp3py-0.1.0/src/dnp3/transport_io/__init__.py +56 -0
  63. dnp3py-0.1.0/src/dnp3/transport_io/channel.py +307 -0
  64. dnp3py-0.1.0/src/dnp3/transport_io/simulator.py +443 -0
  65. dnp3py-0.1.0/src/dnp3/transport_io/tcp_client.py +337 -0
  66. dnp3py-0.1.0/src/dnp3/transport_io/tcp_server.py +469 -0
  67. dnp3py-0.1.0/tests/__init__.py +0 -0
  68. dnp3py-0.1.0/tests/conftest.py +9 -0
  69. dnp3py-0.1.0/tests/integration/__init__.py +1 -0
  70. dnp3py-0.1.0/tests/integration/test_commands.py +323 -0
  71. dnp3py-0.1.0/tests/integration/test_outstation_master.py +297 -0
  72. dnp3py-0.1.0/tests/integration/test_polling.py +334 -0
  73. dnp3py-0.1.0/tests/integration/test_tcp_server.py +879 -0
  74. dnp3py-0.1.0/tests/integration/test_unsolicited.py +363 -0
  75. dnp3py-0.1.0/tests/unit/__init__.py +0 -0
  76. dnp3py-0.1.0/tests/unit/application/__init__.py +1 -0
  77. dnp3py-0.1.0/tests/unit/application/test_builder.py +333 -0
  78. dnp3py-0.1.0/tests/unit/application/test_fragment.py +399 -0
  79. dnp3py-0.1.0/tests/unit/application/test_header.py +392 -0
  80. dnp3py-0.1.0/tests/unit/application/test_parser.py +352 -0
  81. dnp3py-0.1.0/tests/unit/application/test_qualifiers.py +549 -0
  82. dnp3py-0.1.0/tests/unit/core/__init__.py +0 -0
  83. dnp3py-0.1.0/tests/unit/core/test_crc.py +106 -0
  84. dnp3py-0.1.0/tests/unit/core/test_enums.py +120 -0
  85. dnp3py-0.1.0/tests/unit/core/test_exceptions.py +90 -0
  86. dnp3py-0.1.0/tests/unit/core/test_flags.py +146 -0
  87. dnp3py-0.1.0/tests/unit/core/test_timestamp.py +92 -0
  88. dnp3py-0.1.0/tests/unit/core/test_types.py +80 -0
  89. dnp3py-0.1.0/tests/unit/database/__init__.py +1 -0
  90. dnp3py-0.1.0/tests/unit/database/test_database.py +571 -0
  91. dnp3py-0.1.0/tests/unit/database/test_event_buffer.py +713 -0
  92. dnp3py-0.1.0/tests/unit/database/test_point.py +415 -0
  93. dnp3py-0.1.0/tests/unit/datalink/__init__.py +0 -0
  94. dnp3py-0.1.0/tests/unit/datalink/test_builder.py +384 -0
  95. dnp3py-0.1.0/tests/unit/datalink/test_control.py +196 -0
  96. dnp3py-0.1.0/tests/unit/datalink/test_frame.py +290 -0
  97. dnp3py-0.1.0/tests/unit/datalink/test_parser.py +223 -0
  98. dnp3py-0.1.0/tests/unit/master/__init__.py +1 -0
  99. dnp3py-0.1.0/tests/unit/master/test_commands.py +549 -0
  100. dnp3py-0.1.0/tests/unit/master/test_config.py +216 -0
  101. dnp3py-0.1.0/tests/unit/master/test_handler.py +574 -0
  102. dnp3py-0.1.0/tests/unit/master/test_master.py +590 -0
  103. dnp3py-0.1.0/tests/unit/master/test_polling.py +563 -0
  104. dnp3py-0.1.0/tests/unit/master/test_state.py +497 -0
  105. dnp3py-0.1.0/tests/unit/objects/__init__.py +1 -0
  106. dnp3py-0.1.0/tests/unit/objects/test_analog_input.py +657 -0
  107. dnp3py-0.1.0/tests/unit/objects/test_base.py +275 -0
  108. dnp3py-0.1.0/tests/unit/objects/test_binary_input.py +373 -0
  109. dnp3py-0.1.0/tests/unit/objects/test_binary_output.py +550 -0
  110. dnp3py-0.1.0/tests/unit/objects/test_class_data.py +165 -0
  111. dnp3py-0.1.0/tests/unit/objects/test_counter.py +518 -0
  112. dnp3py-0.1.0/tests/unit/objects/test_registry.py +297 -0
  113. dnp3py-0.1.0/tests/unit/objects/test_time.py +297 -0
  114. dnp3py-0.1.0/tests/unit/outstation/__init__.py +1 -0
  115. dnp3py-0.1.0/tests/unit/outstation/test_config.py +154 -0
  116. dnp3py-0.1.0/tests/unit/outstation/test_handler.py +283 -0
  117. dnp3py-0.1.0/tests/unit/outstation/test_outstation.py +477 -0
  118. dnp3py-0.1.0/tests/unit/outstation/test_state.py +403 -0
  119. dnp3py-0.1.0/tests/unit/test_coverage_gaps.py +3796 -0
  120. dnp3py-0.1.0/tests/unit/transport/__init__.py +1 -0
  121. dnp3py-0.1.0/tests/unit/transport/test_reassembler.py +308 -0
  122. dnp3py-0.1.0/tests/unit/transport/test_segment.py +305 -0
  123. dnp3py-0.1.0/tests/unit/transport/test_segmenter.py +222 -0
  124. dnp3py-0.1.0/tests/unit/transport_io/__init__.py +1 -0
  125. dnp3py-0.1.0/tests/unit/transport_io/test_simulator.py +538 -0
  126. dnp3py-0.1.0/tests/unit/transport_io/test_tcp_client.py +526 -0
  127. dnp3py-0.1.0/tests/unit/transport_io/test_tcp_server.py +452 -0
@@ -0,0 +1,38 @@
1
+ version: 2
2
+ updates:
3
+ # Python dependencies
4
+ - package-ecosystem: "pip"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "weekly"
8
+ day: "monday"
9
+ open-pull-requests-limit: 10
10
+ commit-message:
11
+ prefix: "deps"
12
+ labels:
13
+ - "dependencies"
14
+ - "python"
15
+ groups:
16
+ dev-dependencies:
17
+ patterns:
18
+ - "pytest*"
19
+ - "hypothesis"
20
+ - "mypy"
21
+ - "ruff"
22
+
23
+ # GitHub Actions
24
+ - package-ecosystem: "github-actions"
25
+ directory: "/"
26
+ schedule:
27
+ interval: "weekly"
28
+ day: "monday"
29
+ open-pull-requests-limit: 5
30
+ commit-message:
31
+ prefix: "ci"
32
+ labels:
33
+ - "dependencies"
34
+ - "github-actions"
35
+ groups:
36
+ actions:
37
+ patterns:
38
+ - "*"
@@ -0,0 +1,130 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ workflow_dispatch:
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ test:
16
+ name: Test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
17
+ runs-on: ${{ matrix.os }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os: [ubuntu-latest, macos-latest]
22
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
23
+
24
+ steps:
25
+ - uses: actions/checkout@v6
26
+
27
+ - name: Set up Python ${{ matrix.python-version }}
28
+ uses: actions/setup-python@v6
29
+ with:
30
+ python-version: ${{ matrix.python-version }}
31
+
32
+ - name: Install dependencies
33
+ run: |
34
+ python -m pip install --upgrade pip
35
+ pip install -e ".[dev]" || pip install -e .
36
+ pip install pytest pytest-asyncio pytest-cov hypothesis
37
+
38
+ - name: Run tests
39
+ run: pytest tests/ -v --tb=short
40
+
41
+ - name: Run tests with coverage (Ubuntu, Python 3.14 only)
42
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
43
+ run: pytest tests/ --cov=src/dnp3 --cov-report=xml --cov-report=term-missing
44
+
45
+ - name: Upload coverage to Codecov
46
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
47
+ uses: codecov/codecov-action@v5
48
+ with:
49
+ files: ./coverage.xml
50
+ fail_ci_if_error: false
51
+ env:
52
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
53
+
54
+ quality:
55
+ name: Code Quality
56
+ runs-on: ubuntu-latest
57
+
58
+ steps:
59
+ - uses: actions/checkout@v6
60
+
61
+ - name: Set up Python
62
+ uses: actions/setup-python@v6
63
+ with:
64
+ python-version: "3.14"
65
+
66
+ - name: Install tools
67
+ run: |
68
+ python -m pip install --upgrade pip
69
+ pip install ruff mypy
70
+
71
+ - name: Check formatting
72
+ run: ruff format --check src/ tests/
73
+
74
+ - name: Lint
75
+ run: ruff check src/ tests/
76
+
77
+ - name: Type check
78
+ run: mypy src/
79
+
80
+ build:
81
+ name: Build Package
82
+ runs-on: ubuntu-latest
83
+
84
+ steps:
85
+ - uses: actions/checkout@v6
86
+
87
+ - name: Set up Python
88
+ uses: actions/setup-python@v6
89
+ with:
90
+ python-version: "3.14"
91
+
92
+ - name: Install build tools
93
+ run: |
94
+ python -m pip install --upgrade pip
95
+ pip install build twine
96
+
97
+ - name: Build package
98
+ run: python -m build
99
+
100
+ - name: Check package
101
+ run: twine check dist/*
102
+
103
+ - name: Upload build artifacts
104
+ uses: actions/upload-artifact@v6
105
+ with:
106
+ name: dist
107
+ path: dist/
108
+
109
+ # Final check for branch protection - requires all jobs to pass
110
+ check:
111
+ name: CI Check
112
+ if: always()
113
+ needs: [test, quality, build]
114
+ runs-on: ubuntu-latest
115
+ steps:
116
+ - name: Verify all jobs passed
117
+ run: |
118
+ if [ "${{ needs.test.result }}" != "success" ]; then
119
+ echo "Test job failed"
120
+ exit 1
121
+ fi
122
+ if [ "${{ needs.quality.result }}" != "success" ]; then
123
+ echo "Quality job failed"
124
+ exit 1
125
+ fi
126
+ if [ "${{ needs.build.result }}" != "success" ]; then
127
+ echo "Build job failed"
128
+ exit 1
129
+ fi
130
+ echo "All checks passed!"
@@ -0,0 +1,34 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ schedule:
9
+ # Run weekly on Sundays at midnight UTC
10
+ - cron: "0 0 * * 0"
11
+
12
+ permissions:
13
+ security-events: write
14
+ contents: read
15
+
16
+ jobs:
17
+ analyze:
18
+ name: Analyze
19
+ runs-on: ubuntu-latest
20
+
21
+ steps:
22
+ - name: Checkout repository
23
+ uses: actions/checkout@v6
24
+
25
+ - name: Initialize CodeQL
26
+ uses: github/codeql-action/init@v4
27
+ with:
28
+ languages: python
29
+ queries: +security-extended
30
+
31
+ - name: Perform CodeQL Analysis
32
+ uses: github/codeql-action/analyze@v4
33
+ with:
34
+ category: "/language:python"
@@ -0,0 +1,110 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+
13
+ jobs:
14
+ build:
15
+ name: Build Package
16
+ runs-on: ubuntu-latest
17
+
18
+ steps:
19
+ - uses: actions/checkout@v6
20
+
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v6
23
+ with:
24
+ python-version: "3.14"
25
+
26
+ - name: Install build tools
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install build
30
+
31
+ - name: Build package
32
+ run: python -m build
33
+
34
+ - name: Upload build artifacts
35
+ uses: actions/upload-artifact@v6
36
+ with:
37
+ name: dist
38
+ path: dist/
39
+
40
+ test:
41
+ name: Test Built Package
42
+ needs: build
43
+ runs-on: ubuntu-latest
44
+ strategy:
45
+ matrix:
46
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
47
+
48
+ steps:
49
+ - uses: actions/checkout@v6
50
+
51
+ - name: Set up Python ${{ matrix.python-version }}
52
+ uses: actions/setup-python@v6
53
+ with:
54
+ python-version: ${{ matrix.python-version }}
55
+
56
+ - name: Download build artifacts
57
+ uses: actions/download-artifact@v7
58
+ with:
59
+ name: dist
60
+ path: dist/
61
+
62
+ - name: Install package from wheel
63
+ run: |
64
+ pip install dist/*.whl
65
+ pip install pytest pytest-asyncio hypothesis
66
+
67
+ - name: Run tests against installed package
68
+ run: pytest tests/ -v --tb=short
69
+
70
+ publish-pypi:
71
+ name: Publish to PyPI
72
+ needs: test
73
+ runs-on: ubuntu-latest
74
+ environment:
75
+ name: pypi
76
+ url: https://pypi.org/p/dnp3py
77
+
78
+ steps:
79
+ - name: Download build artifacts
80
+ uses: actions/download-artifact@v7
81
+ with:
82
+ name: dist
83
+ path: dist/
84
+
85
+ - name: Publish to PyPI
86
+ uses: pypa/gh-action-pypi-publish@release/v1
87
+
88
+ github-release:
89
+ name: Create GitHub Release
90
+ needs: publish-pypi
91
+ runs-on: ubuntu-latest
92
+ permissions:
93
+ contents: write
94
+
95
+ steps:
96
+ - uses: actions/checkout@v6
97
+
98
+ - name: Download build artifacts
99
+ uses: actions/download-artifact@v7
100
+ with:
101
+ name: dist
102
+ path: dist/
103
+
104
+ - name: Create GitHub Release
105
+ uses: softprops/action-gh-release@v2
106
+ with:
107
+ files: dist/*
108
+ generate_release_notes: true
109
+ draft: false
110
+ prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
@@ -0,0 +1,225 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ .vscode/
203
+
204
+ # Ruff stuff:
205
+ .ruff_cache/
206
+
207
+ # PyPI configuration file
208
+ .pypirc
209
+
210
+ # Marimo
211
+ marimo/_static/
212
+ marimo/_lsp/
213
+ __marimo__/
214
+
215
+ # Streamlit
216
+ .streamlit/secrets.toml
217
+
218
+ # Editor swap files
219
+ *.swp
220
+ *.swo
221
+ *~
222
+
223
+ # OS files
224
+ .DS_Store
225
+ Thumbs.db
@@ -0,0 +1,33 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: check-toml
9
+ - id: check-added-large-files
10
+ - id: check-merge-conflict
11
+ - id: debug-statements
12
+
13
+ - repo: https://github.com/astral-sh/ruff-pre-commit
14
+ rev: v0.8.4
15
+ hooks:
16
+ - id: ruff
17
+ args: [--fix]
18
+ - id: ruff-format
19
+
20
+ - repo: https://github.com/pre-commit/mirrors-mypy
21
+ rev: v1.14.0
22
+ hooks:
23
+ - id: mypy
24
+ additional_dependencies: []
25
+ args: [--strict]
26
+ files: ^src/
27
+
28
+ - repo: https://github.com/PyCQA/bandit
29
+ rev: 1.8.0
30
+ hooks:
31
+ - id: bandit
32
+ args: [-c, pyproject.toml]
33
+ additional_dependencies: ["bandit[toml]"]
dnp3py-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.