nucliadb-utils 6.9.0.post5126__py3-none-any.whl → 6.9.0.post5134__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.
Potentially problematic release.
This version of nucliadb-utils might be problematic. Click here for more details.
- nucliadb_utils/tests/nats.py +3 -3
- nucliadb_utils/utilities.py +5 -0
- {nucliadb_utils-6.9.0.post5126.dist-info → nucliadb_utils-6.9.0.post5134.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.9.0.post5126.dist-info → nucliadb_utils-6.9.0.post5134.dist-info}/RECORD +6 -6
- {nucliadb_utils-6.9.0.post5126.dist-info → nucliadb_utils-6.9.0.post5134.dist-info}/WHEEL +0 -0
- {nucliadb_utils-6.9.0.post5126.dist-info → nucliadb_utils-6.9.0.post5134.dist-info}/top_level.txt +0 -0
nucliadb_utils/tests/nats.py
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
|
|
20
20
|
import socket
|
|
21
|
-
from typing import AsyncIterator
|
|
21
|
+
from typing import AsyncIterator, Iterator
|
|
22
22
|
|
|
23
23
|
import nats
|
|
24
24
|
import pytest
|
|
@@ -52,7 +52,7 @@ nats_image = NatsImage()
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
@pytest.fixture(scope="session")
|
|
55
|
-
def natsd()
|
|
55
|
+
def natsd() -> Iterator[str]:
|
|
56
56
|
nats_host, nats_port = nats_image.run()
|
|
57
57
|
print("Started natsd docker")
|
|
58
58
|
yield f"nats://{nats_host}:{nats_port}"
|
|
@@ -60,7 +60,7 @@ def natsd(): # pragma: no cover
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
@pytest.fixture(scope="function")
|
|
63
|
-
async def nats_server(natsd: str):
|
|
63
|
+
async def nats_server(natsd: str) -> AsyncIterator[str]:
|
|
64
64
|
yield natsd
|
|
65
65
|
|
|
66
66
|
# cleanup nats
|
nucliadb_utils/utilities.py
CHANGED
|
@@ -365,6 +365,11 @@ async def stop_audit_utility():
|
|
|
365
365
|
async def start_nats_manager(
|
|
366
366
|
service_name: str, nats_servers: list[str], nats_creds: Optional[str] = None
|
|
367
367
|
) -> NatsConnectionManager:
|
|
368
|
+
util = get_utility(Utility.NATS_MANAGER)
|
|
369
|
+
if util is not None:
|
|
370
|
+
logger.warning("Warning, nats manager utility was already set, ignoring")
|
|
371
|
+
return util
|
|
372
|
+
|
|
368
373
|
nats_manager = NatsConnectionManager(
|
|
369
374
|
service_name=service_name,
|
|
370
375
|
nats_servers=nats_servers,
|
{nucliadb_utils-6.9.0.post5126.dist-info → nucliadb_utils-6.9.0.post5134.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nucliadb_utils
|
|
3
|
-
Version: 6.9.0.
|
|
3
|
+
Version: 6.9.0.post5134
|
|
4
4
|
Summary: NucliaDB util library
|
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -27,8 +27,8 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
|
|
|
27
27
|
Requires-Dist: PyNaCl
|
|
28
28
|
Requires-Dist: pyjwt>=2.4.0
|
|
29
29
|
Requires-Dist: mrflagly>=0.2.9
|
|
30
|
-
Requires-Dist: nucliadb-protos>=6.9.0.
|
|
31
|
-
Requires-Dist: nucliadb-telemetry>=6.9.0.
|
|
30
|
+
Requires-Dist: nucliadb-protos>=6.9.0.post5134
|
|
31
|
+
Requires-Dist: nucliadb-telemetry>=6.9.0.post5134
|
|
32
32
|
Provides-Extra: cache
|
|
33
33
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
|
34
34
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
|
@@ -15,7 +15,7 @@ nucliadb_utils/settings.py,sha256=H9yKrHPR5emTxai-D4owg4CjE4_-E0qR0HyuHERQNH4,84
|
|
|
15
15
|
nucliadb_utils/signals.py,sha256=lo_Mk12NIX5Au--3H3WObvDOXq_OMurql2qiC2TnAao,2676
|
|
16
16
|
nucliadb_utils/store.py,sha256=kQ35HemE0v4_Qg6xVqNIJi8vSFAYQtwI3rDtMsNy62Y,890
|
|
17
17
|
nucliadb_utils/transaction.py,sha256=l3ZvrITYMnAs_fv1OOC-1nDZxWPG5qmbBhzvuC3DUzQ,8039
|
|
18
|
-
nucliadb_utils/utilities.py,sha256=
|
|
18
|
+
nucliadb_utils/utilities.py,sha256=SjPnCwCUH_lWUKSOZQp9vIcTYmLP0yL_UC8nPwlnds4,15817
|
|
19
19
|
nucliadb_utils/audit/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
20
20
|
nucliadb_utils/audit/audit.py,sha256=xmJJiAGG8rPGADwD9gXN9-QJ80GeGvqmY-kCwEf6PiQ,3598
|
|
21
21
|
nucliadb_utils/audit/basic.py,sha256=fcCYvoFSGVbbB8cSCnm95bN2rf1AAeuWhGfh5no0S-Y,4246
|
|
@@ -51,9 +51,9 @@ nucliadb_utils/tests/azure.py,sha256=rt1KRSYZW1EYhKy4Q0i7IEL9vdoOU6BYw2__S51YfGg
|
|
|
51
51
|
nucliadb_utils/tests/fixtures.py,sha256=4lzz-khYvbGzdbT18IG6KKg40f7CVex2q3ho88I-jL8,3799
|
|
52
52
|
nucliadb_utils/tests/gcs.py,sha256=JNqp5ymeNNU9Ci8rNYTh7-VqP4fjybElhyB3ap7EV1c,4721
|
|
53
53
|
nucliadb_utils/tests/local.py,sha256=z9E11_ol1mu7N8Y6PkjKl-WMPPMl7JqQbDj3uhVa1A0,1933
|
|
54
|
-
nucliadb_utils/tests/nats.py,sha256=
|
|
54
|
+
nucliadb_utils/tests/nats.py,sha256=rbTaC6kv-u6SdZ7N-XBEGS40XCRiUmFUsKHIYWJfxTs,2325
|
|
55
55
|
nucliadb_utils/tests/s3.py,sha256=kz9ULxrAYLVslZ59I8dtweZ9DJz5R8Ioy2XYrveZzHw,3829
|
|
56
|
-
nucliadb_utils-6.9.0.
|
|
57
|
-
nucliadb_utils-6.9.0.
|
|
58
|
-
nucliadb_utils-6.9.0.
|
|
59
|
-
nucliadb_utils-6.9.0.
|
|
56
|
+
nucliadb_utils-6.9.0.post5134.dist-info/METADATA,sha256=5cqteUb8wNElPWt1rk3V8vnggyn0gbdjeKt4rJ9rM6I,2180
|
|
57
|
+
nucliadb_utils-6.9.0.post5134.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
58
|
+
nucliadb_utils-6.9.0.post5134.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
|
59
|
+
nucliadb_utils-6.9.0.post5134.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_utils-6.9.0.post5126.dist-info → nucliadb_utils-6.9.0.post5134.dist-info}/top_level.txt
RENAMED
|
File without changes
|