Skip to content

Neurotec/pywebdriver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pywebdriver

Summary

Python Web Services to communicate wih Devices.

The aim of this project is to make easier communication between application and Devices, providing light WebServices based on Python-Flask libraries. The software can be installed on a computer or a Raspberry-like device. It is compatible with Linux distribution.

Table of Content

Features

Specific WebServices for Odoo

The aim of this sub project is provide WebServices and Web Page to simulate the behaviour of Odoo Apps (hw_proxy applications & co) to allow Odoo users to use Odoo Point of Sale with PyWebDriver as a Proxy.

  • State (depending of devices type):
  • Printers : To be released for 7.0 and 8.0 Series;
  • Scale, Barcode Reader, Cash Box, Credit Carte Reader : Not Planned;
  • Compatibility : Odoo 7.0; Odoo 8.0;

Generic WebServices using CUP

  • State : Planned;

End-Users / Customers Section

If a you're interested by a feature that is not currently supported, please contact our team for a quotation.

Otherwise, if you like this project, feel free to make a donation.

Contributors

The main contributors of this project are :

A lot of the code come from other projects. Licences and copyright are mentionned in each file or in a readme file of the folder. The main other contributors are:

Developers Section

Deployment

To test this module, do the following steps:

  • download it from git;
git clone https://github.com/akretion/pywebdriver.git
  • Install dependency by running this two command
sudo apt-get install cups python-cups python-pip python-netifaces
sudo pip install -r requirement.txt
  • set correct parameters in the config/config.ini file;
  • call this command:
   python pywebdriver.py
  • Call the url : http://localhost:8069 (by default, but depending of your config.ini file) in a browser to see devices state;

Contribute

If you find a bug, feel free to report it and submit a bugfix.

If you want to propose extra features not yet covered, please contact us or submit a Pull Request.

Localization

for the moment, localization is managed for english and french languages. If you want to manage extra lozalisation, do the following step:

  • call this command to generate '.pot' file:
pybabel extract -F translations/settings_babel.cfg -o translations/i18n.pot .
  • call one of the two commands to generate '.po' file:
pybabel init -i translations/i18n.pot -d translations -l <code>  # (First time)
pybabel update -i translations/i18n.pot -d translations          # (Next times)
  • Edit your '.po' file and write correct translation;
  • call this command to generate '.mo' file:
pybabel compile -d translations
  • Change your config.ini file to test the result;
  • Do a Pull Request to share your work;

Other Projects

If you're interested by this project, you could perhaps take a look on this others projects:

About

Python Web Services to communicate wih Devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.6%
  • HTML 13.4%