libscanner-unir 1.0.1__py3-none-win_amd64.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.
Files changed (32) hide show
  1. libscanner_unir-1.0.1.dist-info/BUILD-INFO.json +17 -0
  2. libscanner_unir-1.0.1.dist-info/METADATA +106 -0
  3. libscanner_unir-1.0.1.dist-info/RECORD +32 -0
  4. libscanner_unir-1.0.1.dist-info/WHEEL +4 -0
  5. libscanner_unir-1.0.1.dist-info/entry_points.txt +2 -0
  6. libscanner_unir-1.0.1.dist-info/licenses/GCC-COPYING.RUNTIME.txt +73 -0
  7. libscanner_unir-1.0.1.dist-info/licenses/GCC-COPYING3.txt +674 -0
  8. libscanner_unir-1.0.1.dist-info/licenses/LICENSE.en.txt +115 -0
  9. libscanner_unir-1.0.1.dist-info/licenses/LICENSE.txt +103 -0
  10. libscanner_unir-1.0.1.dist-info/licenses/MinGW-w64-runtime-COPYING.txt +265 -0
  11. libscanner_unir-1.0.1.dist-info/licenses/OpenCV-COPYRIGHT.txt +62 -0
  12. libscanner_unir-1.0.1.dist-info/licenses/OpenCV-LICENSE.txt +202 -0
  13. libscanner_unir-1.0.1.dist-info/licenses/THIRD-PARTY-NOTICES.txt +45 -0
  14. libscanner_unir-1.0.1.dist-info/licenses/libjpeg-turbo-LICENSE.md +135 -0
  15. libscanner_unir-1.0.1.dist-info/licenses/libpng-LICENSE.txt +134 -0
  16. libscanner_unir-1.0.1.dist-info/licenses/monocypher-LICENCE.md +167 -0
  17. libscanner_unir-1.0.1.dist-info/licenses/stb-LICENSE.txt +43 -0
  18. libscanner_unir-1.0.1.dist-info/licenses/winpthreads-COPYING.txt +57 -0
  19. libscanner_unir-1.0.1.dist-info/licenses/zlib-LICENSE.txt +22 -0
  20. unir/__init__.py +78 -0
  21. unir/__main__.py +7 -0
  22. unir/_cli.py +54 -0
  23. unir/_ffi.py +225 -0
  24. unir/_i18n.py +36 -0
  25. unir/_lib/unir.exe +0 -0
  26. unir/_lib/unir_c.dll +0 -0
  27. unir/image.py +234 -0
  28. unir/license.py +97 -0
  29. unir/paths.py +27 -0
  30. unir/scanner.py +196 -0
  31. unir/settings.py +102 -0
  32. unir/symbology.py +44 -0
