Skip to content

Commit fc7bae0

Browse files
authored
Feature/71 anonymization (#72)
1 parent afacd3c commit fc7bae0

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ $ pip install git+https://github.com/elimity-com/insights-client-python.git
3333
| 1 | 2.8 - 2.10 |
3434
| 2 - 3 | 2.11 - 3.0 |
3535
| 4 | 3.1 - 3.3 |
36-
| 5 | ^3.4 |
36+
| 5 - 6 | ^3.4 |

elimity_insights_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ class Entity:
191191
class EntityType:
192192
"""Type of an entity."""
193193

194+
anonymized: bool
194195
icon: str
195196
key: str
196197
plural: str
@@ -322,11 +323,12 @@ def _decode_relationship_attribute_types(json: Any) -> RelationshipAttributeType
322323

323324

324325
def _decode_entity_type(json: Any) -> EntityType:
326+
anonymized = json["anonymized"]
325327
icon = json["icon"]
326328
key = json["key"]
327329
plural = json["plural"]
328330
singular = json["singular"]
329-
return EntityType(icon, key, plural, singular)
331+
return EntityType(anonymized, icon, key, plural, singular)
330332

331333

332334
def _decode_type(json: Any) -> Type:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
python_requires=">=3.7",
2727
py_modules=["elimity_insights_client"],
2828
url="https://github.com/elimity-com/insights-client-python",
29-
version="5.0.0",
29+
version="6.0.0",
3030
)

test_elimity_insights_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_encode_datetime(self) -> None:
6161
def test_get_domain_graph_schema(self) -> None:
6262
attribute_type = AttributeType(False, "foo", "bar", "bax", "baz", Type.STRING)
6363
attribute_types = [attribute_type]
64-
entity_type = EntityType("foo", "bar", "baz", "bax")
64+
entity_type = EntityType(True, "foo", "bar", "baz", "bax")
6565
entity_types = [entity_type]
6666
relationship_attribute_type = RelationshipAttributeType(
6767
True, "bar", "bax", "asd", "baz", "foo", Type.DATE_TIME
@@ -209,6 +209,7 @@ def do_GET(self) -> None:
209209
],
210210
"entityTypes": [
211211
{
212+
"anonymized": true,
212213
"icon": "foo",
213214
"key": "bar",
214215
"plural": "baz",

0 commit comments

Comments
 (0)