mirror of
https://github.com/nqrduck/nqrduck-pulseprogrammer.git
synced 2024-11-08 10:50:02 +00:00
Initial commit.
This commit is contained in:
commit
cf0f70ac18
7 changed files with 102 additions and 0 deletions
22
.gitignore
vendored
Normal file
22
.gitignore
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*$py.class
|
||||
|
||||
# Distribution / packaging
|
||||
dist/
|
||||
build/
|
||||
*.egg-info/
|
||||
|
||||
# IDE-specific files
|
||||
.idea/
|
||||
.vscode/
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
||||
# Virtual environments
|
||||
venv/
|
||||
|
||||
# Other
|
||||
*.DS_Store
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Julia Pfitzer
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
30
pyproject.toml
Normal file
30
pyproject.toml
Normal file
|
@ -0,0 +1,30 @@
|
|||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "nqrduck-pulseprogrammer"
|
||||
version = "0.0.1"
|
||||
authors = [
|
||||
{ name="Julia Pfitzer", email="git@jupfi.me" },
|
||||
]
|
||||
|
||||
description = "A module for the NQRduck program (a simple python script™) to do pulse programming."
|
||||
readme = "README.md"
|
||||
license = { file="LICENSE" }
|
||||
requires-python = ">=3.8"
|
||||
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
"matplotlib",
|
||||
"pyqt5",
|
||||
"NQRduck",
|
||||
]
|
||||
|
||||
[project.entry-points."nqrduck"]
|
||||
"nqrduck-pulseprogrammer" = "nqrduck_pulseprogrammer.pulseprogrammer:PulseProgrammer"
|
8
src/nqrduck_pulseprogrammer/controller.py
Normal file
8
src/nqrduck_pulseprogrammer/controller.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import logging
|
||||
from PyQt5.QtCore import pyqtSlot, pyqtSignal
|
||||
from nqrduck.module.module_controller import ModuleController
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class PulseProgrammerController(ModuleController):
|
||||
pass
|
6
src/nqrduck_pulseprogrammer/model.py
Normal file
6
src/nqrduck_pulseprogrammer/model.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from PyQt5.QtCore import pyqtSignal
|
||||
from nqrduck.module.module_model import ModuleModel
|
||||
|
||||
|
||||
class PulseProgrammerModel(ModuleModel):
|
||||
pass
|
7
src/nqrduck_pulseprogrammer/pulseprogrammer.py
Normal file
7
src/nqrduck_pulseprogrammer/pulseprogrammer.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from PyQt5.QtCore import pyqtSignal, QObject
|
||||
from nqrduck.module.module import Module
|
||||
from .model import PulseProgrammerModel
|
||||
from .view import PulseProgrammerView
|
||||
from .controller import PulseProgrammerController
|
||||
|
||||
PulseProgrammer = Module(PulseProgrammerModel, PulseProgrammerView, PulseProgrammerController)
|
8
src/nqrduck_pulseprogrammer/view.py
Normal file
8
src/nqrduck_pulseprogrammer/view.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import logging
|
||||
from nqrduck.module.module_view import ModuleView
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class PulseProgrammerView(ModuleView):
|
||||
pass
|
Loading…
Reference in a new issue