Skip to content

Commit

Permalink
chore: Remove httpx dependency
Browse files Browse the repository at this point in the history
HTTP powersupplies are not required any more with
#613.
  • Loading branch information
rumpelsepp committed Nov 19, 2024
1 parent b96642d commit 80c157e
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 217 deletions.
15 changes: 0 additions & 15 deletions docs/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,3 @@ Example:
tcp://192.0.2.5:5025?product_id=hmc804
```

### HTTP

This is a client to the [opennetzteil API](https://github.com/rumpelsepp/opennetzteil/blob/master/man/netzteil-http.7.adoc) which can expose power supplies over HTTP.

product_id
: `http`

scheme
: `http` or `https`

HOST
: IP address

PORT
: TCP port, most likely `8000` or the http defaults `80`, or `443`
92 changes: 2 additions & 90 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ msgspec = ">=0.11,<0.19"
pydantic = "^2.0"
platformdirs = ">=2.6,<5.0"
psutil = ">=5.9.4,<7.0.0"
httpx = ">=0.26,<0.28"
more-itertools = "^10.3.0"
pydantic-argparse = { path = "vendor/pydantic-argparse", develop = true }

Expand Down
3 changes: 0 additions & 3 deletions src/gallia/transports/schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

TCP = "tcp"
TCP_LINES = "tcp-lines"
HTTP = "http"
DOIP = "doip"


Expand All @@ -17,7 +16,6 @@
class TransportScheme(StrEnum):
TCP = TCP
TCP_LINES = TCP_LINES
HTTP = HTTP
DOIP = DOIP
HSFZ = "hsfz"
UNIX = "unix"
Expand All @@ -33,7 +31,6 @@ class TransportScheme(StrEnum):
class TransportScheme(StrEnum):
TCP = TCP
TCP_LINES = TCP_LINES
HTTP = HTTP
DOIP = DOIP

FLEXRAY_RAW = "fr-raw"
Expand Down
3 changes: 1 addition & 2 deletions src/opennetzteil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

from opennetzteil.devices.http.client import HTTPNetzteil
from opennetzteil.devices.rs.hmc804 import HMC804
from opennetzteil.netzteil import BaseNetzteil

netzteile: list[type[BaseNetzteil]] = [HTTPNetzteil, HMC804]
netzteile: list[type[BaseNetzteil]] = [HMC804]
Empty file.
106 changes: 0 additions & 106 deletions src/opennetzteil/devices/http/client.py

This file was deleted.

0 comments on commit 80c157e

Please sign in to comment.