xloft 0.6.0__py3-none-any.whl → 0.6.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.

Potentially problematic release.


This version of xloft might be problematic. Click here for more details.

xloft/__init__.py CHANGED
@@ -4,6 +4,7 @@ Modules exported by this package:
4
4
 
5
5
  - `namedtuple`- Class imitates the behavior of the _named tuple_.
6
6
  - `human` - A collection of instruments for converting data to format is convenient for humans.
7
+ - `it_is` - Tools for determining something.
7
8
  """
8
9
 
9
10
  from __future__ import annotations
xloft/it_is.py CHANGED
@@ -4,7 +4,10 @@ from __future__ import annotations
4
4
 
5
5
  __all__ = ("is_number",)
6
6
 
7
- from xloft.constants import REGEX_IS_NUMBER
7
+ import re
8
+
9
+ # Caching
10
+ _REGEX_IS_NUMBER = re.compile(r"^[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$")
8
11
 
9
12
 
10
13
  def is_number(value: str) -> bool:
@@ -18,4 +21,4 @@ def is_number(value: str) -> bool:
18
21
  Returns:
19
22
  True, if the string is a number.
20
23
  """
21
- return REGEX_IS_NUMBER.match(value) is not None
24
+ return _REGEX_IS_NUMBER.match(value) is not None
xloft/namedtuple.py CHANGED
@@ -14,7 +14,7 @@ from xloft.errors import (
14
14
 
15
15
 
16
16
  class NamedTuple:
17
- """This class imitates the behavior of the *named tuple*."""
17
+ """This class imitates the behavior of the `named tuple`."""
18
18
 
19
19
  def __init__(self, **kwargs: dict[str, Any]) -> None: # noqa: D107
20
20
  self.__dict__["_0D5rSmH9Sy2XUWb5_keys"] = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xloft
3
- Version: 0.6.0
3
+ Version: 0.6.1
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
@@ -0,0 +1,10 @@
1
+ xloft/__init__.py,sha256=owfU9Z6DZAKLdm-6mCV3alaUKdXTcPErg-sexMGvcFc,518
2
+ xloft/errors.py,sha256=hZcmF0QVVdvE5oM1jsXymRk_pPGgDSnUDM9wx9zJAYQ,895
3
+ xloft/human.py,sha256=WQbVOKpOvzGot-c7f3xitbS05JUIQmj3dreGtRV6GA0,1792
4
+ xloft/it_is.py,sha256=Uac1du1Z_rUf3e8uThLWcSYU0F27zThBDW6UMUEHz88,480
5
+ xloft/namedtuple.py,sha256=egEULlfATXM8gMhAMjQSHocwTudqqzXDGTYGZVSUGZs,5725
6
+ xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ xloft-0.6.1.dist-info/METADATA,sha256=Uu6iu9OFbeogIvdQjB9Weg73TsRynofz2E1z9GGxNUw,7502
8
+ xloft-0.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ xloft-0.6.1.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
10
+ xloft-0.6.1.dist-info/RECORD,,
xloft/constants.py DELETED
@@ -1,14 +0,0 @@
1
- """Constant variables.
2
-
3
- The module contains the following variables:
4
-
5
- - `DB_ROOT` - Path to root directory of database. `By default = "ScrubyDB"` (*in root of project*).
6
- """
7
-
8
- from __future__ import annotations
9
-
10
- __all__ = ("REGEX_IS_NUMBER",)
11
-
12
- import re
13
-
14
- REGEX_IS_NUMBER = re.compile(r"^[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$")
@@ -1,11 +0,0 @@
1
- xloft/__init__.py,sha256=X8EHVMXbfyOtAGzLgWsHGDesG9K8T9vQY218M4qAVDo,472
2
- xloft/constants.py,sha256=13t-t6EA5PVwLwaaHkb09sAZZUxaI3--Klzkk04Zwlo,335
3
- xloft/errors.py,sha256=hZcmF0QVVdvE5oM1jsXymRk_pPGgDSnUDM9wx9zJAYQ,895
4
- xloft/human.py,sha256=WQbVOKpOvzGot-c7f3xitbS05JUIQmj3dreGtRV6GA0,1792
5
- xloft/it_is.py,sha256=ZPdnQjOPCXw5_QXrpJWV56OT9AEA__762srO-5qSBOU,431
6
- xloft/namedtuple.py,sha256=EygsHfND0P7pw9r7Amzqi0gXsMkhpAdQVEYKDAu3rr0,5725
7
- xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- xloft-0.6.0.dist-info/METADATA,sha256=i-ZfVMUJYzIvTDjJF6rdbCWsDodXbpkW1mwUrPps1iQ,7502
9
- xloft-0.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- xloft-0.6.0.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
11
- xloft-0.6.0.dist-info/RECORD,,
File without changes