195 Commits

Author SHA1 Message Date
61e16625fe Changement de l'URL sur le readme 2025-12-14 20:49:38 +01:00
7aa3bbb5be Fix ANTIALIAS 2025-12-14 20:48:26 +01:00
Philipp Klaus
56cf4394ad [fix] "response doesn't start with the usual header"
fixes #25, fixes #69, fixes #75, fixes #81

also seen in issues: #56, #71
2020-02-04 16:24:32 +01:00
Philipp Klaus
638b365d45 initial, still very untested support for PT-P750W 2019-09-02 22:37:38 +02:00
Philipp Klaus
05516a7692 'brother_ql analyze' updated to support P-Touch series files 2019-09-02 20:34:12 +02:00
Philipp Klaus
b551b1fc94 make classes FormFactor() and Color() IntEnums 2019-01-21 11:28:47 +01:00
Philipp Klaus
5c2b72b18b Remove deprecation warning for now 2019-01-21 11:27:45 +01:00
Philipp Klaus
2eeac7a4b6 improve docstring documentation of brother_ql.raster 2019-01-13 11:19:04 +01:00
Philipp Klaus
99c35993c8 brother_ql.raster.Raster._unsupported() is now 'protected' 2019-01-13 11:18:26 +01:00
Philipp Klaus
ca4ac0544c brother_ql.raster: remove unused import 2019-01-13 11:16:37 +01:00
Philipp Klaus
1cfc7e7302 attrs & enum based replacement for devicedependent
This change replaces the simple lists and dictionaries
defined in brother_ql/devicedependent.py with data class
definitions based on attrs. They are split into two
new modules:

* brother_ql/models.py and
* brother_ql/labels.py.

To keep the compatibility with other software relying on
this package, the old brother_ql/devicedependent.py module
can still be imported. Its content is recreated with the
help of the new modules in some _populate_legacy_structures()
functions.
2019-01-13 01:24:18 +01:00
Philipp Klaus
df31020d4d Revert dataclasses based replacement for devicedependent
There is a big problem with this commit - it only works with:

* Python 3.5 and later due to
  type hints being introduced with
  PEP-484 https://www.python.org/dev/peps/pep-0484/
  lead to syntax errors on earlier versions.
* (even worse) only with Python 3.6+ due to
  PEP 526 variable annotations (introduced in 3.6)
  needed by dataclasses too.

We aim, however, at Python 2.7 compatibility with this project.

So after all, I reverse the commit and will implement the changes
in a different way.
2019-01-13 00:40:55 +01:00
Philipp Klaus
0a3af68eaa dataclasses & enum based replacement for devicedependent
This change replaces the simple lists and dictionaries
defined in brother_ql/devicedependent.py with data class
based definitions split into two new modules:

* brother_ql/models.py and
* brother_ql/labels.py.

