fds.sdk.utils 2.0.0__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.
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/PKG-INFO +9 -2
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/README.md +7 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/pyproject.toml +4 -4
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/confidential.py +1 -1
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/constants.py +1 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/LICENSE +0 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/__init__.py +0 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/__init__.py +0 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/__init__.py +0 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/__init__.py +0 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/exceptions.py +0 -0
- {fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/oauth2client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fds.sdk.utils
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Utilities for interacting with FactSet APIs.
|
|
5
5
|
Home-page: https://developer.factset.com
|
|
6
6
|
License: Apache-2.0
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Requires-Dist: joserfc (>=0.9
|
|
17
|
+
Requires-Dist: joserfc (>=0.9,<0.12)
|
|
18
18
|
Requires-Dist: oauthlib (>=3.2.2,<4.0.0)
|
|
19
19
|
Requires-Dist: requests (>=2.28.2,<3.0.0)
|
|
20
20
|
Requires-Dist: requests-oauthlib (>=2.0.0,<3.0.0)
|
|
@@ -25,6 +25,7 @@ Description-Content-Type: text/markdown
|
|
|
25
25
|
# FactSet SDK Utilities for Python
|
|
26
26
|
|
|
27
27
|
[](https://pypi.org/project/fds.sdk.utils/)
|
|
28
|
+
[](https://anaconda.org/factset/fds.sdk.utils)
|
|
28
29
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
29
30
|
|
|
30
31
|
This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet
|
|
@@ -44,6 +45,12 @@ poetry add fds.sdk.utils
|
|
|
44
45
|
pip install fds.sdk.utils
|
|
45
46
|
```
|
|
46
47
|
|
|
48
|
+
### Conda
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
conda install factset::fds.sdk.utils
|
|
52
|
+
```
|
|
53
|
+
|
|
47
54
|
## Usage
|
|
48
55
|
|
|
49
56
|
This library contains multiple modules, sample usage of each module is below.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# FactSet SDK Utilities for Python
|
|
4
4
|
|
|
5
5
|
[](https://pypi.org/project/fds.sdk.utils/)
|
|
6
|
+
[](https://anaconda.org/factset/fds.sdk.utils)
|
|
6
7
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
7
8
|
|
|
8
9
|
This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet
|
|
@@ -22,6 +23,12 @@ poetry add fds.sdk.utils
|
|
|
22
23
|
pip install fds.sdk.utils
|
|
23
24
|
```
|
|
24
25
|
|
|
26
|
+
### Conda
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
conda install factset::fds.sdk.utils
|
|
30
|
+
```
|
|
31
|
+
|
|
25
32
|
## Usage
|
|
26
33
|
|
|
27
34
|
This library contains multiple modules, sample usage of each module is below.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "fds.sdk.utils"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.1"
|
|
4
4
|
description = "Utilities for interacting with FactSet APIs."
|
|
5
5
|
authors = ["FactSet Research Systems"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -21,14 +21,14 @@ python = "^3.8.0"
|
|
|
21
21
|
requests-oauthlib = "^2.0.0"
|
|
22
22
|
requests = "^2.28.2"
|
|
23
23
|
oauthlib = "^3.2.2"
|
|
24
|
-
joserfc = "
|
|
24
|
+
joserfc = ">=0.9,<0.12"
|
|
25
25
|
|
|
26
26
|
[tool.poetry.dev-dependencies]
|
|
27
|
-
pytest = "^8.2.
|
|
27
|
+
pytest = "^8.2.2"
|
|
28
28
|
black = "^24.4.2"
|
|
29
29
|
pytest-cov = "^5.0.0"
|
|
30
30
|
pytest-mock = "^3.11.1"
|
|
31
|
-
tox = "^4.
|
|
31
|
+
tox = "^4.15.1"
|
|
32
32
|
tox-gh-actions = "^3.2.0"
|
|
33
33
|
|
|
34
34
|
[tool.black]
|
{fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/confidential.py
RENAMED
|
@@ -242,7 +242,7 @@ class ConfidentialClient(OAuth2Client):
|
|
|
242
242
|
if not self._cached_token:
|
|
243
243
|
log.debug("Access Token cache is empty")
|
|
244
244
|
return False
|
|
245
|
-
if time.time() < self._cached_token[CONSTS.TOKEN_EXPIRES_AT]:
|
|
245
|
+
if time.time() < self._cached_token[CONSTS.TOKEN_EXPIRES_AT] - CONSTS.TOKEN_EXPIRY_OFFSET_SECS:
|
|
246
246
|
return True
|
|
247
247
|
else:
|
|
248
248
|
log.debug("Cached access token has expired at %s", self._cached_token[CONSTS.TOKEN_EXPIRES_AT])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fds_sdk_utils-2.0.0 → fds_sdk_utils-2.0.1}/src/fds/sdk/utils/authentication/oauth2client.py
RENAMED
|
File without changes
|