@@ -0,0 +1,17 @@
1
+ {
2
+ "product": "unir",
3
+ "version": "1.0.1",
4
+ "license": "enforced",
5
+ "insecure_test": false,
6
+ "license_server": "https://libscanner.com",
7
+ "license_product": "12a66187-9ab7-4908-96de-416f57f7059a",
8
+ "license_key_prefix": "UNIR",
9
+ "license_keys": "0da828a5fa63e4ce40f13da6e5582121778cf60a487f27b854c102ebde402b35",
10
+ "dev_env": false,
11
+ "buildtype": "release",
12
+ "optimization": "3",
13
+ "system": "windows",
14
+ "cpu_family": "x86_64",
15
+ "engines": "dmr 1.0.13, ssccr 0.1.0",
16
+ "date": "2026-11-01T14:52:55Z"
17
+ }
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.1
2
+ Name: libscanner-unir
3
+ Version: 1.0.1
4
+ Summary: Чтение DataMatrix, Code 128, GS1-128 и EAN/UPC одним вызовом — universal barcode and DataMatrix reader
5
+ Keywords: datamatrix,barcode,code128,gs1-128,sscc,ean-13,upc,gs1,chestny-znak,scanner
6
+ License: Proprietary
7
+ Classifier: License :: Other/Proprietary License
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Topic :: Scientific/Engineering :: Image Recognition
12
+ Classifier: Topic :: Multimedia :: Graphics :: Capture
13
+ Classifier: Natural Language :: Russian
14
+ Project-URL: Homepage, https://libscanner.com
15
+ Project-URL: Documentation, https://libscanner.com/docs/universal-reader/?lang=python
16
+ Requires-Python: >=3.9
17
+ Description-Content-Type: text/markdown
18
+
19
+ # unir — универсальный ридер кодов для Python
20
+
21
+ Читает одним вызовом коды разных символик на одном кадре: DataMatrix (ECC200,
22
+ ГОСТ Р ИСО/МЭК 16022, коды «Честного знака»), Code 128, GS1-128 (SSCC),
23
+ EAN-13, EAN-8, UPC-A и UPC-E. Кадры камеры и конвейера, фото этикеток.
24
+
25
+ Документация: https://libscanner.com/docs/universal-reader/?lang=python
26
+
27
+ > **English.** A universal barcode reader for Python: DataMatrix (GS1),
28
+ > Code 128, GS1-128 (SSCC), EAN-13/8, UPC-A/E in one call. Import as `unir`.
29
+ > Windows x64 and Linux (x86-64, ARM64, ARMv7, glibc 2.36+). 30-day free
30
+ > trial, then a license from https://libscanner.com/en/. Documentation:
31
+ > https://libscanner.com/en/docs/universal-reader/?lang=python
32
+
33
+ ## Что внутри
34
+
35
+ - пакет `unir` — обёртка на `ctypes`, без внешних зависимостей;
36
+ - собранная библиотека `unir_c` (`unir_c.dll` / `libunir_c.so`) в `unir/_lib/`;
37
+ - утилита командной строки `unir` — после установки это команда окружения
38
+ (и `python -m unir`): `unir снимок.png`, `unir --license status`, справка —
39
+ `unir --help`.
40
+
41
+ Компилировать ничего не нужно: колесо уже содержит библиотеку под свою
42
+ платформу и годится для любого Python 3.9+.
43
+
44
+ ## Установка
45
+
46
+ ```sh
47
+ pip install libscanner_unir-1.0.1-py3-none-<платформа>.whl
48
+ ```
49
+
50
+ Колесо — в разделе «Загрузки» личного кабинета https://libscanner.com. Пакет импортируется
51
+ как `unir`. Платформы: Windows x64, Linux x86-64, ARM64 и ARMv7 (glibc 2.36 и
52
+ новее: Debian 12, Ubuntu 23.04+, Raspberry Pi OS Bookworm).
53
+
54
+ ## Быстрый старт
55
+
56
+ ```python
57
+ import unir
58
+
59
+ result = unir.scan_file("этикетка.jpg", unir.Settings.multi(0)) # все коды на снимке
60
+ for code in result.codes:
61
+ print(code.symbology_name, code.text)
62
+ ```
63
+
64
+ Только нужные символики и предел времени на кадр:
65
+
66
+ ```python
67
+ s = unir.Settings.single()
68
+ s.symbologies = unir.Symbology.DATAMATRIX | unir.Symbology.GS1_128
69
+ s.budget_ms = 200
70
+ scanner = unir.Scanner(s) # создаётся один раз, а не на кадр
71
+ result = scanner.scan_file("кадр.png")
72
+ ```
73
+
74
+ Кадр из чужого буфера — без копирования, видом на него:
75
+
76
+ ```python
77
+ view = unir.ImageView(buf, width, height, stride, unir.PixelFormat.GRAY8)
78
+ result = scanner.scan(view)
79
+ ```
80
+
81
+ `Code.text` — `bytes`: разделитель GS1 остаётся байтом `0x1D`.
82
+
83
+ ## Лицензия
84
+
85
+ Пробный период — 30 дней с первого запуска на машине, без регистрации и без
86
+ сети.
87
+
88
+ Активация: вписать ключ из письма (`UNIR-...`) в текстовый файл `unir.key` и
89
+ положить его в каталог `unir/_lib/` установленного пакета — рядом с
90
+ библиотекой и утилитой (ключ у них общий). Каталог показывает
91
+
92
+ ```sh
93
+ python -c "import unir, os; print(os.path.join(os.path.dirname(unir.__file__), '_lib'))"
94
+ ```
95
+
96
+ Библиотека активирует ключ по сети сама при первом обращении. Из кода:
97
+
98
+ ```python
99
+ import unir.license as license
100
+
101
+ s = license.status()
102
+ if not s["can_scan"]:
103
+ print(s["message"])
104
+ ```
105
+
106
+ Без интернета: личный кабинет https://libscanner.com → Лицензии → «Активация без интернета».
@@ -0,0 +1,32 @@
1
+ unir/__init__.py,sha256=wMH-2XQlHHLZAWU4SnQKuAxMI002BOI3ciXpLyC1TOc,2346
2
+ unir/__main__.py,sha256=VUaWAG9jspCvjWAalQ1v64krDWeyYJTGGsJJjTmRpZk,153
3
+ unir/_cli.py,sha256=hlQO1Ve-0n5T0Ww-xMo3UEBxvMxvUxaCOFpxDSgI_Dk,2881
4
+ unir/_ffi.py,sha256=XExSeB6dWrAdheedIWV7EB-UtSq6t3AMURKT0E7r8bE,10403
5
+ unir/_i18n.py,sha256=QbQhYvwxiyG5ceW9cGoYTgIccfrc540Wdrx0BXghfo4,1339
6
+ unir/image.py,sha256=yPtRs9qkdmMxadoWmtuRVyhgk29Pn-YT9smhEPsCptI,11620
7
+ unir/license.py,sha256=Ov_sPQkYjbNVkEiaCnF7KS8mxgxTT1EHzSvXZ5gtJp4,4066
8
+ unir/paths.py,sha256=WOXPVtGBqkuxrwSTffiKpDIwdCkiJttcM7F_SaQjj7U,1280
9
+ unir/scanner.py,sha256=Yb94mL73yZrX-tCFCFoCIoPliAynJT3ePEZeeD-ckoM,8835
10
+ unir/settings.py,sha256=KMCH7rkYRs0eYRN8pNirg8MivCBaUeMDnurJGxlMPI0,4774
11
+ unir/symbology.py,sha256=AxrXkyvzLhGlsPMETP29_TKaUYQxZTouyiLNZ5ixGuU,1949
12
+ unir/_lib/unir_c.dll,sha256=YIFEDYDKAdmQlxoRAScyjBJT2ynj2Cq9U0ohJm2X2V4,4330496
13
+ unir/_lib/unir.exe,sha256=aVeR6yHNVI7nQj2ZyNvYR-UfB2SPVe3u5OCcIJq8dxo,4484096
14
+ libscanner_unir-1.0.1.dist-info/entry_points.txt,sha256=M1eGKJ0kNTH27h6BPiG8MZFWlibOExMNIdS2m66Ft3w,40
15
+ libscanner_unir-1.0.1.dist-info/BUILD-INFO.json,sha256=L1jImMZKXLAGDPd_SMNV6dxN8i7H5V7odMkq0Z93Lys,514
16
+ libscanner_unir-1.0.1.dist-info/licenses/GCC-COPYING.RUNTIME.txt,sha256=kAd7owbunY7ZZsqxtKvWm25yis8Id3KDzFAoPNlQP6Y,3397
17
+ libscanner_unir-1.0.1.dist-info/licenses/GCC-COPYING3.txt,sha256=Czg9WmPaZE9ijZnDOXbqZIftiaqlnwsyV5kt6sEXHms,35821
18
+ libscanner_unir-1.0.1.dist-info/licenses/libjpeg-turbo-LICENSE.md,sha256=visrWrFovOh7w-MfKlxa26S39unlHWGOlY0dRpcuvZU,5755
19
+ libscanner_unir-1.0.1.dist-info/licenses/libpng-LICENSE.txt,sha256=RSOQQzug-Iqj4rEixkd0G3KgwRfNbtejKbSXha7LVRE,5479
20
+ libscanner_unir-1.0.1.dist-info/licenses/MinGW-w64-runtime-COPYING.txt,sha256=b4cHwAQTMICy4R2oyu_R1xUxt0I66cnj1gQ4AdJL9bI,12420
21
+ libscanner_unir-1.0.1.dist-info/licenses/monocypher-LICENCE.md,sha256=fueiPJZ5fTfBznpPG_AvszBt6UvrYCs4J9aOu8e__MM,9252
22
+ libscanner_unir-1.0.1.dist-info/licenses/OpenCV-COPYRIGHT.txt,sha256=daMv2Lc8nOmpjO2HwHI3de8rl_DeKKtP-EIGZneNzsk,3434
23
+ libscanner_unir-1.0.1.dist-info/licenses/OpenCV-LICENSE.txt,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
24
+ libscanner_unir-1.0.1.dist-info/licenses/stb-LICENSE.txt,sha256=XhxS71MEIqZGNURiYrUUtl2bMc5aNppYbXdPkx1h0hs,2956
25
+ libscanner_unir-1.0.1.dist-info/licenses/THIRD-PARTY-NOTICES.txt,sha256=3BKngzYJI7Kpky1v6XznjlXX3a89mLYbt-6vVNyHdaw,3063
26
+ libscanner_unir-1.0.1.dist-info/licenses/winpthreads-COPYING.txt,sha256=HI0jBjw3crlDWDFBCzG1H-89nPITikQtw2fvXXIjn2c,2940
27
+ libscanner_unir-1.0.1.dist-info/licenses/zlib-LICENSE.txt,sha256=GNvTfwqxdcN4d-kFP_hwp94oCaPpuWc7JpaqUAkmRjg,1024
28
+ libscanner_unir-1.0.1.dist-info/METADATA,sha256=C1-JYwNNquISQZlMfZZQsG5J4h8zJDVBlPVUdDrw6dM,4703
29
+ libscanner_unir-1.0.1.dist-info/WHEEL,sha256=jN0qm2TsKzQT2xhtF2qdW1s5rF4FG8-c8gz_3OMS460,103
30
+ libscanner_unir-1.0.1.dist-info/licenses/LICENSE.txt,sha256=X84EXywX2KyGFxA-giRhPUZbqBphg9WIzhm-Eb5Otas,7940
31
+ libscanner_unir-1.0.1.dist-info/licenses/LICENSE.en.txt,sha256=hr1zghvMszDn9ferXg7569J60a-aD0XmI_VkMMrkMNg,5307
32
+ libscanner_unir-1.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: unir tools/build_wheel.py
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ unir = unir._cli:main
@@ -0,0 +1,73 @@
1
+ GCC RUNTIME LIBRARY EXCEPTION
2
+
3
+ Version 3.1, 31 March 2009
4
+
5
+ Copyright (C) 2009 Free Software Foundation, Inc. <http://fsf.org/>
6
+
7
+ Everyone is permitted to copy and distribute verbatim copies of this
8
+ license document, but changing it is not allowed.
9
+
10
+ This GCC Runtime Library Exception ("Exception") is an additional
11
+ permission under section 7 of the GNU General Public License, version
12
+ 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
13
+ bears a notice placed by the copyright holder of the file stating that
14
+ the file is governed by GPLv3 along with this Exception.
15
+
16
+ When you use GCC to compile a program, GCC may combine portions of
17
+ certain GCC header files and runtime libraries with the compiled
18
+ program. The purpose of this Exception is to allow compilation of
19
+ non-GPL (including proprietary) programs to use, in this way, the
20
+ header files and runtime libraries covered by this Exception.
21
+
22
+ 0. Definitions.
23
+
24
+ A file is an "Independent Module" if it either requires the Runtime
25
+ Library for execution after a Compilation Process, or makes use of an
26
+ interface provided by the Runtime Library, but is not otherwise based
27
+ on the Runtime Library.
28
+
29
+ "GCC" means a version of the GNU Compiler Collection, with or without
30
+ modifications, governed by version 3 (or a specified later version) of
31
+ the GNU General Public License (GPL) with the option of using any
32
+ subsequent versions published by the FSF.
33
+
34
+ "GPL-compatible Software" is software whose conditions of propagation,
35
+ modification and use would permit combination with GCC in accord with
36
+ the license of GCC.
37
+
38
+ "Target Code" refers to output from any compiler for a real or virtual
39
+ target processor architecture, in executable form or suitable for
40
+ input to an assembler, loader, linker and/or execution
41
+ phase. Notwithstanding that, Target Code does not include data in any
42
+ format that is used as a compiler intermediate representation, or used
43
+ for producing a compiler intermediate representation.
44
+
45
+ The "Compilation Process" transforms code entirely represented in
46
+ non-intermediate languages designed for human-written code, and/or in
47
+ Java Virtual Machine byte code, into Target Code. Thus, for example,
48
+ use of source code generators and preprocessors need not be considered
49
+ part of the Compilation Process, since the Compilation Process can be
50
+ understood as starting with the output of the generators or
51
+ preprocessors.
52
+
53
+ A Compilation Process is "Eligible" if it is done using GCC, alone or
54
+ with other GPL-compatible software, or if it is done without using any
55
+ work based on GCC. For example, using non-GPL-compatible Software to
56
+ optimize any GCC intermediate representations would not qualify as an
57
+ Eligible Compilation Process.
58
+
59
+ 1. Grant of Additional Permission.
60
+
61
+ You have permission to propagate a work of Target Code formed by
62
+ combining the Runtime Library with Independent Modules, even if such
63
+ propagation would otherwise violate the terms of GPLv3, provided that
64
+ all Target Code was generated by Eligible Compilation Processes. You
65
+ may then convey such a combination under terms of your choice,
66
+ consistent with the licensing of the Independent Modules.
67
+
68
+ 2. No Weakening of GCC Copyleft.
69
+
70
+ The availability of this Exception does not imply any general
71
+ presumption that third-party software is unaffected by the copyleft
72
+ requirements of the license of GCC.
73
+