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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file litex.novitus_xml-1.0.0.tar.gz.

File metadata

  • Download URL: litex.novitus_xml-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for litex.novitus_xml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 df0a3dc6c7e3206ae9255d5f58af071cf2191ae155c4d47af2198937997a83aa
MD5 e83cabc2ac6598a743ecee150f614380
BLAKE2b-256 8ac0caff25d91f5a7dd1b301977745b81537aebd15fa6a5f67873d691d7fc5e0

See more details on using hashes here.

File details

Details for the file litex.novitus_xml-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: litex.novitus_xml-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for litex.novitus_xml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 601543e0d5991fd78af0876b7b1a5fc822c9ac3bc650968dfd3117429a6cb813
MD5 344e785a03f23e0cd720127f6d2ccf4c
BLAKE2b-256 80f8692570a8423a159bc75fcc559ca38fd3e26f215d9842e3901bb350bb68d7

See more details on using hashes here.

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