Skip to content

nareyko/pyiiko2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache 2.0 LicenseUpdatesCodeship Status for nareyko/pyiiko2CodacyTotal alertsLanguage grade: Python

Credits

This library is based on https://github.com/gadzhi/pyiiko. My goal is to have lightweight library without backward compatibility to the original library.

About

Pyiiko is the easy-to-use library for iiko ERP. This library provides a pure Python interface for the iiko Server API, iikoBiz and FrontWebApi.

iiko company development of innovative systems for HoReCa industry.

Installation

pip install git+https://github.com/nareyko/pyiiko2.git

Usage

    from Pyiiko2.server import IikoServer, password_hash

    ip = 'server ip'
    port = 'server port'
    login = 'login'
    password = 'password'

    iiko = IikoServer(
        ip = ip, port = port, 
        login = login , passhash = password_hash(password)
    )
    iiko.login()
    print(iiko.token)
    iiko.logout()