To keep the compatibility with other software relying on
this package, the old brother_ql/devicedependent.py module
can still be imported. Its content is recreated with the
help of the new modules in some _populate_legacy_structures()
functions.
2019-01-13 00:39:30 +01:00
Philipp Klaus
40a1badd66 mark QL-560 as supported. closes #51. thx @volkermauel 2019-01-12 21:02:58 +01:00
Michael Chenevey
16dccc1df7 increased write timeout from 5000 ms to 15000 ms 2018-10-19 11:19:28 +02:00
Philipp Klaus
bc9564e3a2 Removing SIMILAR_SOFTWARE. Now found in separate Gist. 2018-09-25 15:10:58 +02:00
Philipp Klaus
63f05c2346 Brother QL-1060N reported to be working fine w/ brother_ql 2018-09-25 15:06:31 +02:00
Philipp Klaus
d589f4e2fe QL-810W reported to be working with this package 2018-09-14 17:08:49 +02:00
Philipp Klaus
1aa793b855 README backends notes: render list properly in Markdown 2018-09-14 16:45:13 +02:00
Philipp Klaus
5bc0f949e8 README backends: *network* backend can't read printer state 2018-09-14 16:33:23 +02:00
Philipp Klaus
4820b673bb README backends: move legend into describing sentence 2018-09-14 16:29:49 +02:00
Philipp Klaus
660c7bbdf6 README: new backends section incl. table about OS support (#38) 2018-09-14 16:24:25 +02:00
Philipp Klaus
6b39795667 add pyusb to the dependencies (relates to #38) 2018-09-14 15:08:17 +02:00
Philipp Klaus
f183afbe9d BrotherQLRaster: log raster_image_size as debug, not info 2018-09-14 14:59:46 +02:00
Philipp Klaus
801b36b894 brother_ql.backends.helpers.send() returns a status dictionary 2018-09-14 14:58:36 +02:00
Philipp Klaus
f7e34a347a brother_ql.exceptions: easier notation and line spacings 2018-09-14 10:19:51 +02:00
Philipp Klaus
35a53b9681 new module brother_ql.exceptions for all custom exceptions 2018-09-14 10:17:59 +02:00
Philipp Klaus
abd9ebe453 fix the --no-cut option of brother_ql print 2018-09-06 23:12:05 +02:00
Philipp Klaus
0c59fa9fff CLI brother_ql print: use click.File() to allow input from stdin 2018-09-06 22:59:14 +02:00
Philipp Klaus
ec4b7a9529 brother_ql.reader: 'raise NameError()' instead of using 'assert' 2018-09-05 10:51:41 +02:00
Philipp Klaus
c8b9c9335d update README to document --version (missing in 1fb11eb) 2018-09-03 16:51:42 +02:00
Philipp Klaus
7f28027bfe Make brother_ql info a click.group() 2018-09-03 16:50:23 +02:00
Philipp Klaus
7ab1e672b7 Fix Py2/3 compatibility (#40) 2018-09-03 15:15:58 +02:00
michieldwitte
4ac1c76da9 Typo: images -> image (#39)
Check if the image is an instance of Image.Image, instead of the list containing the images.
2018-08-26 11:02:46 +02:00
Philipp Klaus
fe55344d32 pyusb backend: select the iface with the right bInterfaceClass right away 2018-08-14 23:05:23 +02:00
Philipp Klaus
d209040b92 pyusb backend: assert seleted iface bInterfaceClass == 7 (a 'printer') 2018-08-14 23:04:23 +02:00
Philipp Klaus
78b5667ca4 New CLI command brother_ql info env
This command lists the running conditions as shown below:

##################

Information about the running environment of brother_ql.
(Please provide this information when reporting any issue.)

About the computer:
  * Platform: Linux-4.4.138-59-default-x86_64-with-SuSE-42.3-x86_64
  * Processor: x86_64
  * Release: 4.4.138-59-default
  * System: Linux
  * Machine: x86_64
  * Architecture: ('64bit', 'ELF')
About the installed Python version:
  * 3.7.0 (default, Jul 31 2018, 19:42:44)  [GCC 4.8.5]
About the brother_ql package:
  * package location: /local/pyvenv/py37loc/lib/python3.7/site-packages
  * package version:  0.9.dev0
  * brother_ql CLI path: /local/pyvenv/py37loc/bin/brother_ql
About the requirements of brother_ql:
  requirement    | requested  | installed version
  -------------- | ---------- | -----------------
  click          | any        | 6.7
  future         | any        | 0.16.0
  packbits       | any        | 0.6
  pillow         | >= 3.3.0   | 5.2.0

##################
2018-08-10 15:51:13 +02:00
Philipp Klaus
1fb11eb766 new CLI option brother_ql --version (#34) 2018-08-10 14:14:43 +02:00
Philipp Klaus
075feb3bbe Revert "new CLI command brother_ql info version (#34)"
This reverts commit b59f45fa79.
2018-08-10 12:11:15 +02:00
Philipp Klaus
b59f45fa79 new CLI command brother_ql info version (#34) 2018-08-10 11:59:09 +02:00
Philipp Klaus
a71fc4c09c rasterprynt included in SIMILAR_SOFTWARE.md 2018-08-10 11:44:56 +02:00
Philipp Klaus
90076beda5 Updated README: Installation, Deprecated CLI Tools
* The installation instructions were extended to cover
  the cases where pip was (willingly or not) used with
  the --user flag.
  See issue #36 were this came up.
* The use of brother_ql_{create,print,debug,analyze,info}
  is now considered deprecated.
* Furthermore: wording on brother_ql_web improved
2018-08-10 11:38:44 +02:00
Philipp Klaus
b353aafbdb README: put long URLs to the end of the document 2018-08-10 11:21:47 +02:00
Philipp Klaus
90cfa1febc README: phrases start w/ new line + breaking long lines 2018-08-10 11:06:19 +02:00
Philipp Klaus
0f03cfe611 README: new sections Author / Contributing 2018-08-10 10:57:18 +02:00
Philipp Klaus
1e24d192e4 fix help in CLI brother_ql & list labels in README 2018-08-08 19:45:17 +02:00
Philipp Klaus
fd2206891b Py2 compat of brother_ql.reader - fixes #35 2018-08-08 19:39:37 +02:00
Philipp Klaus
3944efad85 SIMILAR_SOFTWARE updated 2018-08-08 19:15:14 +02:00
Philipp Klaus
fa8852afbb setup.py: development now reached 0.9.dev0 2018-08-08 19:05:15 +02:00
Philipp Klaus
142cf744d8 Merge pull request #37 from pklaus/dev
New unified CLI: `brother_ql`
2018-08-08 19:01:01 +02:00