Skip to main content

A Novitus XML Protocol Fiscal Printer Library

Project description

litex.novitus_xml

Driver for a Polish fiscal printer with Novitus XML protocol

Fiscal printer is a fiscal memory device used to record retail sales in Poland and few other countries in the world (eg. Russia, Czechia).

This library implements parts of XML protocol of one of the major Polish manufacturers Novitus.

Printing receipt example (for more, see tests):

from litex.novitus_xml import Printer

# uses USB device autodetection and no checksumming by default
# for more url examples, see PySerial documentation
# https://pyserial.readthedocs.io/en/latest/url_handlers.html
printer = Printer(
    url='hwgrep://.*Novitus.*'
) 

printer.receipt_begin()

printer.item(
    name='First product',
    quantity=2,
    quantityunit='pcs',
    ptu='A',
    price=4
)

printer.item(
    name='Second product',
    quantity=4,
    quantityunit='pcs',
    description='A long description',
    ptu='A',
    price=2        
)

printer.receipt_close(
    total=16.0,
    systemno='1/TEST/2020',
    checkout='10',
    cashier='John Doe'
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litex.novitus_xml-1.0.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

litex.novitus_xml-1.0.0-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page