Skip to content

Commit e212e5b

Browse files
hf-kkleinKonstantin
and
Konstantin
authored
chore: Drop maus dependency; Use efoli instead (#136)
* bhore: Drop `maus` dependency; Use `efoli` instead * more replacements --------- Co-authored-by: Konstantin <[email protected]>
1 parent bf1b6c7 commit e212e5b

File tree

7 files changed

+10
-20
lines changed

7 files changed

+10
-20
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,22 @@ There are two main methods to convert between EDIFACT and BO4E:
6464
- `edifact_to_bo4e`
6565
- `bo4e_to_edifact`
6666

67-
Both have an `EdifactFormatVersion` as argument (imported from [maus](https://github.com/Hochfrequenz/mig_ahb_utility_stack)), which denotes which version of the EDIFACT format you want to use.
67+
Both have an `EdifactFormatVersion` as argument (imported from [efoli](https://github.com/Hochfrequenz/efoli)), which denotes which version of the EDIFACT format you want to use.
6868
We group all the different versions of the EDIFACT format into an enum, so you can easily choose the one you need.
6969
E.g. `EdifactFormatVersion.FV2310` stands for all MIG/AHB versions valid since 2023-10-01.
7070

7171

7272
#### Convert EDIFACT to BO4E
7373
```python
74-
from maus.edifact import EdifactFormatVersion
74+
from efoli import EdifactFormatVersion
7575
# client instantiation goes here
7676

7777
bo4e = await client.edifact_to_bo4e("UNA:+,? 'UNB...", EdifactFormatVersion.FV2310)
7878
```
7979

8080
#### Convert BO4E to EDIFACT
8181
```python
82-
from maus.edifact import EdifactFormatVersion
82+
from efoli import EdifactFormatVersion
8383
from transformerbeeclient.models.boneycomb import BOneyComb
8484
# client instantiation goes here
8585

integrationtests/test_conversion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from pathlib import Path
33

4-
from maus.edifact import EdifactFormatVersion
4+
from efoli import EdifactFormatVersion
55

66
from transformerbeeclient.client import TransformerBeeClient
77
from transformerbeeclient.models.boneycomb import BOneyComb

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers = [
2020
dependencies = [
2121
"pydantic>=2.0.0",
2222
"aiohttp[speedups]>=3.9.3",
23-
"maus>=0.4.2",
23+
"efoli>=1.4.0",
2424
"pyjwt",
2525
"aioauth_client"
2626
] # add all the dependencies here

requirements.txt

+2-12
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@ annotated-types==0.7.0
1717
anyio==4.9.0
1818
# via httpx
1919
attrs==25.3.0
20-
# via
21-
# aiohttp
22-
# maus
20+
# via aiohttp
2321
brotli==1.1.0
2422
# via aiohttp
2523
certifi==2025.1.31
2624
# via
2725
# httpcore
2826
# httpx
2927
efoli==1.4.0
30-
# via maus
28+
# via transformerbeeclient (pyproject.toml)
3129
frozenlist==1.5.0
3230
# via
3331
# aiohttp
@@ -43,18 +41,10 @@ idna==3.10
4341
# anyio
4442
# httpx
4543
# yarl
46-
marshmallow==3.26.1
47-
# via maus
48-
maus==0.6.1
49-
# via transformerbeeclient (pyproject.toml)
50-
more-itertools==10.6.0
51-
# via maus
5244
multidict==6.2.0
5345
# via
5446
# aiohttp
5547
# yarl
56-
packaging==24.2
57-
# via marshmallow
5848
propcache==0.3.0
5949
# via
6050
# aiohttp

src/transformerbeeclient/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import jwt
1515
from aioauth_client import OAuth2Client
1616
from aiohttp import ClientResponse, ClientSession, TCPConnector
17-
from maus.edifact import EdifactFormatVersion
17+
from efoli import EdifactFormatVersion
1818
from pydantic import BaseModel
1919
from yarl import URL
2020

src/transformerbeeclient/models/transformerapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
models used in the transformer.bee API
33
"""
44

5-
from maus.edifact import EdifactFormatVersion
5+
from efoli import EdifactFormatVersion
66
from pydantic import BaseModel, ConfigDict, Field
77

88

src/transformerbeeclient/protocols.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import Protocol
66

7-
from maus.edifact import EdifactFormatVersion
7+
from efoli import EdifactFormatVersion
88

99
from transformerbeeclient.models.boneycomb import BOneyComb
1010
from transformerbeeclient.models.marktnachricht import Marktnachricht

0 commit comments

Comments
 (0)