mirror of
https://github.com/python-escpos/python-escpos
synced 2025-10-23 09:30:00 +00:00
Compare commits
8 Commits
update-rea
...
brb-ean-ex
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a68347ee1c | ||
|
|
c40f2abe07 | ||
|
|
fb82e5dc4a | ||
|
|
fa140c2df5 | ||
|
|
8b3076871f | ||
|
|
46429b1092 | ||
|
|
99ca096f82 | ||
|
|
2d97c0bbbd |
1
.mailmap
1
.mailmap
@@ -13,3 +13,4 @@ csoft2k <csoft2k@hotmail.com>
|
|||||||
Sergio Pulgarin <sergio.pulgarin@gmail.com>
|
Sergio Pulgarin <sergio.pulgarin@gmail.com>
|
||||||
reck31 <rakesh.gunduka@gmail.com>
|
reck31 <rakesh.gunduka@gmail.com>
|
||||||
Alex Debiasio <alex.debiasio@thinkin.io> <alex.debiasio@studenti.unitn.it>
|
Alex Debiasio <alex.debiasio@thinkin.io> <alex.debiasio@studenti.unitn.it>
|
||||||
|
Brian 'Redbeard' Harrington <redbeard@dead-city.org>
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
version: 2
|
|
||||||
formats:
|
|
||||||
- pdf
|
|
||||||
- epub
|
|
||||||
python:
|
|
||||||
version: 3.7
|
|
||||||
install:
|
|
||||||
- requirements: doc/requirements.txt
|
|
||||||
- method: setuptools
|
|
||||||
path: .
|
|
||||||
1
AUTHORS
1
AUTHORS
@@ -3,6 +3,7 @@ akeonly
|
|||||||
Alex Debiasio
|
Alex Debiasio
|
||||||
Asuki Kono
|
Asuki Kono
|
||||||
belono
|
belono
|
||||||
|
Brian 'Redbeard' Harrington
|
||||||
Christoph Heuel
|
Christoph Heuel
|
||||||
Cody (Quantified Code Bot)
|
Cody (Quantified Code Bot)
|
||||||
csoft2k
|
csoft2k
|
||||||
|
|||||||
@@ -1,6 +1,22 @@
|
|||||||
*********
|
*********
|
||||||
Changelog
|
Changelog
|
||||||
*********
|
*********
|
||||||
|
2019-06-19 - Version 3.0a6 - "Mistake not..."
|
||||||
|
---------------------------------------------
|
||||||
|
This release is the seventh alpha release of the new version 3.0.
|
||||||
|
Please be aware the the API is subject to change until v3.0 is
|
||||||
|
released.
|
||||||
|
|
||||||
|
changes
|
||||||
|
^^^^^^^
|
||||||
|
- fix inclusion of the capabilities-file
|
||||||
|
- execute CI jobs also on Windows and macOS-targets
|
||||||
|
- improve documentation
|
||||||
|
|
||||||
|
contributors
|
||||||
|
^^^^^^^^^^^^
|
||||||
|
- Patrick Kanzler
|
||||||
|
|
||||||
2019-06-16 - Version 3.0a5 - "Lightly Seared On The Reality Grill"
|
2019-06-16 - Version 3.0a5 - "Lightly Seared On The Reality Grill"
|
||||||
------------------------------------------------------------------
|
------------------------------------------------------------------
|
||||||
This release is the sixth alpha release of the new version 3.0. Please
|
This release is the sixth alpha release of the new version 3.0. Please
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
include *.rst
|
include *.rst
|
||||||
include *.txt
|
include *.txt
|
||||||
include COPYING
|
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include INSTALL
|
include INSTALL
|
||||||
include tox.ini
|
include tox.ini
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ The basic usage is:
|
|||||||
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
|
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
|
||||||
p.text("Hello World\n")
|
p.text("Hello World\n")
|
||||||
p.image("logo.gif")
|
p.image("logo.gif")
|
||||||
p.barcode('1324354657687', 'EAN13', 64, 2, '', '')
|
p.barcode('4006381333931', 'EAN13', 64, 2, '', '')
|
||||||
p.cut()
|
p.cut()
|
||||||
|
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ Another example based on the Network printer class:
|
|||||||
|
|
||||||
kitchen = Network("192.168.1.100") #Printer IP Address
|
kitchen = Network("192.168.1.100") #Printer IP Address
|
||||||
kitchen.text("Hello World\n")
|
kitchen.text("Hello World\n")
|
||||||
kitchen.barcode('1324354657687', 'EAN13', 64, 2, '', '')
|
kitchen.barcode('4006381333931', 'EAN13', 64, 2, '', '')
|
||||||
kitchen.cut()
|
kitchen.cut()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,38 +2,9 @@
|
|||||||
TODO
|
TODO
|
||||||
****
|
****
|
||||||
|
|
||||||
Introduction
|
Open points and issues of the project are tracked in the GitHub issues.
|
||||||
------------
|
Some annotations still remain in the code and should be moved over time
|
||||||
|
into the issue tracker.
|
||||||
python-escpos is the initial idea, from here we can start to build a
|
|
||||||
robust library to get most of the ESC/POS printers working with this
|
|
||||||
library.
|
|
||||||
|
|
||||||
Eventually, this library must be able to cover almost all the defined
|
|
||||||
models detailed in the ESC/POS Command Specification Manual.
|
|
||||||
|
|
||||||
Details
|
|
||||||
-------
|
|
||||||
|
|
||||||
What things are planned to work on?
|
|
||||||
|
|
||||||
Testing
|
|
||||||
~~~~~~~
|
|
||||||
|
|
||||||
* Test on many printers as possible (USB, Serial, Network)
|
|
||||||
* automate testing
|
|
||||||
|
|
||||||
Design
|
|
||||||
~~~~~~
|
|
||||||
|
|
||||||
* Add all those sequences which are not common, but part of the ESC/POS
|
|
||||||
Command Specifications.
|
|
||||||
|
|
||||||
* Port to Python 3
|
|
||||||
* Windows compatibility (hidapi instead libusb?)
|
|
||||||
* PDF417 support
|
|
||||||
|
|
||||||
* use something similar to the `capabilities` in escpos-php
|
|
||||||
|
|
||||||
Todos in the codebase
|
Todos in the codebase
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ on a USB interface.
|
|||||||
# Print QR Code
|
# Print QR Code
|
||||||
p.qr("You can readme from your smartphone")
|
p.qr("You can readme from your smartphone")
|
||||||
# Print barcode
|
# Print barcode
|
||||||
p.barcode('1324354657687','EAN13',64,2,'','')
|
p.barcode('4006381333931','EAN13',64,2,'','')
|
||||||
# Cut paper
|
# Cut paper
|
||||||
p.cut()
|
p.cut()
|
||||||
|
|
||||||
|
|||||||
7
readthedocs.yml
Normal file
7
readthedocs.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
formats:
|
||||||
|
- pdf
|
||||||
|
- epub
|
||||||
|
requirements_file: doc/requirements.txt
|
||||||
|
python:
|
||||||
|
version: 2
|
||||||
|
setup_py_install: true
|
||||||
2
setup.py
2
setup.py
@@ -56,7 +56,7 @@ setup(
|
|||||||
platforms='any',
|
platforms='any',
|
||||||
package_dir={"": "src"},
|
package_dir={"": "src"},
|
||||||
packages=find_packages(where="src", exclude=["tests", "tests.*"]),
|
packages=find_packages(where="src", exclude=["tests", "tests.*"]),
|
||||||
package_data={'': ['COPYING', 'src/escpos/capabilities.json']},
|
package_data={'escpos': ['capabilities.json']},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 4 - Beta',
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ DEMO_FUNCTIONS = {
|
|||||||
'barcodes_a': [
|
'barcodes_a': [
|
||||||
{'bc': 'UPC-A', 'code': '13243546576'},
|
{'bc': 'UPC-A', 'code': '13243546576'},
|
||||||
{'bc': 'UPC-E', 'code': '132435'},
|
{'bc': 'UPC-E', 'code': '132435'},
|
||||||
{'bc': 'EAN13', 'code': '1324354657687'},
|
{'bc': 'EAN13', 'code': '4006381333931'},
|
||||||
{'bc': 'EAN8', 'code': '1324354'},
|
{'bc': 'EAN8', 'code': '1324354'},
|
||||||
{'bc': 'CODE39', 'code': 'TEST'},
|
{'bc': 'CODE39', 'code': 'TEST'},
|
||||||
{'bc': 'ITF', 'code': '55867492279103'},
|
{'bc': 'ITF', 'code': '55867492279103'},
|
||||||
@@ -62,13 +62,13 @@ DEMO_FUNCTIONS = {
|
|||||||
'barcodes_b': [
|
'barcodes_b': [
|
||||||
{'bc': 'UPC-A', 'code': '13243546576', 'function_type': 'B'},
|
{'bc': 'UPC-A', 'code': '13243546576', 'function_type': 'B'},
|
||||||
{'bc': 'UPC-E', 'code': '132435', 'function_type': 'B'},
|
{'bc': 'UPC-E', 'code': '132435', 'function_type': 'B'},
|
||||||
{'bc': 'EAN13', 'code': '1324354657687', 'function_type': 'B'},
|
{'bc': 'EAN13', 'code': '4006381333931', 'function_type': 'B'},
|
||||||
{'bc': 'EAN8', 'code': '1324354', 'function_type': 'B'},
|
{'bc': 'EAN8', 'code': '1324354', 'function_type': 'B'},
|
||||||
{'bc': 'CODE39', 'code': 'TEST', 'function_type': 'B'},
|
{'bc': 'CODE39', 'code': 'TEST', 'function_type': 'B'},
|
||||||
{'bc': 'ITF', 'code': '55867492279103', 'function_type': 'B'},
|
{'bc': 'ITF', 'code': '55867492279103', 'function_type': 'B'},
|
||||||
{'bc': 'NW7', 'code': 'A00000000A', 'function_type': 'B'},
|
{'bc': 'NW7', 'code': 'A00000000A', 'function_type': 'B'},
|
||||||
{'bc': 'CODE93', 'code': 'A00000000A', 'function_type': 'B'},
|
{'bc': 'CODE93', 'code': 'A00000000A', 'function_type': 'B'},
|
||||||
{'bc': 'CODE93', 'code': '1324354657687', 'function_type': 'B'},
|
{'bc': 'CODE93', 'code': '4006381333931', 'function_type': 'B'},
|
||||||
{'bc': 'CODE128A', 'code': 'TEST', 'function_type': 'B'},
|
{'bc': 'CODE128A', 'code': 'TEST', 'function_type': 'B'},
|
||||||
{'bc': 'CODE128B', 'code': 'TEST', 'function_type': 'B'},
|
{'bc': 'CODE128B', 'code': 'TEST', 'function_type': 'B'},
|
||||||
{'bc': 'CODE128C', 'code': 'TEST', 'function_type': 'B'},
|
{'bc': 'CODE128C', 'code': 'TEST', 'function_type': 'B'},
|
||||||
|
|||||||
Reference in New Issue
Block a user