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 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(object):
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
1
+ Metadata-Version: 2.4
2
2
  Name: arkindex-client
3
- Version: 1.1.5
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=olYBFCkLQuuf9gGu7wlmZiLFMQknGGi8evS531RjjUE,2755
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.1.5.dist-info/LICENSE,sha256=s7yDHdG8liSj2PiaVwRi9G5wR1qDXSPmhPJPgWbrkWU,34504
17
- arkindex_client-1.1.5.dist-info/METADATA,sha256=EOhMq9f1HvQ5A1nrsm3TQXc43avF_hnyCR3lqd9P8QM,1051
18
- arkindex_client-1.1.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
- arkindex_client-1.1.5.dist-info/top_level.txt,sha256=ALyF0lTPpxOheUGmSVwEhgI6eMYwm_9Eu37G-RwGBRM,17
20
- arkindex_client-1.1.5.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
apistar/__init__.py DELETED
@@ -1,9 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import warnings
3
-
4
- warnings.warn(
5
- "The Arkindex API client no longer depends on APIStar. "
6
- "Please update your `apistar` imports to use the `arkindex` package.",
7
- FutureWarning,
8
- stacklevel=2,
9
- )
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
- )