tinyerp / odooly

Python library and CLI to interact with Odoo and OpenERP.
https://odooly.rtfd.io/
Other
60 stars 33 forks source link

Python REPL #1

Open arkhan opened 5 years ago

arkhan commented 5 years ago

Regards, What a great job, I would like to know if it is possible to give support to work with: https://github.com/prompt-toolkit/ptpython

Thank you

florentx commented 5 years ago

Hello, I wonder if it is not already supported.

Try this wrapper script ptodoo.py:

#!/usr/bin/env python3
import odooly
import ptpython.repl

odooly.main(interact=ptpython.repl.embed)

I did not try it, but according to the documentation it should do something.