annofabcli 1.107.0__py3-none-any.whl → 1.107.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.
- annofabcli/common/utils.py +2 -5
- {annofabcli-1.107.0.dist-info → annofabcli-1.107.1.dist-info}/METADATA +1 -1
- {annofabcli-1.107.0.dist-info → annofabcli-1.107.1.dist-info}/RECORD +6 -6
- {annofabcli-1.107.0.dist-info → annofabcli-1.107.1.dist-info}/WHEEL +0 -0
- {annofabcli-1.107.0.dist-info → annofabcli-1.107.1.dist-info}/entry_points.txt +0 -0
- {annofabcli-1.107.0.dist-info → annofabcli-1.107.1.dist-info}/licenses/LICENSE +0 -0
annofabcli/common/utils.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import copy
|
|
2
1
|
import json
|
|
3
2
|
import logging
|
|
4
3
|
import logging.config
|
|
@@ -19,9 +18,6 @@ logger = logging.getLogger(__name__)
|
|
|
19
18
|
T = TypeVar("T") # Can be anything
|
|
20
19
|
|
|
21
20
|
|
|
22
|
-
DEFAULT_CSV_FORMAT = {"encoding": "utf_8_sig", "index": False}
|
|
23
|
-
|
|
24
|
-
|
|
25
21
|
def read_lines(filepath: str) -> list[str]:
|
|
26
22
|
"""ファイルを行単位で読み込む。改行コードを除く"""
|
|
27
23
|
# BOM付きUTF-8のファイルも読み込めるようにする
|
|
@@ -90,7 +86,8 @@ def print_csv(df: pandas.DataFrame, output: Optional[Union[str, Path]] = None, t
|
|
|
90
86
|
|
|
91
87
|
path_or_buf = sys.stdout if output is None else str(output)
|
|
92
88
|
|
|
93
|
-
|
|
89
|
+
# chunksizeについて: 90万行15列のCSVを出力しようとしたらメモリ不足で落ちたので、仮でchunksizeを10万行にする
|
|
90
|
+
kwargs = {"encoding": "utf_8_sig", "index": False, "chunksize": 100_000}
|
|
94
91
|
if to_csv_kwargs is None:
|
|
95
92
|
df.to_csv(path_or_buf, **kwargs)
|
|
96
93
|
else:
|
|
@@ -61,7 +61,7 @@ annofabcli/common/image.py,sha256=qUsQXEYmttT443BOiaxLthccE7hLji5toLjgSdneNWA,16
|
|
|
61
61
|
annofabcli/common/pandas.py,sha256=Vyozu52UiZ0aCVtQ9jySxT_LrLMwpQvvpM8Uu3S2nCs,476
|
|
62
62
|
annofabcli/common/type_util.py,sha256=i3r5pFtRYQwJrYkl1-lVQi8XOePQxTUX_cAHgBTsagM,224
|
|
63
63
|
annofabcli/common/typing.py,sha256=_AcEogoaMbib0esfN2RvHshAZH0oyRb2Ro9-rbn7NJ8,330
|
|
64
|
-
annofabcli/common/utils.py,sha256=
|
|
64
|
+
annofabcli/common/utils.py,sha256=Qtx9ZGk4T5IQhndTLhVdU142By8IV_wBbLvHeBpE1sw,9648
|
|
65
65
|
annofabcli/common/visualize.py,sha256=mBPCA5vfYNbE3I1m5oHRpo-E1hsNH11KswILtYRCOKQ,13650
|
|
66
66
|
annofabcli/common/annofab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
annofabcli/common/annofab/annotation_specs.py,sha256=h-YSnuK0riCLoJMmV-KDP3JS-_JMqx0feSvPAB3xCSI,765
|
|
@@ -213,8 +213,8 @@ annofabcli/task_history_event/download_task_history_event_json.py,sha256=hQLVbQ0
|
|
|
213
213
|
annofabcli/task_history_event/list_all_task_history_event.py,sha256=EeKMyPUxGwYCFtWQHHW954ZserGm8lUqrwNnV1iX9X4,6830
|
|
214
214
|
annofabcli/task_history_event/list_worktime.py,sha256=Y7Pu5DP7scPf7HPt6CTiTvB1_5_Nfi1bStUIaCpkhII,15507
|
|
215
215
|
annofabcli/task_history_event/subcommand_task_history_event.py,sha256=mJVJoT4RXk4HWnY7-Nrsl4If-gtaIIEXd2z7eFZwM2I,1260
|
|
216
|
-
annofabcli-1.107.
|
|
217
|
-
annofabcli-1.107.
|
|
218
|
-
annofabcli-1.107.
|
|
219
|
-
annofabcli-1.107.
|
|
220
|
-
annofabcli-1.107.
|
|
216
|
+
annofabcli-1.107.1.dist-info/METADATA,sha256=90j4DyDKSLm5oMP_wSYKVKhz8OR1pTBvApagXuU6yDc,5134
|
|
217
|
+
annofabcli-1.107.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
218
|
+
annofabcli-1.107.1.dist-info/entry_points.txt,sha256=C2uSUc-kkLJpoK_mDL5FEMAdorLEMPfwSf8VBMYnIFM,56
|
|
219
|
+
annofabcli-1.107.1.dist-info/licenses/LICENSE,sha256=pcqWYfxFtxBzhvKp3x9MXNM4xciGb2eFewaRhXUNHlo,1081
|
|
220
|
+
annofabcli-1.107.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|