pyRegRep 10__tar.gz → 11__tar.gz

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.
@@ -1,12 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRegRep
3
- Version: 10
3
+ Version: 11
4
4
  Summary: Your package description
5
5
  Author: Andrey Shapovalov
6
6
  Author-email: mt.andrey@gmail.com
7
7
  Requires-Python: >=3.10
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
+ Requires-Dist: lxml>=5.2.1
11
+ Requires-Dist: xmltodict>=0.13.0
10
12
  Dynamic: author-email
11
13
  Dynamic: license-file
12
14
 
@@ -44,11 +46,10 @@ pip install pyRegRep
44
46
 
45
47
  # З локального джерела (editable)
46
48
  pip install -e .
47
-
48
- # Залежності вручну
49
- pip install -r requirements.txt
50
49
  ```
51
50
 
51
+ Під час встановлення через `pip install pyRegRep` або `pip install -e .` runtime-залежності (`lxml`, `xmltodict`) встановлюються автоматично.
52
+
52
53
  ## Швидкий старт
53
54
 
54
55
  ### Парсування XML документу
@@ -290,4 +291,4 @@ MIT License — див. файл [LICENSE](LICENSE)
290
291
 
291
292
  ---
292
293
 
293
- **Версія:** 10 · **Оновлено:** 2026-03-11
294
+ **Версія:** 11 · **Оновлено:** 2026-03-11
@@ -32,11 +32,10 @@ pip install pyRegRep
32
32
 
33
33
  # З локального джерела (editable)
34
34
  pip install -e .
35
-
36
- # Залежності вручну
37
- pip install -r requirements.txt
38
35
  ```
39
36
 
37
+ Під час встановлення через `pip install pyRegRep` або `pip install -e .` runtime-залежності (`lxml`, `xmltodict`) встановлюються автоматично.
38
+
40
39
  ## Швидкий старт
41
40
 
42
41
  ### Парсування XML документу
@@ -278,4 +277,4 @@ MIT License — див. файл [LICENSE](LICENSE)
278
277
 
279
278
  ---
280
279
 
281
- **Версія:** 10 · **Оновлено:** 2026-03-11
280
+ **Версія:** 11 · **Оновлено:** 2026-03-11
@@ -1,12 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRegRep
3
- Version: 10
3
+ Version: 11
4
4
  Summary: Your package description
5
5
  Author: Andrey Shapovalov
6
6
  Author-email: mt.andrey@gmail.com
7
7
  Requires-Python: >=3.10
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
+ Requires-Dist: lxml>=5.2.1
11
+ Requires-Dist: xmltodict>=0.13.0
10
12
  Dynamic: author-email
11
13
  Dynamic: license-file
12
14
 
@@ -44,11 +46,10 @@ pip install pyRegRep
44
46
 
45
47
  # З локального джерела (editable)
46
48
  pip install -e .
47
-
48
- # Залежності вручну
49
- pip install -r requirements.txt
50
49
  ```
51
50
 
51
+ Під час встановлення через `pip install pyRegRep` або `pip install -e .` runtime-залежності (`lxml`, `xmltodict`) встановлюються автоматично.
52
+
52
53
  ## Швидкий старт
53
54
 
54
55
  ### Парсування XML документу
@@ -290,4 +291,4 @@ MIT License — див. файл [LICENSE](LICENSE)
290
291
 
291
292
  ---
292
293
 
293
- **Версія:** 10 · **Оновлено:** 2026-03-11
294
+ **Версія:** 11 · **Оновлено:** 2026-03-11
@@ -5,6 +5,7 @@ setup.py
5
5
  pyRegRep.egg-info/PKG-INFO
6
6
  pyRegRep.egg-info/SOURCES.txt
7
7
  pyRegRep.egg-info/dependency_links.txt
8
+ pyRegRep.egg-info/requires.txt
8
9
  pyRegRep.egg-info/top_level.txt
9
10
  pyRegRep4/NS.py
10
11
  pyRegRep4/RIMElement.py
@@ -0,0 +1,2 @@
1
+ lxml>=5.2.1
2
+ xmltodict>=0.13.0
@@ -73,12 +73,20 @@ class Parsing:
73
73
  # Витягування основних елементів
74
74
  try:
75
75
  self.query = self.doc.find(".//query:Query", namespaces=self._ns)
76
- self.exception = self.doc.find(".//rs:Exception", namespaces=self._ns)
77
- self.objects = self.doc.findall(".//rim:RegistryObject", namespaces=self._ns)
78
- except KeyError as e:
76
+ except Exception as e:
79
77
  _logger.warning(f"Namespace не знайдено: {e}")
80
78
  self.query = None
79
+
80
+ try:
81
+ self.exception = self.doc.find(".//rs:Exception", namespaces=self._ns)
82
+ except Exception as e:
83
+ _logger.warning(f"Namespace не знайдено: {e}")
81
84
  self.exception = None
85
+
86
+ try:
87
+ self.objects = self.doc.findall(".//rim:RegistryObject", namespaces=self._ns)
88
+ except Exception as e:
89
+ _logger.warning(f"Namespace не знайдено: {e}")
82
90
  self.objects = []
83
91
 
84
92
  # Кешований результат
@@ -31,6 +31,6 @@ __all__ = [
31
31
  "_InternationalStringValueType",
32
32
  ]
33
33
 
34
- __version__ = "10"
34
+ __version__ = "11"
35
35
  __author__ = "Andrey Shapovalov"
36
36
 
@@ -4,12 +4,15 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyRegRep"
7
- version = "10"
7
+ version = "11"
8
8
  description = "Your package description"
9
9
  authors = [{ name="Andrey Shapovalov" }]
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.10"
12
- dependencies = []
12
+ dependencies = [
13
+ "lxml>=5.2.1",
14
+ "xmltodict>=0.13.0",
15
+ ]
13
16
 
14
17
  [tool.pytest.ini_options]
15
18
  pythonpath = ["."]
@@ -2,12 +2,15 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pyRegRep",
5
- version="10",
5
+ version="11",
6
6
  description="Бібліотека для роботи з реєстрами та репозитаріями в Україні",
7
7
  packages=find_packages(),
8
8
  license="MIT",
9
9
  author="Andrii Shapovalov",
10
10
  author_email="mt.andrey@gmail.com",
11
11
  include_package_data=True,
12
- install_requires=[],
12
+ install_requires=[
13
+ "lxml>=5.2.1",
14
+ "xmltodict>=0.13.0",
15
+ ],
13
16
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes