arkindex-client 1.1.5__py3-none-any.whl → 1.2.0__py3-none-any.whl
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.
- arkindex/mock.py +4 -1
- {arkindex_client-1.1.5.dist-info → arkindex_client-1.2.0.dist-info}/METADATA +12 -2
- {arkindex_client-1.1.5.dist-info → arkindex_client-1.2.0.dist-info}/RECORD +6 -8
- {arkindex_client-1.1.5.dist-info → arkindex_client-1.2.0.dist-info}/WHEEL +1 -1
- {arkindex_client-1.1.5.dist-info → arkindex_client-1.2.0.dist-info}/top_level.txt +0 -1
- apistar/__init__.py +0 -9
- apistar/exceptions.py +0 -13
- {arkindex_client-1.1.5.dist-info → arkindex_client-1.2.0.dist-info/licenses}/LICENSE +0 -0
arkindex/mock.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import collections
|
|
3
3
|
import logging
|
|
4
4
|
|
|
5
|
+
from arkindex import ArkindexClient
|
|
5
6
|
from arkindex.exceptions import ErrorResponse
|
|
6
7
|
|
|
7
8
|
logger = logging.getLogger(__name__)
|
|
@@ -9,10 +10,12 @@ logger = logging.getLogger(__name__)
|
|
|
9
10
|
MockRequest = collections.namedtuple("MockRequest", "operation, body, args, kwargs")
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
class MockApiClient(
|
|
13
|
+
class MockApiClient(ArkindexClient):
|
|
13
14
|
"""A mockup of the Arkindex API Client to build unit tests"""
|
|
14
15
|
|
|
15
16
|
def __init__(self):
|
|
17
|
+
super().__init__()
|
|
18
|
+
|
|
16
19
|
self.history = []
|
|
17
20
|
self.responses = []
|
|
18
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: arkindex-client
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: API client for the Arkindex project
|
|
5
5
|
Home-page: https://gitlab.teklia.com/arkindex/api-client
|
|
6
6
|
Author: Teklia <contact@teklia.com>
|
|
@@ -23,5 +23,15 @@ License-File: LICENSE
|
|
|
23
23
|
Requires-Dist: requests>=2.30
|
|
24
24
|
Requires-Dist: tenacity>=9.1.0
|
|
25
25
|
Requires-Dist: typesystem==0.4.1
|
|
26
|
+
Dynamic: author
|
|
27
|
+
Dynamic: classifier
|
|
28
|
+
Dynamic: description
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: keywords
|
|
31
|
+
Dynamic: license
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
Dynamic: requires-dist
|
|
34
|
+
Dynamic: requires-python
|
|
35
|
+
Dynamic: summary
|
|
26
36
|
|
|
27
37
|
Documentation is available at https://api.arkindex.org
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
apistar/__init__.py,sha256=mX65SD-MGA1ZynGKkqh7zEONxAIMsPktTaAXeh69Kwc,231
|
|
2
|
-
apistar/exceptions.py,sha256=yzjDlUB5o0xaORBabqTXmf4ckYjNHz1ceV8ECg3jDek,328
|
|
3
1
|
arkindex/__init__.py,sha256=OBw25Nwe6r1AN3a36-8lnUcDy3nkDIiebBgYNK2Zo9o,99
|
|
4
2
|
arkindex/auth.py,sha256=OeuzFeCQ8FAt0kqPECjsEz-Ki9__-y69z5sAuyTZ28c,1550
|
|
5
3
|
arkindex/compat.py,sha256=Kjxu--QoF8sBxKOvXMtNcDQ0XK7MLc_2C8Q2knll4Lk,805
|
|
6
4
|
arkindex/document.py,sha256=YyqSm3Kc35j3iWuJujyfrLfMy-gNydBtmcR45pUtfC4,3732
|
|
7
5
|
arkindex/exceptions.py,sha256=hDxbgC7uAD8wbTQS1DaEJZ25Nun41Io8Y0BiwrZ1ZSM,2016
|
|
8
|
-
arkindex/mock.py,sha256=
|
|
6
|
+
arkindex/mock.py,sha256=RaYr5H4yDFdHJS02NbvoPU2lJKxAV2ygqK0sSZ-mx38,2827
|
|
9
7
|
arkindex/pagination.py,sha256=kzOyl2oMqGyyVy7LG7eKK9wAI6YdVzEeOuBEbkdw5Zo,11002
|
|
10
8
|
arkindex/client/__init__.py,sha256=g_G_bSfMbduYzpi9iURTn0cYLV4nMulDR8rD7x-DLyc,142
|
|
11
9
|
arkindex/client/client.py,sha256=ZOcMY5IjOUxADkCsCdpgylJM-oJVY_XObRVH4p4onVI,15428
|
|
@@ -13,8 +11,8 @@ arkindex/client/decoders.py,sha256=WmRdqNAFv884XIfHXTkQoohJMapeTq8AqQzsW26K-t4,7
|
|
|
13
11
|
arkindex/schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
12
|
arkindex/schema/openapi.py,sha256=HHAHyUxqa6sK1l8aEy7SHx-9w20Pbov54AB4rHPjguk,9183
|
|
15
13
|
arkindex/schema/validator.py,sha256=Baq2TtqMWZVRU_SYF7aUJ0Y80t-CIboCtK_GV8TPNKE,625
|
|
16
|
-
arkindex_client-1.
|
|
17
|
-
arkindex_client-1.
|
|
18
|
-
arkindex_client-1.
|
|
19
|
-
arkindex_client-1.
|
|
20
|
-
arkindex_client-1.
|
|
14
|
+
arkindex_client-1.2.0.dist-info/licenses/LICENSE,sha256=s7yDHdG8liSj2PiaVwRi9G5wR1qDXSPmhPJPgWbrkWU,34504
|
|
15
|
+
arkindex_client-1.2.0.dist-info/METADATA,sha256=VlM6mV_PVQhW_br84M8bYPCD5-62Bgt1-gO6jWzKHFM,1249
|
|
16
|
+
arkindex_client-1.2.0.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
17
|
+
arkindex_client-1.2.0.dist-info/top_level.txt,sha256=iP1TxDW_jSDQA4FIcahBFXiDcZXqam2a_gFVnDbR3c4,9
|
|
18
|
+
arkindex_client-1.2.0.dist-info/RECORD,,
|
apistar/__init__.py
DELETED
apistar/exceptions.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
import warnings
|
|
3
|
-
|
|
4
|
-
from arkindex.exceptions import ErrorResponse
|
|
5
|
-
|
|
6
|
-
__all__ = ["ErrorResponse"]
|
|
7
|
-
|
|
8
|
-
warnings.warn(
|
|
9
|
-
"The Arkindex API client no longer depends on APIStar. "
|
|
10
|
-
"Please update your `apistar.exceptions` imports to use the `arkindex.exceptions` module.",
|
|
11
|
-
FutureWarning,
|
|
12
|
-
stacklevel=2,
|
|
13
|
-
)
|
|
File without changes
|