-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from NTIA/WebRelayAndStatus
Separate WebRelay class and provide status
- Loading branch information
Showing
26 changed files
with
1,055 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
default: true | ||
MD013: | ||
line_length: 88 | ||
MD033: | ||
allowed_elements: | ||
- "figcaption" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
default_language_version: | ||
python: python3.7 | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-ast | ||
types: [file, python] | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
types: [file, python] | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
types: [file, yaml] | ||
- id: debug-statements | ||
types: [file, python] | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.34.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py3-plus"] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
types: [file, python] | ||
args: ["--profile", "black", "--filter-files", "--gitignore"] | ||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
types: [file, python] | ||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.31.1 | ||
hooks: | ||
- id: markdownlint | ||
types: [file, markdown] | ||
exclude: GitHubRepoPublicReleaseApproval.md|LICENSE.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
{ | ||
"name": "preselector", | ||
"base_url" : "http://192.168.1.2/state.xml", | ||
"noise_diode_on" : "1State=1,2State=1,3State=0,4State=0", | ||
"noise_diode_off" : "1State=1,2State=0,3State=0,4State=0", | ||
"antenna" : "1State=0,2State=0,3State=0,4State=0" | ||
"control_states": { | ||
"noise_diode_on" : "1State=1,2State=1,3State=0,4State=0", | ||
"noise_diode_off" : "1State=1,2State=0,3State=0,4State=0", | ||
"antenna" : "1State=0,2State=0,3State=0,4State=0"}, | ||
"status_states":{ | ||
"noise diode powered" : "relay2=1", | ||
"antenna path enabled": "relay1=0", | ||
"noise diode path enabled": "relay1=1" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,61 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"requests>=2.25.1" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "its-preselector" | ||
dynamic = ["version"] | ||
description = "A package to control the ITS web relay-based preselector" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = { file = "LICENSE.md" } | ||
|
||
authors = [ | ||
{ name = "The Institute for Telecommunication Sciences" }, | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
maintainers = [ | ||
{ name = "Doug Boulware", email = "dboulware@ntia.gov" }, | ||
] | ||
|
||
keywords = [ | ||
"preselector", "SDR", "NTIA", "web relay", "API", | ||
"radio", "NTIA", "ITS", "telecommunications", "spectrum", | ||
] | ||
|
||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Telecommunications Industry", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
|
||
dependencies = [ | ||
"requests>=2.25.1", | ||
"defusedxml>=0.7.1" | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"hatchling>=1.6.0,<2.0", | ||
"pre-commit>=2.20.0", | ||
"pytest>=7.1.2", | ||
"pytest-cov>=3.0.0", | ||
"twine>=4.0.1,<5.0" | ||
] | ||
|
||
[project.urls] | ||
"Repository" = "https://github.com/NTIA/Preselector" | ||
"Bug Tracker" = "https://github.com/NTIA/Preselector/issues" | ||
"NTIA GitHub" = "https://github.com/NTIA" | ||
"ITS Website" = "https://its.ntia.gov" | ||
|
||
[tool.hatch.version] | ||
path = "src/its_preselector/__init__.py" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.