brynq-sdk-allsolutions 1.0.4__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/PKG-INFO +1 -1
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions/__init__.py +8 -4
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions.egg-info/PKG-INFO +1 -1
- brynq_sdk_allsolutions-2.0.1/brynq_sdk_allsolutions.egg-info/requires.txt +2 -0
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/setup.py +2 -2
- brynq_sdk_allsolutions-1.0.4/brynq_sdk_allsolutions.egg-info/requires.txt +0 -2
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions.egg-info/not-zip-safe +0 -0
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions.egg-info/top_level.txt +0 -0
- {brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/setup.cfg +0 -0
{brynq_sdk_allsolutions-1.0.4 → brynq_sdk_allsolutions-2.0.1}/brynq_sdk_allsolutions/__init__.py
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import hashlib
|
|
2
2
|
import json
|
|
3
|
-
|
|
3
|
+
import os
|
|
4
|
+
from typing import Callable, Tuple, Any, Union, List, Literal, Optional
|
|
4
5
|
import requests
|
|
5
6
|
import pandas as pd
|
|
6
7
|
|
|
@@ -8,13 +9,14 @@ from brynq_sdk_brynq import BrynQ
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class AllSolutions(BrynQ):
|
|
11
|
-
def __init__(self,
|
|
12
|
+
def __init__(self, system_type: Optional[Literal['source', 'target']] = None, debug: bool = False):
|
|
12
13
|
super().__init__()
|
|
13
14
|
self.timeout = 3600
|
|
14
15
|
self.token = None
|
|
15
16
|
self.refresh_token = None
|
|
16
17
|
self.debug = debug
|
|
17
|
-
|
|
18
|
+
self.data_interface_id = os.getenv("DATA_INTERFACE_ID")
|
|
19
|
+
credentials = self.interfaces.credentials.get(system='all-solutions', system_type=system_type)
|
|
18
20
|
self.url = credentials['data']['url']
|
|
19
21
|
self.client_id = credentials['data']['client_id']
|
|
20
22
|
self.secret_id = credentials['data']['secret_id']
|
|
@@ -416,6 +418,7 @@ class AllSolutions(BrynQ):
|
|
|
416
418
|
# "phone_private": "ma01.telefoon",
|
|
417
419
|
"prefix_birthname": "ma01.voor[2]",
|
|
418
420
|
"housenumber_addition": "ma01.b-appendix",
|
|
421
|
+
'country': "ma01.b-land-kd",
|
|
419
422
|
"birthname": "ma01.persoon[2]",
|
|
420
423
|
}
|
|
421
424
|
self.__check_fields(data=data, required_fields=required_fields)
|
|
@@ -917,7 +920,8 @@ class AllSolutions(BrynQ):
|
|
|
917
920
|
"housenumber_addition": "ma01.b-appendix",
|
|
918
921
|
"postal_code": "ma01.b-pttkd",
|
|
919
922
|
"note": "ma01.notitie-edit",
|
|
920
|
-
'gender': "ma01.geslacht"
|
|
923
|
+
'gender': "ma01.geslacht",
|
|
924
|
+
'country': "ma01.b-land-kd",
|
|
921
925
|
}
|
|
922
926
|
|
|
923
927
|
self.__check_fields(data=data, required_fields=required_fields)
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='brynq_sdk_allsolutions',
|
|
5
|
-
version='
|
|
5
|
+
version='2.0.1',
|
|
6
6
|
description='All solutions wrapper from BrynQ',
|
|
7
7
|
long_description='All solutions wrapper from BrynQ',
|
|
8
8
|
author='BrynQ',
|
|
@@ -10,7 +10,7 @@ setup(
|
|
|
10
10
|
packages=find_namespace_packages(include=['brynq_sdk*']),
|
|
11
11
|
license='BrynQ License',
|
|
12
12
|
install_requires=[
|
|
13
|
-
'brynq-sdk-brynq>=
|
|
13
|
+
'brynq-sdk-brynq>=4,<5',
|
|
14
14
|
'pandas>=2.2.0,<3.0.0',
|
|
15
15
|
],
|
|
16
16
|
zip_safe=False,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|