Skip to content

atol pos api client

License

Notifications You must be signed in to change notification settings

sir-go/atol-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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