Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove httpx dependency #597

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading