tracktolib 0.52.0__py3-none-any.whl → 0.53.1__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.
tracktolib/logs.py CHANGED
@@ -3,7 +3,7 @@ from typing import Literal, overload, Any, TypeGuard
3
3
  from dataclasses import dataclass
4
4
 
5
5
  try:
6
- from pythonjsonlogger import jsonlogger
6
+ from pythonjsonlogger.json import JsonFormatter
7
7
  except ImportError:
8
8
  raise ImportError('Please install pythonjsonlogger or tracktolib with "log" to use this module')
9
9
 
@@ -11,7 +11,7 @@ LogFormat = Literal["json", "console"]
11
11
 
12
12
 
13
13
  @dataclass
14
- class CustomJsonFormatter(jsonlogger.JsonFormatter):
14
+ class CustomJsonFormatter(JsonFormatter):
15
15
  version: str
16
16
 
17
17
  def __init__(self, version: str, *args, **kwargs):
tracktolib/s3/s3.py CHANGED
@@ -150,6 +150,7 @@ async def list_files(
150
150
  search_query: str | None = None,
151
151
  max_items: int | None = None,
152
152
  page_size: int | None = None,
153
+ starting_token: str | None = None,
153
154
  ) -> list[S3Item]:
154
155
  """
155
156
  See https://jmespath.org/ for the search query syntax.
@@ -158,9 +159,11 @@ async def list_files(
158
159
  paginator = client.get_paginator("list_objects")
159
160
  config = {}
160
161
  if max_items is not None:
161
- config["max_items"] = max_items
162
+ config["MaxItems"] = max_items
162
163
  if page_size is not None:
163
- config["page_size"] = page_size
164
+ config["PageSize"] = page_size
165
+ if starting_token is not None:
166
+ config["StartingToken"] = starting_token
164
167
 
165
168
  page_iterator = paginator.paginate(Bucket=bucket, Prefix=path, PaginationConfig=config if config else {})
166
169
  filtered_iterator = page_iterator.search(search_query) if search_query else page_iterator
tracktolib/tests.py CHANGED
@@ -2,7 +2,7 @@ import pprint
2
2
  from typing import Iterable
3
3
 
4
4
  try:
5
- import deepdiff
5
+ import deepdiff.diff as deepdiff
6
6
  except ImportError:
7
7
  raise ImportError('Please install deepdiff or tracktolib with "tests" to use this module')
8
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tracktolib
3
- Version: 0.52.0
3
+ Version: 0.53.1
4
4
  Summary: Utility library for python
5
5
  Home-page: https://github.com/tracktor/tracktolib
6
6
  License: MIT
@@ -23,14 +23,14 @@ Provides-Extra: s3-minio
23
23
  Provides-Extra: tests
24
24
  Requires-Dist: aiobotocore (>=2.9.0) ; extra == "s3"
25
25
  Requires-Dist: asyncpg (>=0.27.0) ; extra == "pg"
26
- Requires-Dist: deepdiff (>=6.6.0) ; extra == "tests"
26
+ Requires-Dist: deepdiff (>=8.1.0) ; extra == "tests"
27
27
  Requires-Dist: fastapi (>=0.103.2) ; extra == "api"
28
28
  Requires-Dist: httpx (>=0.25.0) ; extra == "http"
29
29
  Requires-Dist: minio (>=7.2.0) ; extra == "s3-minio"
30
30
  Requires-Dist: psycopg (>=3.1.12) ; extra == "pg-sync"
31
31
  Requires-Dist: pycryptodome (>=3.20.0) ; extra == "s3-minio"
32
32
  Requires-Dist: pydantic (>=2) ; extra == "api"
33
- Requires-Dist: python-json-logger (>=2.0.4) ; extra == "logs"
33
+ Requires-Dist: python-json-logger (>=3.2.1) ; extra == "logs"
34
34
  Requires-Dist: rich (>=13.6.0) ; extra == "pg"
35
35
  Project-URL: Repository, https://github.com/tracktor/tracktolib
36
36
  Description-Content-Type: text/markdown
@@ -2,7 +2,7 @@ LICENSE,sha256=uUanH0X7SeZEPdsRTHegMSMTiIHMurt9H0jSwEwKE1Y,1081
2
2
  tracktolib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tracktolib/api.py,sha256=xArVgRj_g7bw2tEDbjC9qs9f55b9X0-kJoc8-s1rsYo,9616
4
4
  tracktolib/http_utils.py,sha256=c10JGmHaBw3VSDMYhz2dvVw2lo4PUAq1xMub74I7xDc,2625
5
- tracktolib/logs.py,sha256=M5RZ8OYKgLEBJeC1AwUCSRbFAH09hwdTjjs-AQ9QGg8,2204
5
+ tracktolib/logs.py,sha256=xgfRDnviZPr9qinSOgab8neIWPv9Rj2xzDHnIBvWQcU,2201
6
6
  tracktolib/pg/__init__.py,sha256=j67e3B3gBbCHLD20QBybptmNdbbVMzNhZE6XjIPuKVo,349
7
7
  tracktolib/pg/query.py,sha256=MBYOTL9aLnYRBhaLy8-P6uGNXOmyluejNyUdt3Gfx5M,14504
8
8
  tracktolib/pg/utils.py,sha256=cL24KEt4SWJQ7LJPzaO3c8Xg0ZLmjhn22DtTWg86nwc,6324
@@ -10,10 +10,10 @@ tracktolib/pg_sync.py,sha256=z6EB0hELq6t129gnVnX0rNXv2McZXxI8khy-TEG65Ag,5165
10
10
  tracktolib/pg_utils.py,sha256=VXPpy1jGq6aCgTlfFJDIrq6JDujR83JN5ZRiCi8Lx4E,2582
11
11
  tracktolib/s3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  tracktolib/s3/minio.py,sha256=wMEjkSes9Fp39fD17IctALpD6zB2xwDRQEmO7Vzan3g,1387
13
- tracktolib/s3/s3.py,sha256=I2fT3C9pIm9pM0V96O_wbYg_bPJX35ryzx05G3EgZus,5816
14
- tracktolib/tests.py,sha256=Pbc4yGQrIWFLBEgX-kDBxhMCqH-bfOJtkH2agvaM6ZQ,382
13
+ tracktolib/s3/s3.py,sha256=0HbSAPoaup5-W4LK54zRCjrQ5mr8OWR-N9WjW99Q4aw,5937
14
+ tracktolib/tests.py,sha256=gKE--epQjgMZGXc5ydbl4zjOdmwztJS42UMV0p4hXEA,399
15
15
  tracktolib/utils.py,sha256=ysTBF9V35fVXQVBPk0kfE_84SGRxzrayqmg9RbtoJq4,5761
16
- tracktolib-0.52.0.dist-info/LICENSE,sha256=uUanH0X7SeZEPdsRTHegMSMTiIHMurt9H0jSwEwKE1Y,1081
17
- tracktolib-0.52.0.dist-info/METADATA,sha256=peqROd6d1t-a0mXJFJjgqy0mc7trrpLb8-l4nYANf5s,3692
18
- tracktolib-0.52.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
19
- tracktolib-0.52.0.dist-info/RECORD,,
16
+ tracktolib-0.53.1.dist-info/LICENSE,sha256=uUanH0X7SeZEPdsRTHegMSMTiIHMurt9H0jSwEwKE1Y,1081
17
+ tracktolib-0.53.1.dist-info/METADATA,sha256=O-vtDNRvallv-l7XX2s96i0-Cy4Mgnx_IL-Ci-08mC0,3692
18
+ tracktolib-0.53.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
19
+ tracktolib-0.53.1.dist-info/RECORD,,