aspose-barcode-for-python-via-java 25.9.0__tar.gz → 25.11.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.
- {aspose-barcode-for-python-via-java-25.9.0/aspose_barcode_for_python_via_java.egg-info → aspose_barcode_for_python_via_java-25.11.0}/PKG-INFO +2 -2
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0/aspose_barcode_for_python_via_java.egg-info}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/asposebarcode/ComplexBarcode.py +116 -1
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/asposebarcode/Generation.py +14 -2
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/asposebarcode/Recognition.py +11 -4
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/asposebarcode/__init__.py +1 -1
- aspose-barcode-for-python-via-java-25.9.0/asposebarcode/jlib/aspose-barcode-python-25.9.jar → aspose_barcode_for_python_via_java-25.11.0/asposebarcode/jlib/aspose-barcode-python-25.11.jar +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/setup.py +2 -2
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/README.md +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 25.
|
|
2
|
+
Name: aspose_barcode_for_python_via_java
|
|
3
|
+
Version: 25.11.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: 25.
|
|
3
|
+
Version: 25.11.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-25.
|
|
14
|
+
asposebarcode/jlib/aspose-barcode-python-25.11.jar
|
|
15
15
|
license/End+User+License+Agreement.html
|
|
16
16
|
license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import warnings
|
|
3
4
|
from abc import abstractmethod
|
|
4
5
|
from typing import Union, List, Optional
|
|
5
6
|
import calendar
|
|
@@ -15,10 +16,16 @@ from . import Generation, Assist
|
|
|
15
16
|
|
|
16
17
|
class IComplexCodetext(Assist.BaseJavaClass):
|
|
17
18
|
"""!
|
|
18
|
-
Interface for complex codetext used with ComplexBarcodeGenerator.
|
|
19
|
+
Interface for complex codetext used with ComplexBarcodeGenerator.@deprecated since 3.2.0 Will be removed in 4.0.0. Use NewAwesomeClass instead.
|
|
19
20
|
"""
|
|
20
21
|
|
|
21
22
|
def __init__(self, javaClass):
|
|
23
|
+
warnings.warn(
|
|
24
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
25
|
+
"Use aspose_barcode package instead.",
|
|
26
|
+
DeprecationWarning,
|
|
27
|
+
stacklevel=2,
|
|
28
|
+
)
|
|
22
29
|
super().__init__(javaClass)
|
|
23
30
|
self.init()
|
|
24
31
|
|
|
@@ -91,6 +98,12 @@ class ComplexBarcodeGenerator(Assist.BaseJavaClass):
|
|
|
91
98
|
Creates an instance of ComplexBarcodeGenerator.
|
|
92
99
|
@param complexCodetext Complex codetext
|
|
93
100
|
"""
|
|
101
|
+
warnings.warn(
|
|
102
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
103
|
+
"Use aspose_barcode package instead.",
|
|
104
|
+
DeprecationWarning,
|
|
105
|
+
stacklevel=2,
|
|
106
|
+
)
|
|
94
107
|
try:
|
|
95
108
|
javaComplexBarcodeGenerator = jpype.JClass(ComplexBarcodeGenerator.javaClassName)
|
|
96
109
|
super().__init__(javaComplexBarcodeGenerator(complexCodetext.getJavaClass()))
|
|
@@ -144,6 +157,12 @@ class Address(Assist.BaseJavaClass):
|
|
|
144
157
|
javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAddress"
|
|
145
158
|
|
|
146
159
|
def __init__(self) -> None:
|
|
160
|
+
warnings.warn(
|
|
161
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
162
|
+
"Use aspose_barcode package instead.",
|
|
163
|
+
DeprecationWarning,
|
|
164
|
+
stacklevel=2,
|
|
165
|
+
)
|
|
147
166
|
jclass = jpype.JClass(Address.javaClassName)
|
|
148
167
|
super().__init__(jclass())
|
|
149
168
|
self.init()
|
|
@@ -392,6 +411,12 @@ class AlternativeScheme(Assist.BaseJavaClass):
|
|
|
392
411
|
javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAlternativeScheme"
|
|
393
412
|
|
|
394
413
|
def __init__(self, instruction: str) -> None:
|
|
414
|
+
warnings.warn(
|
|
415
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
416
|
+
"Use aspose_barcode package instead.",
|
|
417
|
+
DeprecationWarning,
|
|
418
|
+
stacklevel=2,
|
|
419
|
+
)
|
|
395
420
|
javaAlternativeScheme = jpype.JClass(AlternativeScheme.javaClassName)
|
|
396
421
|
super().__init__(javaAlternativeScheme(instruction))
|
|
397
422
|
|
|
@@ -805,6 +830,12 @@ class SwissQRCodetext(IComplexCodetext):
|
|
|
805
830
|
@param bill SwissQR bill data
|
|
806
831
|
@throws BarCodeException
|
|
807
832
|
"""
|
|
833
|
+
warnings.warn(
|
|
834
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
835
|
+
"Use aspose_barcode package instead.",
|
|
836
|
+
DeprecationWarning,
|
|
837
|
+
stacklevel=2,
|
|
838
|
+
)
|
|
808
839
|
javaClass = jpype.JClass(SwissQRCodetext.javaClassName)
|
|
809
840
|
|
|
810
841
|
# self.bill: Optional[SwissQRBill] = None
|
|
@@ -861,6 +892,12 @@ class MailmarkCodetext(IComplexCodetext):
|
|
|
861
892
|
Initializes a new instance of the MailmarkCodetext class.
|
|
862
893
|
@param: mailmarkCodetext:
|
|
863
894
|
"""
|
|
895
|
+
warnings.warn(
|
|
896
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
897
|
+
"Use aspose_barcode package instead.",
|
|
898
|
+
DeprecationWarning,
|
|
899
|
+
stacklevel=2,
|
|
900
|
+
)
|
|
864
901
|
java_class_link = jpype.JClass(self.javaClassName)
|
|
865
902
|
javaClass = java_class_link()
|
|
866
903
|
super().__init__(javaClass)
|
|
@@ -1408,6 +1445,12 @@ class MaxiCodeStandardCodetext(MaxiCodeCodetext):
|
|
|
1408
1445
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStandardCodetext"
|
|
1409
1446
|
|
|
1410
1447
|
def __init__(self) -> None:
|
|
1448
|
+
warnings.warn(
|
|
1449
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
1450
|
+
"Use aspose_barcode package instead.",
|
|
1451
|
+
DeprecationWarning,
|
|
1452
|
+
stacklevel=2,
|
|
1453
|
+
)
|
|
1411
1454
|
try:
|
|
1412
1455
|
java_class = jpype.JClass(MaxiCodeStandardCodetext.JAVA_CLASS_NAME)
|
|
1413
1456
|
super().__init__(java_class())
|
|
@@ -1491,6 +1534,12 @@ class MaxiCodeStandartSecondMessage(MaxiCodeSecondMessage):
|
|
|
1491
1534
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStandartSecondMessage"
|
|
1492
1535
|
|
|
1493
1536
|
def __init__(self) -> None:
|
|
1537
|
+
warnings.warn(
|
|
1538
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
1539
|
+
"Use aspose_barcode package instead.",
|
|
1540
|
+
DeprecationWarning,
|
|
1541
|
+
stacklevel=2,
|
|
1542
|
+
)
|
|
1494
1543
|
try:
|
|
1495
1544
|
java_class = jpype.JClass(MaxiCodeStandartSecondMessage.JAVA_CLASS_NAME)
|
|
1496
1545
|
super().__init__(java_class())
|
|
@@ -1564,6 +1613,12 @@ class MaxiCodeStructuredCodetext(MaxiCodeCodetext):
|
|
|
1564
1613
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStructuredCodetext"
|
|
1565
1614
|
|
|
1566
1615
|
def __init__(self, javaClass) -> None:
|
|
1616
|
+
warnings.warn(
|
|
1617
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
1618
|
+
"Use aspose_barcode package instead.",
|
|
1619
|
+
DeprecationWarning,
|
|
1620
|
+
stacklevel=2,
|
|
1621
|
+
)
|
|
1567
1622
|
try:
|
|
1568
1623
|
super().__init__(javaClass)
|
|
1569
1624
|
self.maxiCodeSecondMessage: Optional[MaxiCodeSecondMessage] = None
|
|
@@ -1741,6 +1796,12 @@ class MaxiCodeCodetextMode2(MaxiCodeStructuredCodetext):
|
|
|
1741
1796
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeCodetextMode2"
|
|
1742
1797
|
|
|
1743
1798
|
def __init__(self) -> None:
|
|
1799
|
+
warnings.warn(
|
|
1800
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
1801
|
+
"Use aspose_barcode package instead.",
|
|
1802
|
+
DeprecationWarning,
|
|
1803
|
+
stacklevel=2,
|
|
1804
|
+
)
|
|
1744
1805
|
try:
|
|
1745
1806
|
java_class = jpype.JClass(MaxiCodeCodetextMode2.JAVA_CLASS_NAME)
|
|
1746
1807
|
super().__init__(java_class())
|
|
@@ -1838,6 +1899,12 @@ class MaxiCodeCodetextMode3(MaxiCodeStructuredCodetext):
|
|
|
1838
1899
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeCodetextMode3"
|
|
1839
1900
|
|
|
1840
1901
|
def __init__(self) -> None:
|
|
1902
|
+
warnings.warn(
|
|
1903
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
1904
|
+
"Use aspose_barcode package instead.",
|
|
1905
|
+
DeprecationWarning,
|
|
1906
|
+
stacklevel=2,
|
|
1907
|
+
)
|
|
1841
1908
|
try:
|
|
1842
1909
|
java_class = jpype.JClass(MaxiCodeCodetextMode3.JAVA_CLASS_NAME)
|
|
1843
1910
|
super().__init__(java_class())
|
|
@@ -1873,6 +1940,12 @@ class MaxiCodeStructuredSecondMessage(MaxiCodeSecondMessage):
|
|
|
1873
1940
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStructuredSecondMessage"
|
|
1874
1941
|
|
|
1875
1942
|
def __init__(self) -> None:
|
|
1943
|
+
warnings.warn(
|
|
1944
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
1945
|
+
"Use aspose_barcode package instead.",
|
|
1946
|
+
DeprecationWarning,
|
|
1947
|
+
stacklevel=2,
|
|
1948
|
+
)
|
|
1876
1949
|
try:
|
|
1877
1950
|
java_class = jpype.JClass(MaxiCodeStructuredSecondMessage.JAVA_CLASS_NAME)
|
|
1878
1951
|
super().__init__(java_class())
|
|
@@ -2039,6 +2112,12 @@ class HIBCLICCombinedCodetext(HIBCLICComplexCodetext):
|
|
|
2039
2112
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICCombinedCodetext"
|
|
2040
2113
|
|
|
2041
2114
|
def __init__(self) -> None:
|
|
2115
|
+
warnings.warn(
|
|
2116
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2117
|
+
"Use aspose_barcode package instead.",
|
|
2118
|
+
DeprecationWarning,
|
|
2119
|
+
stacklevel=2,
|
|
2120
|
+
)
|
|
2042
2121
|
java_class_link = jpype.JClass(HIBCLICCombinedCodetext.JAVA_CLASS_NAME)
|
|
2043
2122
|
javaClass = java_class_link()
|
|
2044
2123
|
self.auto_PrimaryData: Optional[PrimaryData] = None
|
|
@@ -2143,6 +2222,12 @@ class HIBCLICPrimaryDataCodetext(HIBCLICComplexCodetext):
|
|
|
2143
2222
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICPrimaryDataCodetext"
|
|
2144
2223
|
|
|
2145
2224
|
def __init__(self) -> None:
|
|
2225
|
+
warnings.warn(
|
|
2226
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2227
|
+
"Use aspose_barcode package instead.",
|
|
2228
|
+
DeprecationWarning,
|
|
2229
|
+
stacklevel=2,
|
|
2230
|
+
)
|
|
2146
2231
|
java_class_link = jpype.JClass(HIBCLICPrimaryDataCodetext.JAVA_CLASS_NAME)
|
|
2147
2232
|
javaClass = java_class_link()
|
|
2148
2233
|
self.data: Optional[PrimaryData] = None
|
|
@@ -2238,6 +2323,12 @@ class HIBCLICSecondaryAndAdditionalDataCodetext(HIBCLICComplexCodetext):
|
|
|
2238
2323
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext"
|
|
2239
2324
|
|
|
2240
2325
|
def __init__(self) -> None:
|
|
2326
|
+
warnings.warn(
|
|
2327
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2328
|
+
"Use aspose_barcode package instead.",
|
|
2329
|
+
DeprecationWarning,
|
|
2330
|
+
stacklevel=2,
|
|
2331
|
+
)
|
|
2241
2332
|
java_class_link = jpype.JClass(HIBCLICSecondaryAndAdditionalDataCodetext.JAVA_CLASS_NAME)
|
|
2242
2333
|
javaClass = java_class_link()
|
|
2243
2334
|
self.data: Optional[SecondaryAndAdditionalData] = None
|
|
@@ -2340,6 +2431,12 @@ class HIBCPASCodetext(IComplexCodetext):
|
|
|
2340
2431
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCPASCodetext"
|
|
2341
2432
|
|
|
2342
2433
|
def __init__(self) -> None:
|
|
2434
|
+
warnings.warn(
|
|
2435
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2436
|
+
"Use aspose_barcode package instead.",
|
|
2437
|
+
DeprecationWarning,
|
|
2438
|
+
stacklevel=2,
|
|
2439
|
+
)
|
|
2343
2440
|
java_class_link = jpype.JClass(HIBCPASCodetext.JAVA_CLASS_NAME)
|
|
2344
2441
|
javaClass = java_class_link()
|
|
2345
2442
|
super().__init__(javaClass)
|
|
@@ -2460,6 +2557,12 @@ class HIBCPASRecord(Assist.BaseJavaClass):
|
|
|
2460
2557
|
@param: dataType:Type of data.
|
|
2461
2558
|
@param: data:Data string.
|
|
2462
2559
|
"""
|
|
2560
|
+
warnings.warn(
|
|
2561
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2562
|
+
"Use aspose_barcode package instead.",
|
|
2563
|
+
DeprecationWarning,
|
|
2564
|
+
stacklevel=2,
|
|
2565
|
+
)
|
|
2463
2566
|
java_class_link = jpype.JClass(HIBCPASRecord.JAVA_CLASS_NAME)
|
|
2464
2567
|
javaClass = java_class_link(dataType.value, data)
|
|
2465
2568
|
super().__init__(javaClass)
|
|
@@ -2526,6 +2629,12 @@ class PrimaryData(Assist.BaseJavaClass):
|
|
|
2526
2629
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwPrimaryData"
|
|
2527
2630
|
|
|
2528
2631
|
def __init__(self) -> None:
|
|
2632
|
+
warnings.warn(
|
|
2633
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2634
|
+
"Use aspose_barcode package instead.",
|
|
2635
|
+
DeprecationWarning,
|
|
2636
|
+
stacklevel=2,
|
|
2637
|
+
)
|
|
2529
2638
|
java_class_link = jpype.JClass(PrimaryData.JAVA_CLASS_NAME)
|
|
2530
2639
|
javaClass = java_class_link()
|
|
2531
2640
|
super().__init__(javaClass)
|
|
@@ -2621,6 +2730,12 @@ class SecondaryAndAdditionalData(Assist.BaseJavaClass):
|
|
|
2621
2730
|
JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwSecondaryAndAdditionalData"
|
|
2622
2731
|
|
|
2623
2732
|
def __init__(self) -> None:
|
|
2733
|
+
warnings.warn(
|
|
2734
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
2735
|
+
"Use aspose_barcode package instead.",
|
|
2736
|
+
DeprecationWarning,
|
|
2737
|
+
stacklevel=2,
|
|
2738
|
+
)
|
|
2624
2739
|
java_class_link = jpype.JClass(SecondaryAndAdditionalData.JAVA_CLASS_NAME)
|
|
2625
2740
|
javaClass = java_class_link()
|
|
2626
2741
|
super().__init__(javaClass)
|
|
@@ -46,6 +46,12 @@ class BarcodeGenerator(Assist.BaseJavaClass):
|
|
|
46
46
|
\endcode
|
|
47
47
|
@throws BarCodeException
|
|
48
48
|
"""
|
|
49
|
+
warnings.warn(
|
|
50
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
51
|
+
"Use aspose_barcode package instead.",
|
|
52
|
+
DeprecationWarning,
|
|
53
|
+
stacklevel=2,
|
|
54
|
+
)
|
|
49
55
|
javaBarcodeGenerator = jpype.JClass(self.javaClassName)
|
|
50
56
|
if not isinstance(encodeType, EncodeTypes):
|
|
51
57
|
raise Assist.BarCodeException("Waiting for EncodeTypes type, but got '" + type(encodeType).__name__ + "'")
|
|
@@ -147,7 +153,7 @@ class BarcodeGenerator(Assist.BaseJavaClass):
|
|
|
147
153
|
\endcode
|
|
148
154
|
"""
|
|
149
155
|
try:
|
|
150
|
-
bytes_data = base64.b64decode(str(self.javaClass.
|
|
156
|
+
bytes_data = base64.b64decode(str(self.javaClass.generateBarCodeBase64Image(BarCodeImageFormat.PNG.value)))
|
|
151
157
|
buf = io.BytesIO(bytes_data)
|
|
152
158
|
bitmap = Image.open(buf)
|
|
153
159
|
return bitmap
|
|
@@ -164,7 +170,7 @@ class BarcodeGenerator(Assist.BaseJavaClass):
|
|
|
164
170
|
generator.save(self.image_path_to_save3, Generation.BarCodeImageFormat.PNG)
|
|
165
171
|
\endcode
|
|
166
172
|
"""
|
|
167
|
-
bytes_data = bytearray(base64.b64decode(str(self.javaClass.
|
|
173
|
+
bytes_data = bytearray(base64.b64decode(str(self.javaClass.generateBarCodeBase64Image(imageFormat.value))))
|
|
168
174
|
with open(imagePath, "wb") as file:
|
|
169
175
|
file.write(bytes_data)
|
|
170
176
|
|
|
@@ -981,6 +987,12 @@ class Unit(Assist.BaseJavaClass):
|
|
|
981
987
|
"""
|
|
982
988
|
|
|
983
989
|
def __init__(self, source:Union[Unit, Any]) -> None:
|
|
990
|
+
warnings.warn(
|
|
991
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
992
|
+
"Use aspose_barcode package instead.",
|
|
993
|
+
DeprecationWarning,
|
|
994
|
+
stacklevel=2,
|
|
995
|
+
)
|
|
984
996
|
if isinstance(source, Unit):
|
|
985
997
|
jClass = source.getJavaClass()
|
|
986
998
|
else:
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import warnings
|
|
2
4
|
from datetime import datetime
|
|
3
5
|
import jpype
|
|
4
6
|
import base64
|
|
@@ -37,6 +39,12 @@ class BarCodeReader(Assist.BaseJavaClass):
|
|
|
37
39
|
@param: areas array of object by type Rectangle
|
|
38
40
|
@param: decodeTypes the array of objects by DecodeType
|
|
39
41
|
"""
|
|
42
|
+
warnings.warn(
|
|
43
|
+
"asposebarcode package is deprecated since 26.1 and will be removed"
|
|
44
|
+
"Use aspose_barcode package instead.",
|
|
45
|
+
DeprecationWarning,
|
|
46
|
+
stacklevel=2,
|
|
47
|
+
)
|
|
40
48
|
self.qualitySettings: Optional[QualitySettings] = None
|
|
41
49
|
self.recognizedResults: Optional[List[BarCodeResult]] = None
|
|
42
50
|
self.barcodeSettings: Optional[BarcodeSettings] = None
|
|
@@ -206,7 +214,7 @@ class BarCodeReader(Assist.BaseJavaClass):
|
|
|
206
214
|
i += 1
|
|
207
215
|
return self.recognizedResults
|
|
208
216
|
except Exception as e:
|
|
209
|
-
if
|
|
217
|
+
if "com.aspose.mw.barcode.recognition.MwRecognitionAbortedException: Recognition is aborted." in str(e):
|
|
210
218
|
raise RecognitionAbortedException(str(e), int(e.getExecutionTime()))
|
|
211
219
|
raise e
|
|
212
220
|
|
|
@@ -1012,13 +1020,12 @@ class BarCodeResult(Assist.BaseJavaClass):
|
|
|
1012
1020
|
value = self.getJavaClass().getCodeText(encoding)
|
|
1013
1021
|
return str(value) if value is not None else None
|
|
1014
1022
|
|
|
1015
|
-
def getCodeBytes(self) -> List[
|
|
1023
|
+
def getCodeBytes(self) -> List[int]:
|
|
1016
1024
|
"""!
|
|
1017
1025
|
Gets the encoded code bytes.
|
|
1018
1026
|
Value: The code bytes of the barcode.
|
|
1019
1027
|
"""
|
|
1020
|
-
|
|
1021
|
-
return _str.split(",")
|
|
1028
|
+
return [int(b) for b in self.getJavaClass().getCodeBytes()]
|
|
1022
1029
|
|
|
1023
1030
|
def getCodeType(self) -> DecodeType:
|
|
1024
1031
|
"""!
|
|
@@ -3,6 +3,6 @@ import os
|
|
|
3
3
|
from asposebarcode import Generation, Recognition, Assist
|
|
4
4
|
|
|
5
5
|
__asposebarcode_dir__ = os.path.dirname(__file__)
|
|
6
|
-
__barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-25.
|
|
6
|
+
__barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-25.11.jar"
|
|
7
7
|
jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.class.path=%s" % __barcode_jar_path__)
|
|
8
8
|
__all__ = ['Assist','Recognition','Generation','ComplexBarcode']
|
{aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/MANIFEST.in
RENAMED
|
File without changes
|
{aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aspose-barcode-for-python-via-java-25.9.0 → aspose_barcode_for_python_via_java-25.11.0}/setup.cfg
RENAMED
|
File without changes
|