TransferQueue 0.0.1.dev0__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.
- recipe/simple_use_case/async_demo.py +307 -0
- recipe/simple_use_case/sync_demo.py +223 -0
- tests/test_client.py +390 -0
- tests/test_controller.py +268 -0
- tests/test_serial_utils_on_cpu.py +202 -0
- tests/test_simple_storage_unit.py +479 -0
- transfer_queue/__init__.py +42 -0
- transfer_queue/client.py +663 -0
- transfer_queue/controller.py +772 -0
- transfer_queue/metadata.py +603 -0
- transfer_queue/storage.py +515 -0
- transfer_queue/utils/__init__.py +13 -0
- transfer_queue/utils/serial_utils.py +240 -0
- transfer_queue/utils/utils.py +98 -0
- transfer_queue/utils/zmq_utils.py +175 -0
- transfer_queue/version/version +1 -0
- transferqueue-0.0.1.dev0.dist-info/METADATA +15 -0
- transferqueue-0.0.1.dev0.dist-info/RECORD +21 -0
- transferqueue-0.0.1.dev0.dist-info/WHEEL +5 -0
- transferqueue-0.0.1.dev0.dist-info/licenses/LICENSE +202 -0
- transferqueue-0.0.1.dev0.dist-info/top_level.txt +4 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Copyright 2025 The TransferQueue Team
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
import os
|
|
16
|
+
|
|
17
|
+
from .client import (
|
|
18
|
+
AsyncTransferQueueClient,
|
|
19
|
+
TransferQueueClient,
|
|
20
|
+
process_zmq_server_info,
|
|
21
|
+
)
|
|
22
|
+
from .controller import TransferQueueController
|
|
23
|
+
from .metadata import BatchMeta
|
|
24
|
+
from .storage import TransferQueueStorageSimpleUnit
|
|
25
|
+
from .utils.utils import get_placement_group
|
|
26
|
+
from .utils.zmq_utils import ZMQServerInfo
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"AsyncTransferQueueClient",
|
|
30
|
+
"BatchMeta",
|
|
31
|
+
"TransferQueueClient",
|
|
32
|
+
"TransferQueueController",
|
|
33
|
+
"TransferQueueStorageSimpleUnit",
|
|
34
|
+
"ZMQServerInfo",
|
|
35
|
+
"process_zmq_server_info",
|
|
36
|
+
"get_placement_group",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
version_folder = os.path.dirname(os.path.join(os.path.abspath(__file__)))
|
|
40
|
+
|
|
41
|
+
with open(os.path.join(version_folder, "version/version")) as f:
|
|
42
|
+
__version__ = f.read().strip()
|