xloft 0.6.7__py3-none-any.whl → 0.6.9__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 xloft might be problematic. Click here for more details.
xloft/__init__.py
CHANGED
|
@@ -9,7 +9,13 @@ Modules exported by this package:
|
|
|
9
9
|
|
|
10
10
|
from __future__ import annotations
|
|
11
11
|
|
|
12
|
-
__all__ = (
|
|
12
|
+
__all__ = (
|
|
13
|
+
"to_human_size",
|
|
14
|
+
"is_number",
|
|
15
|
+
"NamedTuple",
|
|
16
|
+
)
|
|
13
17
|
|
|
14
18
|
|
|
19
|
+
from xloft.converters import to_human_size
|
|
20
|
+
from xloft.itis import is_number
|
|
15
21
|
from xloft.namedtuple import NamedTuple
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xloft
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
4
4
|
Summary: (XLOFT) X-Library of tools
|
|
5
5
|
Project-URL: Homepage, https://github.com/kebasyaty/xloft
|
|
6
6
|
Project-URL: Repository, https://github.com/kebasyaty/xloft
|
|
@@ -61,7 +61,7 @@ Description-Content-Type: text/markdown
|
|
|
61
61
|
<a href="https://github.com/kebasyaty/xloft/releases/" alt="GitHub release"><img src="https://img.shields.io/github/release/kebasyaty/xloft" alt="GitHub release"></a>
|
|
62
62
|
</p>
|
|
63
63
|
<p align="center">
|
|
64
|
-
The collection is represented by three modules of `NamedTuple`, `
|
|
64
|
+
The collection is represented by three modules of `NamedTuple`, `Converters`, `ItIs`.
|
|
65
65
|
<br>
|
|
66
66
|
In the future, new tools can be added.
|
|
67
67
|
</p>
|
|
@@ -165,7 +165,8 @@ del nt._id # => raise: AttributeCannotBeDelete
|
|
|
165
165
|
```python
|
|
166
166
|
"""Convert the number of bytes into a human-readable format."""
|
|
167
167
|
|
|
168
|
-
from xloft
|
|
168
|
+
from xloft import to_human_size
|
|
169
|
+
# from xloft.converters import to_human_size
|
|
169
170
|
|
|
170
171
|
|
|
171
172
|
to_human_size(200) # => 200 bytes
|
|
@@ -178,7 +179,8 @@ to_human_size(1048575) # => 1023.999 KB
|
|
|
178
179
|
```python
|
|
179
180
|
"""Check if a string is a number."""
|
|
180
181
|
|
|
181
|
-
from xloft
|
|
182
|
+
from xloft import is_number
|
|
183
|
+
# from xloft.itis import is_number
|
|
182
184
|
|
|
183
185
|
|
|
184
186
|
is_number("") # => False
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
xloft/__init__.py,sha256=
|
|
1
|
+
xloft/__init__.py,sha256=_bAXQ70tFM76SGAWcWij4UXINN7RwXN2e7nL8N64ohk,485
|
|
2
2
|
xloft/errors.py,sha256=hZcmF0QVVdvE5oM1jsXymRk_pPGgDSnUDM9wx9zJAYQ,895
|
|
3
3
|
xloft/itis.py,sha256=CRtnOhrw1IY8pPxXy4dCv7wVXUhXmo0OgLLlSSVnmxI,430
|
|
4
4
|
xloft/namedtuple.py,sha256=egEULlfATXM8gMhAMjQSHocwTudqqzXDGTYGZVSUGZs,5725
|
|
5
5
|
xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
xloft/converters/__init__.py,sha256=17_p8AQ-_UcKKioJolP_738LHCNOwohJIkCqeyaVO_M,316
|
|
7
7
|
xloft/converters/human_size.py,sha256=NcZRWF64LkQJ8-R00X7MCkNvXwlFDTcp5M3MylQzRTM,1149
|
|
8
|
-
xloft-0.6.
|
|
9
|
-
xloft-0.6.
|
|
10
|
-
xloft-0.6.
|
|
11
|
-
xloft-0.6.
|
|
8
|
+
xloft-0.6.9.dist-info/METADATA,sha256=dL9nhpXbrANlYPzNxRtMFUdlRnX0oPzTjMlKjw7LhJw,7831
|
|
9
|
+
xloft-0.6.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
10
|
+
xloft-0.6.9.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
11
|
+
xloft-0.6.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|