Skip to content

Commit 651f07f

Browse files
fix: Replace Unidecode with anyascii for permissive license (#367)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
1 parent 533b70a commit 651f07f

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

airbyte_cdk/sources/declarative/transformations/keys_to_snake_transformation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from dataclasses import dataclass
77
from typing import Any, Dict, List, Optional
88

9-
import unidecode
9+
import anyascii
1010

1111
from airbyte_cdk.sources.declarative.transformations import RecordTransformation
1212
from airbyte_cdk.sources.types import Config, StreamSlice, StreamState
@@ -48,7 +48,7 @@ def process_key(self, key: str) -> str:
4848
return self.tokens_to_snake_case(tokens)
4949

5050
def normalize_key(self, key: str) -> str:
51-
return unidecode.unidecode(key)
51+
return str(anyascii.anyascii(key))
5252

5353
def tokenize_key(self, key: str) -> List[str]:
5454
tokens = []

poetry.lock

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ orjson = "^3.10.7"
7979
serpyco-rs = "^1.10.2"
8080
sqlalchemy = {version = "^2.0,!=2.0.36", optional = true }
8181
xmltodict = ">=0.13,<0.15"
82-
Unidecode = "^1.3"
82+
anyascii = "^0.3.2"
8383
whenever = "^0.6.16"
8484

8585
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)