sir-go / atol-client

atol pos api client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests

Web Client Lib for ATOL POS terminal

A small library - client for ATOL API

Implemented functions

  • buy
  • buyCorrection
  • buyReturn
  • cashIn
  • cashOut
  • changeRegistrationParameters
  • closeArchive
  • closeShift
  • continuePrint
  • fnChange
  • getDeviceInfo
  • getDeviceStatus
  • getFnInfo
  • getRegistrationInfo
  • getShiftStatus
  • nonFiscal
  • ofdExchangeStatus
  • openShift
  • registration
  • reportOfdExchangeStatus
  • reportX
  • sell
  • sellCorrection
  • sellReturn

Install

pip install atol-client

Tests

pip install -r requirements.txt
flake8 . --show-source --statistics && python -m pytest .

Usage

from atol import WebClient

if __name__ == '__main__':
    atol = WebClient("http://atol-host")
    print(atol.get_shift_status())

About

atol pos api client

License:MIT License


Languages

Language:Python 100.0%