tracktolib 0.52.0__tar.gz → 0.53.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.
- {tracktolib-0.52.0 → tracktolib-0.53.1}/PKG-INFO +3 -3
- {tracktolib-0.52.0 → tracktolib-0.53.1}/pyproject.toml +4 -5
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/logs.py +2 -2
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/s3/s3.py +5 -2
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/tests.py +1 -1
- {tracktolib-0.52.0 → tracktolib-0.53.1}/LICENSE +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/README.md +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/__init__.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/api.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/http_utils.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/pg/__init__.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/pg/query.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/pg/utils.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/pg_sync.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/pg_utils.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/s3/__init__.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/s3/minio.py +0 -0
- {tracktolib-0.52.0 → tracktolib-0.53.1}/tracktolib/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tracktolib
|
|
3
|
-
Version: 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 (>=
|
|
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.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "tracktolib"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.53.1"
|
|
4
4
|
description = "Utility library for python"
|
|
5
5
|
authors = ["Julien Brayere <julien.brayere@tracktor.fr>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -18,13 +18,13 @@ include = [
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
19
19
|
python = ">=3.12,<4.0"
|
|
20
20
|
|
|
21
|
-
python-json-logger = { version = ">=2.
|
|
21
|
+
python-json-logger = { version = ">=3.2.1", optional = true }
|
|
22
22
|
psycopg = { version = ">=3.1.12", optional = true }
|
|
23
23
|
minio = { version = ">=7.2.0", optional = true }
|
|
24
24
|
# Needed for minio, otherwise it raises ModuleNotFoundError: No module named 'Crypto.Cipher'
|
|
25
25
|
pycryptodome = { version = ">=3.20.0", optional = true }
|
|
26
26
|
aiobotocore = { version = ">=2.9.0", optional = true }
|
|
27
|
-
deepdiff = { version = ">=
|
|
27
|
+
deepdiff = { version = ">=8.1.0", optional = true }
|
|
28
28
|
httpx = { version = ">=0.25.0", optional = true }
|
|
29
29
|
fastapi = { version = ">=0.103.2", optional = true }
|
|
30
30
|
pydantic = { version = ">=2", optional = true }
|
|
@@ -56,7 +56,6 @@ psycopg = "^3.2.1"
|
|
|
56
56
|
minio = "^7.2.7"
|
|
57
57
|
pycryptodome = "^3.20.0"
|
|
58
58
|
aiobotocore = "^2.13.1"
|
|
59
|
-
deepdiff = "^8.0.1"
|
|
60
59
|
python-json-logger = "^3.2.0"
|
|
61
60
|
|
|
62
61
|
|
|
@@ -84,7 +83,7 @@ pythonPlatform = "Linux"
|
|
|
84
83
|
|
|
85
84
|
[tool.commitizen]
|
|
86
85
|
name = "cz_conventional_commits"
|
|
87
|
-
version = "0.
|
|
86
|
+
version = "0.53.1"
|
|
88
87
|
tag_format = "$version"
|
|
89
88
|
version_files = [
|
|
90
89
|
"pyproject.toml:version"
|
|
@@ -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
|
|
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(
|
|
14
|
+
class CustomJsonFormatter(JsonFormatter):
|
|
15
15
|
version: str
|
|
16
16
|
|
|
17
17
|
def __init__(self, version: str, *args, **kwargs):
|
|
@@ -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["
|
|
162
|
+
config["MaxItems"] = max_items
|
|
162
163
|
if page_size is not None:
|
|
163
|
-
config["
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|