Commit Graph

177 Commits

Author SHA1 Message Date
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
Philipp Klaus
160cea90d4 new CLI: brother_ql
This will slowly deprecate the other CLIs such as
* brother_ql_create
* brother_ql_print
* brother_ql_info
* brother_ql_analyze
* brother_ql_debug
2018-08-08 18:50:01 +02:00
Philipp Klaus
388eaae2d6 Move label creating code from CLI tool brother_ql_create -> module
The code previously found in the function
create_label()  in  brother_ql.brother_ql_create
now went into a new function convert() in its own module:
convert()  in  brother_ql.conversion

In addition, the new convert() function is now able to
put more than one pages (labels) into one instruction file.
2018-08-08 18:18:07 +02:00
Philipp Klaus
480805af9a bug fixes & module rename -> brother_ql.backends.helpers
The rename was:
brother_ql.{printing,discovering} -> brother_ql.backends.helpers
2018-08-08 18:02:25 +02:00
Philipp Klaus
9e93664abe Ability to change output filename of BrotherQLReader
The member variable filename_fmt now holds the relevant
format template and can be changed after instatiation.
2018-08-08 14:42:48 +02:00
Philipp Klaus
6a94465bea fix: logging output in BrotherQLReader() raises TypeError
The following error is resolved with this fix:
TypeError: not all arguments converted during string formatting
2018-08-08 14:33:49 +02:00
Philipp Klaus
c42773b613 Split brother_ql_print -> brother_ql.{printing,discovering} 2018-07-31 21:59:32 +02:00
Philipp Klaus
5267986fd0 backends: rename string_descr -> identifier
The strings like tcp://192.168.0.23:9100 or
usb://0x04f9:0x2015 are rather 'identifiers'
than descriptors (terminology).
Users relying on the returned dictionaries of the
list_available_devices() function need to update
the key from 'string_descr' to 'identifier'.
Sorry for the inconvenience.
2018-07-31 21:55:50 +02:00
Philipp Klaus
9b1311f9ba fix printing greyscale images on black/red tape 2018-07-10 12:14:07 +02:00
Philipp Klaus
351fb9bcec List supported models QL-800 QL-820NWB QL-1050 in setup.py, too 2018-02-20 21:23:58 +01:00
Philipp Klaus
4e67291a5e QL-1050 confirmed to work by jleguen in pull request #30 2018-02-20 21:19:27 +01:00
jleguen
5ecd8b747e Take into account printer-dependent right margin additions (#30) 2018-01-30 02:35:08 +01:00
Philipp Klaus
ceed43ef6e README: Remove note about missing 600dpi mode (incorrect since a354cde) 2018-01-28 13:19:44 +01:00
Philipp Klaus
19110118e0 Add hint to web interface in README 2018-01-28 13:14:12 +01:00
Philipp Klaus
6a2ff81dd3 README: Rearrange and slightly rephrase info on Editor Lite mode 2018-01-28 13:13:47 +01:00
Brian Manifold
aae157a99e Update README to note editor lite problems 2018-01-28 12:19:48 +01:00
Philipp Klaus
99ee28fdaa require pillow>=3.3.0
with pillow < 3.3.0, the call of Image.new()
in brother_ql/brother_ql_create.py line 113
would fail with the following error:

[...]
  File "/usr/lib/python3.4/site-packages/brother_ql/brother_ql_create.py", line 113, in create_label
    new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))
  File "/usr/lib64/python3.4/site-packages/PIL/Image.py", line 2050, in new
    return Image()._new(core.fill(mode, size, color))
TypeError: an integer is required (got type tuple)
2018-01-15 15:26:20 +01:00
Philipp Klaus
32ba70b7dc removed import numpy overlooked in 76f4677 (fixes #26) 2018-01-06 19:03:18 +01:00
Philipp Klaus
e5d4fde7d5 Correct Brother DK-11241 label size "102x152", fixes #27 2018-01-06 18:25:21 +01:00