text
stringlengths
101
200k
repo_name
stringlengths
5
73
stars
stringlengths
3
6
repo_language
stringlengths
1
24
file_name
stringlengths
2
57
mime_type
stringclasses
22 values
hash
int64
-9,223,369,786,400,666,000
9,223,339,290B
include *.rst include *.txt include LICENSE include INSTALL include tox.ini include capabilities-data/dist/capabilities.json include src/escpos/capabilities.json recursive-include doc *.bat recursive-include doc *.ico recursive-include doc *.py recursive-include doc *.rst recursive-include doc *.txt recursive-include d...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
8,751,525,123,829,401,000
#!/usr/bin/env python import os import sys from setuptools import find_packages, setup base_dir = os.path.dirname(__file__) src_dir = os.path.join(base_dir, "src") # When executing the setup.py, we need to be able to import ourselves, this # means that we need to add the src/ directory to the sys.path. sys.path.ins...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,966,421,625,955,614,000
********* Changelog ********* 2020-05-12 - Version 3.0a8 - "Only Slightly Bent" ------------------------------------------------- This release is the ninth alpha release of the new version 3.0. Please be aware that the API is subject to change until v3.0 is released. This release drops support for Python 2, requiring ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
7,764,559,013,503,989,000
[metadata] name = python-escpos url = https://github.com/python-escpos/python-escpos description = Python library to manipulate ESC/POS Printers long_description = file: README.rst license = MIT license_file = LICENSE author = Manuel F Martinez and others author_email = dev@pkanzler.de maintainer = Patrick Kanzler main...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-2,162,109,519,123,499,000
formats: - pdf - epub requirements_file: doc/requirements.txt python: version: 3 setup_py_install: true
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-2,597,302,186,761,692,000
############################################################# python-escpos - Python library to manipulate ESC/POS Printers ############################################################# .. image:: https://travis-ci.org/python-escpos/python-escpos.svg?branch=master :target: https://travis-ci.org/python-escpos/pytho...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,243,748,922,724,695,000
[tox] envlist = py35, py36, py37, py38, docs, flake8 [gh-actions] python = 2.7: py27 3.6: py36 3.7: py37 3.8: py38 [testenv] deps = nose jaconv coverage scripttest mock pytest!=3.2.0,!=3.3.0 pytest-cov pytest-mock hypothesis>4 python-barco...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-7,474,916,700,184,312,000
python-escpos ============= This library is available over pypi. So for most of the use-cases it should be sufficient to run ``` pip install python-escpos --user # add --pre if you want to install pre-releases ``` For more information please read the documentation at https://python-escpos.readthedocs.io/en/latest/u...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
3,373,681,124,774,981,600
************ Contributing ************ This project is open to any kind of contribution. You can help with improving the documentation, adding fixes to the code, providing test cases in code or as a description or just spreading the word. Please feel free to create an issue or pull request. In order to reduce the amou...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-7,853,292,627,905,224,000
<!-- Please feel free to delete any sections that aren't relevant. --> <!-- mark with x between the [ ] --> I have: - [ ] searched open and closed issues for duplicates ### Bug description ### Steps to reproduce - add your steps here - as a list - using hyphens ### Device info <!-- Replace examples with your info -...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
2,115,569,181,461,870,300
### Contributor checklist <!-- mark with x between the brackets --> - [ ] I have read the CONTRIBUTING.rst - [ ] I have tested my contribution on these devices: * e.g. Epson TM-T88II - [ ] My contribution is ready to be merged as is ---------- ### Description
python-escpos/python-escpos
535
Python
constants.rst
text/plain
2,569,003,023,291,297,000
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: Python package on: push: branches: [ master ] pull_request: branches: [ ma...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-2,989,410,340,655,484,400
""" ESC/POS configuration manager. This module contains the implementations of abstract base class :py:class:`Config`. """ import os import appdirs import yaml from . import printer from . import exceptions class Config(object): """ Configuration handler class. This class loads configuration from a def...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-4,319,684,302,181,348,400
""" Image format handling class This module contains the image format handler :py:class:`EscposImage`. :author: `Michael Billington <michael.billington@gmail.com>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 Michael Billington <michael.billington@gmail.com> :lice...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
3,679,809,759,942,773,000
# -*- coding: utf-8 -*- """Helpers to encode Japanese characters. I doubt that this currently works correctly. """ try: import jaconv except ImportError: jaconv = None def encode_katakana(text): """I don't think this quite works yet.""" encoded = [] for char in text: if jaconv: ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
5,904,162,900,573,698,000
from .capabilities import CAPABILITIES class CodePageManager: """Holds information about all the code pages (as defined in escpos-printer-db). """ def __init__(self, data): self.data = data def get_all(self): return self.data.values() @staticmethod def get_encoding_name(...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-2,568,347,272,365,227,000
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module contains the implementations of abstract base class :py:class:`Escpos`. :author: `Manuel F Martinez <manpaz@bashlinux.com>`_ and others :organization: Bashlinux and `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2012-2017 Bashlin...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
4,446,486,996,381,703,700
import re from os import environ, path import pkg_resources import pickle import logging import time import six import yaml from tempfile import gettempdir import platform logging.basicConfig() logger = logging.getLogger(__name__) pickle_dir = environ.get('ESCPOS_CAPABILITIES_PICKLE_DIR', gettempdir()) pickle_path ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,814,734,423,063,138,000
#!/usr/bin/python # -*- coding: utf-8 -*- """ Main class This module contains the abstract base class :py:class:`Escpos`. :author: `Manuel F Martinez <manpaz@bashlinux.com>`_ and others :organization: Bashlinux and `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2012-2017 Bashlinux and ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
6,429,261,240,211,131,000
#!/usr/bin/python # -*- coding: utf-8 -*- """ Magic Encode This module tries to convert an UTF-8 string to an encoded string for the printer. It uses trial and error in order to guess the right codepage. The code is based on the encoding-code in py-xml-escpos by @fvdsn. :author: `Patrick Kanzler <dev@pkanzler.de>`_ ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-9,031,240,873,397,623,000
# -*- coding: utf-8 -*- """ python-escpos enables you to manipulate escpos-printers """ __all__ = ["constants", "escpos", "exceptions", "printer"] try: from .version import version as __version__ # noqa except ImportError: # pragma: no cover raise ImportError( 'Failed to find (autogenerated) version...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
7,219,379,503,758,235,000
#!/usr/bin/env python # PYTHON_ARGCOMPLETE_OK """ CLI This module acts as a command line interface for python-escpos. It mirrors closely the available ESCPOS commands while adding a couple extra ones for convenience. It requires you to have a configuration file. See documentation for details. """ import argparse t...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-3,533,310,156,973,077,500
# -*- coding: utf-8 -*- """ ESC/POS Exceptions classes Result/Exit codes: - `0` = success - `10` = No Barcode type defined :py:exc:`~escpos.exceptions.BarcodeTypeError` - `20` = Barcode size values are out of range :py:exc:`~escpos.exceptions.BarcodeSizeError` - `30` = Barcode text not supplied :py:...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-3,009,662,063,839,996,400
# -*- coding: utf-8 -*- """ Set of ESC/POS Commands (Constants) This module contains constants that are described in the esc/pos-documentation. Since there is no definitive and unified specification for all esc/pos-like printers the constants could later be moved to `capabilities` as in `escpos-php by @mike42 <https:...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
5,072,701,997,978,484,000
#!/usr/bin/python # Adapted script from Adafruit # Weather forecast for Raspberry Pi w/Adafruit Mini Thermal Printer. # Retrieves data from DarkSky.net's API, prints current conditions and # forecasts for next two days. # Weather example using nice bitmaps. # Written by Adafruit Industries. MIT license. # Adapted an...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-7,359,232,004,411,034,000
"""Prints code page tables. """ import six import sys from escpos import printer from escpos.constants import CODEPAGE_CHANGE, ESC, CTL_LF, CTL_FF, CTL_CR, CTL_HT, CTL_VT def main(): dummy = printer.Dummy() dummy.hw('init') for codepage in sys.argv[1:] or ['USA']: dummy.set(height=2, width=2)...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
2,195,612,550,887,496,200
from escpos.printer import Usb # Adapt to your needs p = Usb(0x0416, 0x5011, profile="POS-5890") # Some software barcodes p.soft_barcode('code128', 'Hello') p.soft_barcode('code39', '1234')
python-escpos/python-escpos
535
Python
constants.rst
text/plain
7,126,506,646,709,017,000
from escpos.printer import Usb # Adapt to your needs p = Usb(0x0416, 0x5011, profile="POS-5890") # Print software and then hardware barcode with the same content p.soft_barcode('code39', '123456') p.text('\n') p.text('\n') p.barcode('123456', 'CODE39')
python-escpos/python-escpos
535
Python
constants.rst
text/plain
6,584,835,139,268,658,000
import sys from escpos.printer import Usb def usage(): print("usage: qr_code.py <content>") if __name__ == '__main__': if len(sys.argv) != 2: usage() sys.exit(1) content = sys.argv[1] # Adapt to your needs p = Usb(0x0416, 0x5011, profile="POS-5890") p.qr(content, center=Tr...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-3,492,899,907,880,992,000
# Climacons by Adam Whitcroft 75 climatically categorised pictographs for web and UI design by [@adamwhitcroft](https://www.twitter.com/#!/adamwhitcroft). Visit the [Climacons](https://adamwhitcroft.com/climacons/) website for more information. Visit [Adam Whitcroft on GitHub](https://github.com/AdamWhitcroft) ## L...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
8,882,995,023,653,125,000
#!/usr/bin/python # -*- coding: utf-8 -*- """tests for the File printer :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import six impo...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-5,437,537,316,387,406,000
from nose.tools import assert_raises from escpos.printer import Dummy def test_printer_dummy_clear(): printer = Dummy() printer.text("Hello") printer.clear() assert(printer.output == b'')
python-escpos/python-escpos
535
Python
constants.rst
text/plain
6,691,484,971,770,623,000
#!/usr/bin/python """test the raising of errors with the error module :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2017 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import pytest impor...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-2,295,423,314,651,021,800
#!/usr/bin/python """tests for the text printing function :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import pytest import mock from ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
6,338,380,797,784,481,000
"""Test for the CLI """ import os import sys from scripttest import TestFileEnvironment from nose.tools import assert_equals, nottest import escpos TEST_DIR = os.path.abspath('test/test-cli-output') DEVFILE_NAME = 'testfile' DEVFILE = os.path.join(TEST_DIR, DEVFILE_NAME) CONFIGFILE = 'testconfig.yaml' CONFIG_YAML...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
5,770,274,282,975,849,000
#!/usr/bin/python # -*- coding: utf-8 -*- import escpos.printer as printer import pytest @pytest.mark.parametrize("bctype,data", [ ('UPC-A', '01234567890'), ('UPC-A', '012345678905'), ('UPC-E', '01234567'), ('UPC-E', '0123456'), ('UPC-E', '012345678905'), ('EAN13', '0123456789012'), ('EA...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-1,642,696,723,374,885,000
import pytest from escpos.capabilities import get_profile, NotSupported, BARCODE_B, Profile @pytest.fixture def profile(): return get_profile('default') class TestBaseProfile: """Test the `BaseProfile` class. """ def test_get_font(self, profile): with pytest.raises(NotSupported): ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
3,847,475,499,428,417,500
#!/usr/bin/python """test the facility which enables usage of the with-statement :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import e...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
3,906,324,460,314,315,000
#!/usr/bin/python """verifies that the metaclass abc is properly used by ESC/POS :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 Patrick Kanzler :license: MIT """ from nose.tools import raises import escpos...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-4,230,022,437,427,917,300
import six import escpos.printer as printer from escpos.constants import TXT_NORMAL, TXT_STYLE, SET_FONT from escpos.constants import TXT_SIZE # Default test, please copy and paste this block to test set method calls def test_default_values(): instance = printer.Dummy() instance.set() expected_sequenc...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
4,783,461,750,514,812,000
#!/usr/bin/env python """ Image tests- Check that images from different source formats are correctly converted to ESC/POS column & raster formats. :author: `Michael Billington <michael.billington@gmail.com>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `Michael Bil...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-4,467,554,894,755,001,300
#!/usr/bin/python """tests for panel button function :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import escpos.printer as printer d...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,930,760,248,319,078,000
import six import escpos.printer as printer from escpos.constants import GS def test_cut_without_feed(): """Test cut without feeding paper""" instance = printer.Dummy() instance.cut(feed=False) expected = GS + b'V' + six.int2byte(66) + b'\x00' assert(instance.output == expected)
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-7,600,016,127,120,299,000
#!/usr/bin/python # -*- coding: utf-8 -*- """tests for the non-native part of qr() :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ impor...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
8,695,044,394,095,764,000
#!/usr/bin/python import escpos.printer as printer import pytest @pytest.fixture def instance(): return printer.Dummy() def test_soft_barcode_ean8(instance): instance.soft_barcode("ean8", "1234") def test_soft_barcode_ean8_nocenter(instance): instance.soft_barcode("ean8", "1234", center=False)
python-escpos/python-escpos
535
Python
constants.rst
text/plain
596,092,055,490,086,800
#!/usr/bin/python # -*- coding: utf-8 -*- """tests for the magic encode module :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import py...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-1,910,306,052,007,714,300
#!/usr/bin/python """very basic test cases that load the classes :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import escpos.printer as...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-7,852,153,827,620,509,000
#!/usr/bin/python import escpos.printer as printer from escpos.capabilities import Profile, BARCODE_B from escpos.exceptions import BarcodeTypeError, BarcodeCodeError import pytest @pytest.mark.parametrize("bctype,data,expected", [ ('EAN13', '4006381333931', b'\x1ba\x01\x1dh@\x1dw\x03\x1df\x00\x1dH\x02\x...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
5,103,487,404,884,939,000
#!/usr/bin/python import escpos.printer as printer from escpos.exceptions import CashDrawerError import pytest def test_raise_CashDrawerError(): """should raise an error if the sequence is invalid. """ instance = printer.Dummy() with pytest.raises(CashDrawerError): # call with sequence that i...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-5,764,068,517,118,490,000
from nose.tools import assert_raises from escpos.printer import Dummy def test_line_spacing_code_gen(): printer = Dummy() printer.line_spacing(10) assert printer.output == b'\x1b3\n' def test_line_spacing_rest(): printer = Dummy() printer.line_spacing() assert printer.output == b'\x1b2' de...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
5,316,616,200,875,841,000
#!/usr/bin/python """tests for line display :author: `Patrick Kanzler <patrick.kanzler@fablab.fau.de>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2017 `python-escpos <https://github.com/python-escpos>`_ :license: MIT """ import escpos.printer as printer def test_f...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-3,669,681,068,453,013,500
#!/usr/bin/python """test native QR code printing :author: `Michael Billington <michael.billington@gmail.com>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `Michael Billington <michael.billington@gmail.com>`_ :license: MIT """ from nose.tools import raises import...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
4,423,298,151,816,349,700
#!/usr/bin/env python """ Image function tests- Check that image print commands are sent correctly. :author: `Michael Billington <michael.billington@gmail.com>`_ :organization: `python-escpos <https://github.com/python-escpos>`_ :copyright: Copyright (c) 2016 `Michael Billington <michael.billington@gmail.com>`_ :licen...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-6,960,011,452,205,245,000
{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "test with tox", "type": "shell", "command": "tox", "group": { "kind": "test", ...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
6,127,739,657,146,805,000
{ "restructuredtext.confPath": "${workspaceFolder}/doc", "files.watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/*/**": true, "**/.eggs/**": true, "**/.hypothesis/**": true, "**/.tox/**": true, } }
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-1,490,071,023,043,783,400
@ECHO OFF REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set BUILDDIR=_build set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . set I18NSPHINXOPTS=%SPHINXOPTS% . if NOT "%PAPER%" == "" ( set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
2,767,765,187,377,421,300
# -*- coding: utf-8 -*- # # python-escpos documentation build configuration file, created by # sphinx-quickstart on Sat Dec 26 14:28:42 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
python-escpos/python-escpos
535
Python
constants.rst
text/plain
4,624,809,779,793,603,000
pyusb Pillow>=2.0 qrcode>=4.0 pyserial sphinx-rtd-theme setuptools setuptools-scm docutils>=0.12 sphinxcontrib-spelling>=5 python-barcode>=0.11.0,<1
python-escpos/python-escpos
535
Python
constants.rst
text/plain
8,616,863,409,040,160,000
.. python-escpos documentation master file, created by sphinx-quickstart on Sat Dec 26 14:28:42 2015. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. include:: ../README.rst Content ------- .. toctree:: :maxdepth: 1 :caption: User Docu...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,344,832,898,290,840,000
#!/bin/sh GENLIST=$(git shortlog -s -n | cut -f2 | sort -f) GENLIST_W_MAIL=$(git shortlog -s -e -n | cut -f2 | sort -f) AUTHORSFILE="$(dirname $0)/../AUTHORS" TEMPAUTHORSFILE="/tmp/python-escpos-authorsfile" if [ "$#" -eq 1 ] then echo "$GENLIST">$TEMPAUTHORSFILE echo "\nAuthorsfile in version control:\n...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
5,744,357,595,557,728,000
# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command w...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-4,699,192,418,625,078,000
******** Printers ******** :Last Reviewed: 2017-01-25 As of now there are 5 different type of printer implementations. USB --- The USB-class uses pyusb and libusb to communicate with USB-based printers. Note that this driver is not suited for USB-to-Serial-adapters and similiar devices, but only for those implementin...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,317,802,923,698,430,000
******* Methods ******* :Last Reviewed: 2017-01-25 Escpos class ------------ The core part of this libraries API is the Escpos class. You use it by instantiating a :doc:`printer <printers>` which is a child of Escpos. The following methods are available: .. autoclass:: escpos.escpos.Escpos :members: :member...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
3,337,360,224,477,093,400
Printing Barcodes ----------------- :Last Reviewed: 2016-07-31 Most ESC/POS-printers implement barcode-printing. The barcode-commandset is implemented in the barcode-method. For a list of compatible barcodes you should check the manual of your printer. As a rule of thumb: even older Epson-models support most 1D-barcod...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-5,067,227,541,659,566,000
************ Installation ************ :Last Reviewed: 2016-07-23 Installation with PIP --------------------- Installation should be rather straight-forward. python-escpos is on PyPi, so you can simply enter: :: pip install python-escpos This should install all necessary dependencies. Apart from that p...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-5,252,003,233,003,846,000
**** TODO **** 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. Todos in the codebase ~~~~~~~~~~~~~~~~~~~~~ .. todolist::
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-3,464,392,527,786,801,700
************ Raspberry Pi ************ :Last Reviewed: 2017-01-05 This instructions were tested on Raspbian Jessie. .. warning:: You should **never** directly connect an printer with RS232-interface (serial port) directly to a Raspberry PI or similar interface (e.g. those simple USB-sticks without encasing). Tho...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-4,706,288,655,043,615,000
***** Usage ***** :Last Reviewed: 2017-06-10 Define your printer ------------------- USB printer ^^^^^^^^^^^ Before creating your Python ESC/POS printer instance, consult the system to obtain the printer parameters. This is done with the 'lsusb' command. Run the command and look for the "Vendor ID" and "Product ID"...
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-4,207,773,013,225,370,000
Config ------ Module :py:mod:`escpos.config` .. automodule:: escpos.config :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-234,847,264,823,515,040
Capabilities ------------ Module :py:mod:`escpos.capabilities` .. automodule:: escpos.capabilities :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
1,074,896,638,726,217,500
Esc/Pos ------- Module :py:mod:`escpos.escpos` .. automodule:: escpos.escpos :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
2,383,650,598,720,404,000
Exceptions ---------- Module :py:mod:`escpos.exceptions` .. automodule:: escpos.exceptions :members: :inherited-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
7,610,890,362,033,139,000
CLI --- Module :py:mod:`escpos.cli` .. automodule:: escpos.cli :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
6,832,307,757,617,147,000
Katakana -------- Module :py:mod:`escpos.katakana` .. automodule:: escpos.katakana :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,284,373,647,180,427,000
Printer implementations ----------------------- Module :py:mod:`escpos.printer` .. automodule:: escpos.printer :members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
4,058,025,343,676,552,000
Codepages --------- Module :py:mod:`escpos.codepages` .. automodule:: escpos.codepages :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
3,692,773,032,669,174,000
Image helper ------------ Module :py:mod:`escpos.image` .. automodule:: escpos.image :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-3,077,347,710,809,309,700
Magic Encode ------------ Module :py:mod:`escpos.magicencode` .. automodule:: escpos.magicencode :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-7,160,581,723,285,813,000
Constants --------- Module :py:mod:`escpos.constants` .. automodule:: escpos.constants :members: :inherited-members: :undoc-members: :show-inheritance: :member-order: bysource
python-escpos/python-escpos
535
Python
constants.rst
text/plain
-8,975,174,168,558,651,000
#!/usr/bin/env bash function cp_site(){ f=$1 echo preparing $f cp -ar ./$f/target/site ./target/site/$f } copyTo=$1 if [ X"$copyTo" = "X" ]; then echo copy target is not specified. exit 1 fi mvn clean site javadoc:aggregate-jar if [ $? -ne 0 ]; then exit 1 fi cp_site asta4d-core...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
4,841,841,657,726,769,000
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>os...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-6,409,931,953,993,910,000
<html> <head> <meta charset="utf-8" /> </head> <body> <h1>Asta4D @version</h1> <hr> <ul> <li><a href="userguide/index.html">User Guide</a> <li><a href="apidocs/index.html">API Doc</a> <li><a href="site/index.html">Project Information</a> <li><a href="../all_versions.html">Other versions</a> </ul> </body> ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-5,495,358,010,248,784,000
#!/usr/bin/env bash version=1.1-b1 copyTo=../asta4d-github-page/1.1-b1 cp userguide_index.html $copyTo/userguide/index.html cp page_index.html $copyTo/index.html sed "s/@version/$version/g" $copyTo/userguide/index.html sed "s/@version/$version/g" $copyTo/index.html
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-8,267,936,295,437,348,000
<html> <head> <meta charset="utf-8" /> </head> <body> <h1>Asta4D @version User Guide</h1> <hr> <ul> <li><a href="./html/index.html">HTML</a> <li><a href="./html-singlepage/index.html">Single Page HTML</a> <li><a href="./pdf/userguide.@version.pdf">PDF</a> </ul> </body> </html>
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
443,651,185,761,557,900
#!/usr/bin/env bash set -e # Base directory for this entire project BASEDIR=$(cd $(dirname $0) && pwd) mvn test -DskipTests=true -Pjetty-run
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-7,886,412,649,256,651,000
## News - 2016-11-17, 1.2-M2 is released. - 2016-04-13, 1.2-M1 with some essential enhancements is released. - 2016-01-22, [asta4d-ide](https://github.com/astamuse/asta4d-ide) is release to accelerate our development with asta4d. - 2015-12-25, 1.1 official release "1.1-Xmas" is released. - 2015-12-17, the scal...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
3,635,880,371,198,226,000
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <profiles version="12"> <profile kind="CodeFormatterProfile" name="astamuse" version="12"> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-6,249,044,159,537,503,000
#!/bin/bash fixVer=$1 if [ "fixVer"X = ""X ] then cmd=`BASENAME $0` echo $cmd \<release/dev\> \<new version\> exit 2 else BASEDIR=$(cd $(dirname $0) && pwd) cd $BASEDIR echo $fixVer > currentVersion mvn versions:set -DnewVersion=$fixVer cd asta4d-archetype-prototype mvn versions:set -DnewVersion=$fi...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
7,991,989,968,182,479,000
## Release Notes - 1.2-M2 (2016.11.17) There are some breaking changes related to form flow and url initialization. The user guide will be modified in the next release, thus there may be some unmatched contents in the document. ADD - new RowRenderer for convenience of Function<?, Renderer> (remo...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-7,801,726,676,171,103,000
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.ast...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-732,739,282,536,337,900
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.astamuse</groupId> <artifactId>asta4d...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
3,932,084,192,769,942,000
/* * Copyright 2012 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
7,019,870,024,915,305,000
/* * Copyright 2012 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-713,042,302,893,424,400
/* * Copyright 2012 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-4,451,043,903,605,231,000
package com.astamuse.asta4d.misc.spring; import java.util.Arrays; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.annotation.AnnotationBeanNameGenerator; public class Asta4dBeanNameGenerator extends AnnotationBeanNameGenerator { private String[] snippetSearchPa...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
4,229,057,843,729,371,600
/* * Copyright 2014 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
691,124,850,366,663,700
package com.astamuse.asta4d.misc.spring.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.springframework.context.annotation.Scope; import org.s...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
-6,764,662,927,888,267,000
/* * Copyright 2012 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
7,623,720,024,240,086,000
/* * Copyright 2012 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
3,237,460,174,680,001,500
/* * Copyright 2012 astamuse company,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
astamuse/asta4d
162
Java
org.eclipse.core.resources.prefs
text/plain
9,025,664,576,234,451,000