brynq-sdk-monday 1.2.5__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_monday-1.2.5 → brynq_sdk_monday-2.0.1}/PKG-INFO +1 -1
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday/extract_monday.py +6 -5
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday/extract_tracket.py +7 -6
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday/upload_tracket.py +7 -6
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday.egg-info/PKG-INFO +1 -1
- brynq_sdk_monday-2.0.1/brynq_sdk_monday.egg-info/requires.txt +1 -0
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/setup.py +2 -2
- brynq_sdk_monday-1.2.5/brynq_sdk_monday.egg-info/requires.txt +0 -1
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday/__init__.py +0 -0
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday.egg-info/not-zip-safe +0 -0
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday.egg-info/top_level.txt +0 -0
- {brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/setup.cfg +0 -0
|
@@ -2,7 +2,7 @@ from brynq_sdk_brynq import BrynQ
|
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
4
|
import pandas as pd
|
|
5
|
-
from typing import Union, List
|
|
5
|
+
from typing import Union, List, Literal, Optional
|
|
6
6
|
import requests
|
|
7
7
|
import json
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ sys.path.append(basedir)
|
|
|
12
12
|
|
|
13
13
|
class ExtractMonday(BrynQ):
|
|
14
14
|
|
|
15
|
-
def __init__(self,
|
|
15
|
+
def __init__(self, system_type: Optional[Literal['source', 'target']] = None, debug: bool = False):
|
|
16
16
|
"""
|
|
17
17
|
For the full documentation, see: https://developer.monday.com/api-reference/docs/basics
|
|
18
18
|
"""
|
|
@@ -20,10 +20,11 @@ class ExtractMonday(BrynQ):
|
|
|
20
20
|
self.endpoint = "https://api.monday.com/v2/"
|
|
21
21
|
self.debug = debug
|
|
22
22
|
self.timeout = 3600
|
|
23
|
-
self.headers = self.__get_headers(
|
|
23
|
+
self.headers = self.__get_headers(system_type)
|
|
24
24
|
|
|
25
|
-
def __get_headers(self,
|
|
26
|
-
credentials = self.
|
|
25
|
+
def __get_headers(self, system_type):
|
|
26
|
+
credentials = self.interfaces.credentials.get(system="monday", system_type=system_type)
|
|
27
|
+
credentials = credentials.get('data')
|
|
27
28
|
api_key = credentials['api_key']
|
|
28
29
|
headers = {
|
|
29
30
|
'Authorization': f"Bearer {api_key}",
|
|
@@ -2,7 +2,7 @@ from brynq_sdk_brynq import BrynQ
|
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
4
|
import pandas as pd
|
|
5
|
-
from typing import Union, List
|
|
5
|
+
from typing import Union, List, Literal, Optional
|
|
6
6
|
import requests
|
|
7
7
|
import json
|
|
8
8
|
|
|
@@ -12,22 +12,23 @@ sys.path.append(basedir)
|
|
|
12
12
|
|
|
13
13
|
class ExtractTracket(BrynQ):
|
|
14
14
|
|
|
15
|
-
def __init__(self,
|
|
15
|
+
def __init__(self, system_type: Optional[Literal['source', 'target']] = None, debug: bool = False):
|
|
16
16
|
"""
|
|
17
17
|
For the full documentation, see: https://avisi-apps.gitbook.io/tracket/api/
|
|
18
18
|
"""
|
|
19
19
|
super().__init__()
|
|
20
|
-
self.base_url = "https://us.production.timesheet.avisi-apps.com/api/2.0/"
|
|
21
20
|
self.timeout = 3600
|
|
22
|
-
self.headers = self.__get_headers(
|
|
21
|
+
self.headers = self.__get_headers(system_type)
|
|
22
|
+
self.base_url = "https://us.production.timesheet.avisi-apps.com/api/2.0/"
|
|
23
23
|
|
|
24
|
-
def __get_headers(self,
|
|
24
|
+
def __get_headers(self, system_type):
|
|
25
25
|
"""
|
|
26
26
|
Get the credentials for the Traket API from BrynQ, with those credentials, get the access_token for Tracket.
|
|
27
27
|
Return the headers with the access_token.
|
|
28
28
|
"""
|
|
29
29
|
# Get credentials from BrynQ
|
|
30
|
-
credentials = self.
|
|
30
|
+
credentials = self.interfaces.credentials.get(system="monday", system_type=system_type)
|
|
31
|
+
credentials = credentials.get('data')
|
|
31
32
|
|
|
32
33
|
# With those credentials, get the access_token from Tracket
|
|
33
34
|
endpoint = 'https://us.production.timesheet.avisi-apps.com/api/2.0/oauth2/token'
|
|
@@ -2,7 +2,7 @@ from brynq_sdk_brynq import BrynQ
|
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
4
|
import pandas as pd
|
|
5
|
-
from typing import Union, List
|
|
5
|
+
from typing import Union, List, Literal, Optional
|
|
6
6
|
import warnings
|
|
7
7
|
import requests
|
|
8
8
|
import json
|
|
@@ -13,23 +13,24 @@ sys.path.append(basedir)
|
|
|
13
13
|
|
|
14
14
|
class UploadTracket(BrynQ):
|
|
15
15
|
|
|
16
|
-
def __init__(self,
|
|
16
|
+
def __init__(self, system_type: Optional[Literal['source', 'target']] = None, debug: bool = False):
|
|
17
17
|
"""
|
|
18
18
|
For the full documentation, see: https://avisi-apps.gitbook.io/tracket/api/
|
|
19
19
|
"""
|
|
20
20
|
super().__init__()
|
|
21
|
+
self.timeout = 3600
|
|
22
|
+
self.headers = self.__get_headers(system_type)
|
|
21
23
|
self.base_url = "https://us.production.timesheet.avisi-apps.com/api/2.0/"
|
|
22
24
|
self.debug = debug
|
|
23
|
-
self.timeout = 3600
|
|
24
|
-
self.headers = self.__get_headers(label=label)
|
|
25
25
|
|
|
26
|
-
def __get_headers(self,
|
|
26
|
+
def __get_headers(self, system_type):
|
|
27
27
|
"""
|
|
28
28
|
Get the credentials for the Traket API from BrynQ, with those credentials, get the access_token for Tracket.
|
|
29
29
|
Return the headers with the access_token.
|
|
30
30
|
"""
|
|
31
31
|
# Get credentials from BrynQ
|
|
32
|
-
credentials = self.
|
|
32
|
+
credentials = self.interfaces.credentials.get(system="monday", system_type=system_type)
|
|
33
|
+
credentials = credentials.get('data')
|
|
33
34
|
|
|
34
35
|
# With those credentials, get the access_token from Tracket
|
|
35
36
|
endpoint = 'https://us.production.timesheet.avisi-apps.com/api/2.0/oauth2/token'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
brynq-sdk-brynq<5,>=4
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='brynq_sdk_monday',
|
|
5
|
-
version='
|
|
5
|
+
version='2.0.1',
|
|
6
6
|
description='Monday.com wrapper from BrynQ',
|
|
7
7
|
long_description='Monday.com 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
|
],
|
|
15
15
|
zip_safe=False,
|
|
16
16
|
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
brynq-sdk-brynq>=2
|
|
File without changes
|
|
File without changes
|
{brynq_sdk_monday-1.2.5 → brynq_sdk_monday-2.0.1}/brynq_sdk_monday.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|