inpython-package 1.1.6__tar.gz → 1.1.7__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.
Files changed (30) hide show
  1. {inpython_package-1.1.6 → inpython_package-1.1.7}/PKG-INFO +1 -1
  2. inpython_package-1.1.7/inpython/inqrcode/__init__.py +6 -0
  3. {inpython_package-1.1.6/inpython/inqrcode → inpython_package-1.1.7/inpython/inrest}/__init__.py +1 -1
  4. inpython_package-1.1.7/inpython/inxml/__init__.py +6 -0
  5. inpython_package-1.1.7/inpython/inxml/validator.py +43 -0
  6. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython_package.egg-info/PKG-INFO +1 -1
  7. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython_package.egg-info/SOURCES.txt +2 -0
  8. {inpython_package-1.1.6 → inpython_package-1.1.7}/setup.py +1 -1
  9. inpython_package-1.1.6/inpython/inrest/__init__.py +0 -6
  10. {inpython_package-1.1.6 → inpython_package-1.1.7}/LICENSE.txt +0 -0
  11. {inpython_package-1.1.6 → inpython_package-1.1.7}/README.md +0 -0
  12. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/__init__.py +0 -0
  13. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/__main__.py +0 -0
  14. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/aotools/__init__.py +0 -0
  15. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/aotools/aogeo.py +0 -0
  16. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/ingraph/__init__.py +0 -0
  17. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/ingraph/ingraph.py +0 -0
  18. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/inqrcode/inqrcode.py +0 -0
  19. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/inqrcode/paymentqrcode.py +0 -0
  20. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/inrest/in_jwt.py +0 -0
  21. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/intools/Servalux-devis.py +0 -0
  22. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/intools/__init__.py +0 -0
  23. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/intools/in_docx.py +0 -0
  24. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/intools/in_projet.py +0 -0
  25. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/intools/in_test.py +0 -0
  26. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython/intools/xls_to_csv.py +0 -0
  27. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython_package.egg-info/dependency_links.txt +0 -0
  28. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython_package.egg-info/requires.txt +0 -0
  29. {inpython_package-1.1.6 → inpython_package-1.1.7}/inpython_package.egg-info/top_level.txt +0 -0
  30. {inpython_package-1.1.6 → inpython_package-1.1.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inpython-package
3
- Version: 1.1.6
3
+ Version: 1.1.7
4
4
  Summary: # Infodata's IN-Tools U2Python Package
5
5
  Home-page: https://bitbucket.org/infodata-dev/inpython
6
6
  Author: infodata
@@ -0,0 +1,6 @@
1
+ # inpython.inqrcode init file
2
+ # executed when 'from inpython.inqrcode import *'
3
+
4
+ # !! update the list when new modules are added !!
5
+
6
+ __all__ = ["inqrcode", "paymentqrcode"]
@@ -3,4 +3,4 @@
3
3
 
4
4
  # !! update the list when new modules are added !!
5
5
 
6
- __all__ = ["inqrcode","paymentqrcode"]
6
+ __all__ = ["in_jwt"]
@@ -0,0 +1,6 @@
1
+ # inpython.inqrcode init file
2
+ # executed when 'from inpython.inqrcode import *'
3
+
4
+ # !! update the list when new modules are added !!
5
+
6
+ __all__ = ["validator"]
@@ -0,0 +1,43 @@
1
+ # ----------------------------------------------------------------------------
2
+ # Valide un xml à l'aide d'un xsdd
3
+ # ----------------------------------------------------------------------------
4
+ # * Parametres :
5
+ # Input :
6
+ # Path du xml
7
+ # Path du xsd
8
+ # Output :
9
+ # 1 si xml valide sinon 0
10
+ # ----------------------------------------------------------------------------
11
+ # 05/04/2024 [JCD] : creation
12
+ # ----------------------------------------------------------------------------
13
+ import sys
14
+ from lxml import etree
15
+
16
+ def validateXml(xml_path: str, xsd_path: str) -> bool:
17
+
18
+ xmlschema_doc = etree.parse(xsd_path)
19
+ xmlschema = etree.XMLSchema(xmlschema_doc)
20
+
21
+ xml_doc = etree.parse(xml_path)
22
+ result = xmlschema.validate(xml_doc)
23
+
24
+ return result
25
+
26
+ if __name__ == '__main__':
27
+ arguments = sys.argv
28
+ try:
29
+ if len(arguments) == 3:
30
+ xml_filename = arguments[1].replace('\\','/') # Premier argument
31
+ xsd_filename = arguments[2].replace('\\','/') # Deuxième argument
32
+ if validateXml(xml_filename, xsd_filename):
33
+ print('1')
34
+ else:
35
+ print('0')
36
+ else:
37
+ raise Exception("Number of argument incorrect")
38
+ except OSError as ose:
39
+ raise Exception(ose)
40
+ except:
41
+ # toute exception issue de la séquence try arrive ici et est remontée à l'appelant 'uvpython'
42
+ raise # pour que l'appelant reçoive l'exception
43
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inpython-package
3
- Version: 1.1.6
3
+ Version: 1.1.7
4
4
  Summary: # Infodata's IN-Tools U2Python Package
5
5
  Home-page: https://bitbucket.org/infodata-dev/inpython
6
6
  Author: infodata
@@ -18,6 +18,8 @@ inpython/intools/in_docx.py
18
18
  inpython/intools/in_projet.py
19
19
  inpython/intools/in_test.py
20
20
  inpython/intools/xls_to_csv.py
21
+ inpython/inxml/__init__.py
22
+ inpython/inxml/validator.py
21
23
  inpython_package.egg-info/PKG-INFO
22
24
  inpython_package.egg-info/SOURCES.txt
23
25
  inpython_package.egg-info/dependency_links.txt
@@ -9,7 +9,7 @@ with open("README.md", "r") as fh:
9
9
 
10
10
  setup(
11
11
  name="inpython-package",
12
- version="1.1.6",
12
+ version="1.1.7",
13
13
  author="infodata",
14
14
  author_email="efv@infodata.lu",
15
15
  packages=find_packages(),
@@ -1,6 +0,0 @@
1
- # inpython.in_jwt init file
2
- # executed when 'from inpython.in_jwt import *'
3
-
4
- # !! update the list when new modules are added !!
5
-
6
- __all__ = ["in_jwt"]