Package: brother-ql-web
brother_ql_webThis is a web service to print labels on Brother QL label printers. While it is primarily focused on the API/GUI part, the corresponding functionality is provided as a library as well.You need Python 3 for this software to work.The web interface isresponsive.
There's also a screenshot showinghow it looks on a smartphoneInstallationThe easiest way to use this package is to install it from PyPI:pip install brother_ql_webAlternatively, you can use brother_ql_web without installing it, straight out of an unpacked source tarball or a VCS checkout.It's also possible to install it from source for the current interpreter with:pip install .In addition to the Python package requirements itself,fontconfigshould be installed on your system. It's used to identify and inspect fonts on your machine. This package is pre-installed on many Linux distributions. If you're using a Mac, you might want to useHomebrewto install fontconfig usingbrew install fontconfig.Configuration fileGrab a copy of theexample configuration fileand adjust it to your needs. You can store this file on your device wherever you want - just make sure to remember the full path as you will have to pass it to the CLI.StartupTo start the server, either runbrother_ql_web(only works if installed) orpython -m brother_ql_web. You will always have to pass the path to your configuration file to use and the string descriptor of the printer.The most basic call will look like this:python -m brother_ql_web --configuration $HOME/printers/brother_ql_web/configuration_dev.json file:///dev/usb/lp0Additional parameters might be passed and will overwrite the values configured in your configuration file. Please refer to the--helpflag to learn more about the possible flags you might pass.UsageOnce it's running, access the web interface by opening the page with your browser.If you run it on your local machine, go tohttp://localhost:8013(You can change the default port 8013 using the--portargument). You will then be forwarded by default to the interactive web GUI located at/labeldesigner.All in all, the web server offers:a web GUI allowing you to print your labels at/labeldesigner,an API at/api/print/text?text=Your_Text&font_size=100&font_family=Minion%20Pro%20(%20Semibold%20)to print a label containing 'Your Text' with the specified font properties.About this forkThis repository contains my personal fork of the original repository.At the moment, there is no real activity in the upstream project, with the last change happening in January 2020. In the meantime, some dependencies got outdated andPillowdeprecated and dropped some methods which break the whole application.Additionally, I think that it makes more sense to let everyone install this package from PyPI and pass a configuration file parameter to it for customization instead of basically hardcoding the configuration file path toconfig.jsonin the current application directory.At the moment there are no plans to submit any pull request to the upstream repository.Differences from upstreamPackage requires Python ≥ 3.8.Migrate to a package-based structure.Ensure compatibility with latest dependency versions.Upgrade Bootstrap and drop jQuery as Bootstrap does not rely on it anymore.Conform to PEP8 coding style.Add some more printing options, like the number of labels to print for a session.LicenseThis software is published under the terms of the GPLv3, see the LICENSE file in the repository.Parts of this package are redistributed software products from 3rd parties. They are subject to different licenses:Bootstrapv5.3.1, MIT LicenseBootstrap Iconsv1.10.5, MIT LicenseThe CSS files received some minor modification to allow the font files to be loaded from the parent directory.