python-arango 8.3.4__py3-none-any.whl → 8.3.6__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.
arango/collection.py CHANGED
@@ -1274,17 +1274,29 @@ class Collection(ApiGroup):
1274
1274
  # Index Management #
1275
1275
  ####################
1276
1276
 
1277
- def indexes(self) -> Result[Jsons]:
1277
+ def indexes(
1278
+ self, with_stats: bool = False, with_hidden: bool = False
1279
+ ) -> Result[Jsons]:
1278
1280
  """Return the collection indexes.
1279
1281
 
1282
+ :param with_stats: Whether to include figures and estimates in the result.
1283
+ :type with_stats: bool
1284
+ :param with_hidden: Whether to include hidden indexes in the result.
1285
+ :type with_hidden: bool
1280
1286
  :return: Collection indexes.
1281
1287
  :rtype: [dict]
1282
1288
  :raise arango.exceptions.IndexListError: If retrieval fails.
1283
1289
  """
1290
+ params: Params = {"collection": self.name}
1291
+ if with_stats:
1292
+ params["withStats"] = True
1293
+ if with_hidden:
1294
+ params["withHidden"] = True
1295
+
1284
1296
  request = Request(
1285
1297
  method="get",
1286
1298
  endpoint="/_api/index",
1287
- params={"collection": self.name},
1299
+ params=params,
1288
1300
  )
1289
1301
 
1290
1302
  def response_handler(resp: Response) -> Jsons:
arango/connection.py CHANGED
@@ -120,8 +120,7 @@ class BaseConnection:
120
120
  else:
121
121
  resp.body = resp.raw_body
122
122
 
123
- http_ok = 200 <= resp.status_code < 300
124
- resp.is_success = http_ok and resp.error_code is None
123
+ resp.is_success = 200 <= resp.status_code < 300
125
124
  return resp
126
125
 
