aspose-barcode-for-python-via-java 24.10.1__tar.gz → 24.12.0__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 (18) hide show
  1. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/PKG-INFO +1 -1
  2. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
  3. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
  4. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/asposebarcode/Assist.py +49 -11
  5. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/asposebarcode/ComplexBarcode.py +348 -245
  6. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/asposebarcode/Generation.py +73 -68
  7. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/asposebarcode/Recognition.py +423 -347
  8. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/asposebarcode/__init__.py +1 -1
  9. aspose-barcode-for-python-via-java-24.10.1/asposebarcode/jlib/aspose-barcode-python-24.10.jar → aspose-barcode-for-python-via-java-24.12.0/asposebarcode/jlib/aspose-barcode-python-24.12.jar +0 -0
  10. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/setup.py +1 -1
  11. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/MANIFEST.in +0 -0
  12. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/README.md +0 -0
  13. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
  14. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
  15. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
  16. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/license/End+User+License+Agreement.html +0 -0
  17. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
  18. {aspose-barcode-for-python-via-java-24.10.1 → aspose-barcode-for-python-via-java-24.12.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aspose-barcode-for-python-via-java
3
- Version: 24.10.1
3
+ Version: 24.12.0
4
4
  Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
5
5
  Home-page: UNKNOWN
6
6
  Author: Aspose
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aspose-barcode-for-python-via-java
3
- Version: 24.10.1
3
+ Version: 24.12.0
4
4
  Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
5
5
  Home-page: UNKNOWN
6
6
  Author: Aspose
@@ -11,6 +11,6 @@ asposebarcode/ComplexBarcode.py
11
11
  asposebarcode/Generation.py
12
12
  asposebarcode/Recognition.py
13
13
  asposebarcode/__init__.py
14
- asposebarcode/jlib/aspose-barcode-python-24.10.jar
14
+ asposebarcode/jlib/aspose-barcode-python-24.12.jar
15
15
  license/End+User+License+Agreement.html
16
16
  license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
@@ -1,8 +1,10 @@
1
1
  from __future__ import annotations
2
+
3
+ from abc import ABC, abstractmethod
2
4
  from typing import Optional, List, Union
3
5
  import jpype
4
6
 
5
- class BaseJavaClass(object):
7
+ class BaseJavaClass(ABC):
6
8
 
7
9
  def __init__(self, javaClass) -> None:
8
10
  if javaClass is None:
@@ -14,8 +16,9 @@ class BaseJavaClass(object):
14
16
  self.javaClassName = str(self.javaClass.getClass().getName())
15
17
  self.init()
16
18
 
19
+ @abstractmethod
17
20
  def init(self) -> None:
18
- raise Exception('You have to implement the method init!')
21
+ pass
19
22
 
20
23
  def getJavaClass(self):
21
24
  return self.javaClass
@@ -58,6 +61,30 @@ class Rectangle(BaseJavaClass):
58
61
  self.javaClass = javaRectangle(x, y, width, height)
59
62
  super().__init__(self.javaClass)
60
63
 
64
+ def __str__(self) -> str:
65
+ return f"{self.getX()},{self.getY()},{self.getWidth()},{self.getHeight()}"
66
+
67
+ def __eq__(self, other: Optional[Rectangle]) -> bool:
68
+ """!
69
+ Determines whether this instance and a specified object,
70
+ which must also be a Unit object, have the same value.
71
+ @param other: The Unit to compare to this instance.
72
+ @return: True if other is a Unit and its value is the same as this instance, otherwise False. If other is None, the method returns false.
73
+ """
74
+ if other is None:
75
+ return False
76
+ if not isinstance(other, Rectangle):
77
+ return NotImplemented
78
+ return bool(self.getJavaClass().equals(other.getJavaClass()))
79
+
80
+ def __hash__(self) -> int:
81
+ """!
82
+ Returns the hash code for the current instance.
83
+ @return A hash code for the current object.
84
+ """
85
+ return int(self.getJavaClass().hashCode())
86
+
87
+
61
88
  @staticmethod
62
89
  def construct(arg) -> Rectangle:
63
90
  rectangle = Rectangle(0, 0, 0, 0)
@@ -124,12 +151,6 @@ class Rectangle(BaseJavaClass):
124
151
  """
125
152
  return int(self.getJavaClass().getHeight())
126
153
 
127
- def toString(self) -> str:
128
- return str(self.getX()) + ',' + str(self.getY()) + ',' + str(self.getWidth()) + ',' + str(self.getHeight())
129
-
130
- def equals(self, obj: Rectangle) -> bool:
131
- return self.getJavaClass().equals(obj.getJavaClass())
132
-
133
154
  def intersectsWithInclusive(self, rectangle: Rectangle) -> bool:
134
155
  """!
135
156
  Determines if self rectangle intersects with rect.
@@ -212,11 +233,28 @@ class Point(BaseJavaClass):
212
233
  """
213
234
  self.getJavaClass().y = y
214
235
 
215
- def toString(self) -> str:
236
+ def __str__(self) -> str:
216
237
  return f"{self.getX()},{self.getY()}"
217
238
 
218
- def equals(self, obj: Point) -> bool:
219
- return self.getJavaClass().equals(obj.getJavaClass())
239
+ def __eq__(self, other: Optional[Point]) -> bool:
240
+ """!
241
+ Determines whether this instance and a specified object,
242
+ which must also be a Unit object, have the same value.
243
+ @param other: The Unit to compare to this instance.
244
+ @return: True if other is a Unit and its value is the same as this instance, otherwise False. If other is None, the method returns false.
245
+ """
246
+ if other is None:
247
+ return False
248
+ if not isinstance(other, Point):
249
+ return NotImplemented
250
+ return bool(self.getJavaClass().equals(other.getJavaClass()))
251
+
252
+ def __hash__(self) -> int:
253
+ """!
254
+ Returns the hash code for the current instance.
255
+ @return A hash code for the current object.
256
+ """
257
+ return int(self.getJavaClass().hashCode())
220
258
 
221
259
 
222
260
  class License(BaseJavaClass):