Python bindings for generic cash registers, using the XON/XOFF protocol for serial communication.
Support
If you need support, please use the GitHub issue tracker.
Contributing
We love contributions, so please feel free to fix bugs, improve things, provide documentation. Just follow the guidelines and submit a PR.
Requirements
Python 2.7, 3.3, 3.4 and 3.5
Overview
Coming soon.
Getting started
This example could be outdated and you should not use it until a stable version of the library is out:
from serial import Serial
from cash_register.models.xditron import SaremaX1
# defines the serial communication
conn = Serial()
conn.port = '/dev/ttyUSB0'
conn.baudrate = 9600
conn.xonxoff = True
conn.timeout = 1
# create a cash register with a serial connection handler
register = SaremaX1('Shop center', connection=conn)
# write a list of products
products = [
{
'description': 'Potatoes',
'price': '2.0',
'quantity': '3.0',
},
{
'description': 'Water',
'price': '0.50',
},
]
# prepare and send cash register commands
register.sell_products(products)
register.send()
Documentation
Coming soon.
License
python-cash-register is released under the terms of the BSD license. Full details in LICENSE file.
Metadata
Release files for python-cash-register 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-cash-register-0.1.1.tar.gz | 8.1 kB | Without provenance | Details for python-cash-register-0.1.1.tar.gz |
Release files / python-cash-register-0.1.1.tar.gz
| Download URL | python-cash-register-0.1.1.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f176ea2c3485d846e1163db15252df6c256590ed72b79dcacc8259eba31da512
|
|
BLAKE2b-256 checksum How to use checksums |
45a3c7aa3d522e4ec1fbdbe7504a39ec55b251ba5565229b1fc8614dba2a219e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-cash-register 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.