127
126
  def process_request(
arango/formatter.py CHANGED
@@ -73,6 +73,8 @@ def format_index(body: Json, formatter: bool = True) -> Json:
73
73
  result["cacheEnabled"] = body["cacheEnabled"]
74
74
  if "legacyPolygons" in body:
75
75
  result["legacyPolygons"] = body["legacyPolygons"]
76
+ if "figures" in body:
77
+ result["figures"] = body["figures"]
76
78
  if "estimates" in body:
77
79
  result["estimates"] = body["estimates"]
78
80
  if "analyzer" in body:
@@ -123,6 +125,8 @@ def format_index(body: Json, formatter: bool = True) -> Json:
123
125
  result["error_message"] = body["errorMessage"]
124
126
  if "trainingState" in body:
125
127
  result["training_state"] = body["trainingState"]
128
+ if "shards" in body:
129
+ result["shards"] = body["shards"]
126
130
 
127
131
  return verify_format(body, result)
128
132
 
arango/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "8.3.4"
1
+ __version__ = "8.3.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-arango
3
- Version: 8.3.4
3
+ Version: 8.3.6
4
4
  Summary: Python Driver for ArangoDB
5
5
  Author-email: Joohwan Oh <joohwan.oh@outlook.com>
6
6
  Maintainer-email: Joohwan Oh <joohwan.oh@outlook.com>, Alexandru Petenchea <alex.petenchea@gmail.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
@@ -33,7 +33,6 @@ Classifier: License :: OSI Approved :: MIT License
33
33
  Classifier: Natural Language :: English
34
34
  Classifier: Operating System :: OS Independent
35
35
  Classifier: Programming Language :: Python :: 3
36
- Classifier: Programming Language :: Python :: 3.9
37
36
  Classifier: Programming Language :: Python :: 3.10
38
37
  Classifier: Programming Language :: Python :: 3.11
39
38
  Classifier: Programming Language :: Python :: 3.12
@@ -48,7 +47,7 @@ Requires-Dist: requests_toolbelt
48
47
  Requires-Dist: PyJWT>=2.10.0
49
48
  Requires-Dist: packaging>=23.1
50
49
  Provides-Extra: dev
51
- Requires-Dist: black==26.1.0; extra == "dev"
50
+ Requires-Dist: black==26.5.1; extra == "dev"
52
51
  Requires-Dist: flake8==7.3.0; extra == "dev"
53
52
  Requires-Dist: isort==5.10.1; extra == "dev"
54
53
  Requires-Dist: mypy==1.15.0; extra == "dev"
@@ -89,7 +88,7 @@ If you're interested in using asyncio, please check [python-arango-async](https:
89
88
  ## Requirements
90
89
 
91
90
  - ArangoDB version 3.11+
92
- - Python version 3.9+
91
+ - Python version 3.10+
93
92
 
94
93
  ## Installation
95
94
 
@@ -4,14 +4,14 @@ arango/aql.py,sha256=HaoEx1CWvEtKTkbocEtS-73MyAAhuTxJnenqDg41voM,31420
4
4
  arango/backup.py,sha256=lK7ihCRPrsBlQ35KtyYplhX6Lw0GzqCbGTLPbPTBh20,8651
5
5
  arango/client.py,sha256=t-mJZ9I7ZJebILW6zm4qAhgExEEzvwTVNdkHp7DP2iU,11787
6
6
  arango/cluster.py,sha256=4EAMftT_Zm2kBVtvWF9RSy-EYdsGgKujE6mI52HtV8Q,18655
7
- arango/collection.py,sha256=FdjDzfqAY333MA6frrfMU0-ZuTmnDwEZlF1c0HEbuwA,135955
8
- arango/connection.py,sha256=euqleZQOBkZ06zkY1uztGWeDeZLEYnekvHs2WK_K1Gk,18919
7
+ arango/collection.py,sha256=of4mCWv-Nag4U_yyBkgEjDzo0vfLNzl2Q4no9h8gtWg,136404
8
+ arango/connection.py,sha256=toyx1uIPh36WIXt0JMty-qWp44zV3QJiOil9CY455Vs,18865
9
9
  arango/cursor.py,sha256=4iIhYXWwzHnxKKk0oNk-ynNeQ1BWJDS4gy1ApzYtNl8,11156
10
10
  arango/database.py,sha256=wAGxx3fhDL1vzWMQZVZQ39ID3iggJ6jxHmmL-JCZYTs,134528
11
11
  arango/errno.py,sha256=4oKY9IyyzjOitbywhjH8S214qeNtpDlQg7JsHENJNoU,25245
12
12
  arango/exceptions.py,sha256=N2sUD6_aJQqsrXXluDrQkXo143d8M07ziqZQK5VN_rk,26225
13
13
  arango/executor.py,sha256=ahez3ar-FLZLWv4pu1IYhAi_EdhbwsME82N_hkB1PSw,16000
14
- arango/formatter.py,sha256=v_q93uvmUsYVsvxoHb2fAskqGxi3zRT88IUQCZgc9z4,42861
14
+ arango/formatter.py,sha256=t0R8uk6g-Vl0V4rrP82xJx_yv1hijPU2UWJzS0-M3BQ,42998
15
15
  arango/foxx.py,sha256=Ni5AnmuTq2ghD_yXHZkDkH45gj5J6lqEWYScp-9aGC0,32828
16
16
  arango/graph.py,sha256=UPxiN0JgyzZGYc1aZZ1tiiOsz9fStInEGS6SySDaFW0,36282
17
17
  arango/http.py,sha256=36Us7VBcOcHH2kdWg8ZpPkD-4Po8U5ScQvR1MATGVr0,10215
@@ -25,10 +25,10 @@ arango/response.py,sha256=n55yXyrsUldOQV8FYUgX9PiVvTW-R9nVOyDUTcnsN1o,2164
25
25
  arango/result.py,sha256=nILp1HZCl06awosbDi1AL_LCDDXV0DEi1KBkywG6uoI,168
26
26
  arango/typings.py,sha256=G8BKOORxaVKSS3kaxHjVaXD0TIJkd1Cs8j2nuKwSKlQ,779
27
27
  arango/utils.py,sha256=E2AsqCLknKpv-5EEpoT7oGsZGNBnPG3g1uuS51wdvDU,5835
28
- arango/version.py,sha256=L6FFKJ9jr3FOrnDCDKrFA8EDeYijiBWwZ9MHgZ122DM,22
28
+ arango/version.py,sha256=TLM6U0HCNd6UWgPR-XE8azfEdPb_3vQDRKSAnrFQomQ,22
29
29
  arango/wal.py,sha256=ubZvztThBrmPDBYkpUtnz8XDLICRTfaMeXSfqQwMauw,11700
30
- python_arango-8.3.4.dist-info/licenses/LICENSE,sha256=e86a4kkFfMBuoffCn4RLmQGC2LUqNs78i5npEsJ1b5I,1072
31
- python_arango-8.3.4.dist-info/METADATA,sha256=WqV_akKoCfPMA7oCcrGkgomOuWRfk49giB7DwKKdy14,8356
32
- python_arango-8.3.4.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
33
- python_arango-8.3.4.dist-info/top_level.txt,sha256=F8H1mznbOGduHSsSET9uiPd72kJ1fGbejiuzYMm9XqA,7
34
- python_arango-8.3.4.dist-info/RECORD,,
30
+ python_arango-8.3.6.dist-info/licenses/LICENSE,sha256=e86a4kkFfMBuoffCn4RLmQGC2LUqNs78i5npEsJ1b5I,1072
31
+ python_arango-8.3.6.dist-info/METADATA,sha256=4SHFB8LIS20Z6iWAQ6a_tq57UJX4cOM8AF8ASYIuw8U,8307
32
+ python_arango-8.3.6.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
33
+ python_arango-8.3.6.dist-info/top_level.txt,sha256=F8H1mznbOGduHSsSET9uiPd72kJ1fGbejiuzYMm9XqA,7
34
+ python_arango-8.3.6.dist-info/RECORD,,