(Migrated) zato's API included in the completion of the editor

(This message has been automatically imported from the retired mailing list)

Hello… there is a way to get the zato’s API included in the completion of
the editors (other than rewrite the PYTHONPATH to
/opt/zato/2.0.7/zato-agent/src,/opt/zato/2.0.7/zato-broker/src,/opt/zato/2.0.7/zato-cli/src,…)
??

in Pypi is only the 1.0 version of zato.

Thank you,

Oh, ok

thank you very much

2015-11-07 9:39 GMT-05:00 Dariusz Suchojad dsuch@zato.io:

On 07/11/15 15:33, Anielkis Herrera wrote:

Hello… there is a way to get the zato’s API included in the completion
of the editors (other than rewrite the PYTHONPATH to

/opt/zato/2.0.7/zato-agent/src,/opt/zato/2.0.7/zato-broker/src,/opt/zato/2.0.7/zato-cli/src,…)

??

in Pypi is only the 1.0 version of zato.

Hi Anielkis,

Zato is not distributed as a PyPI package and there is no code on PyPI,
it’s only a link to the main site at https://zato.io

The way to make your IDE aware of Zato is to place Zato packages on
PYTHONPATH. This is exactly what I do myself.

I’m not sure if there can be any other way, there are no interfaces in
Python to distribute along with the main package so you just need to
point the IDE to the code itself. (Though that may change in Python 3.5+
with type declarations but that’s another story).

What I do is something like:

$ /path/to/zato/bin/py

import sys
for elem in sorted(sys.path):
… print(elem)

This returns a list of all things that are related to Zato which can
then be given to an IDE.

On 07/11/15 15:33, Anielkis Herrera wrote:

Hello… there is a way to get the zato’s API included in the completion
of the editors (other than rewrite the PYTHONPATH to
/opt/zato/2.0.7/zato-agent/src,/opt/zato/2.0.7/zato-broker/src,/opt/zato/2.0.7/zato-cli/src,…)
??

in Pypi is only the 1.0 version of zato.

Hi Anielkis,

Zato is not distributed as a PyPI package and there is no code on PyPI,
it’s only a link to the main site at https://zato.io

The way to make your IDE aware of Zato is to place Zato packages on
PYTHONPATH. This is exactly what I do myself.

I’m not sure if there can be any other way, there are no interfaces in
Python to distribute along with the main package so you just need to
point the IDE to the code itself. (Though that may change in Python 3.5+
with type declarations but that’s another story).

What I do is something like:

$ /path/to/zato/bin/py

import sys
for elem in sorted(sys.path):
… print(elem)

This returns a list of all things that are related to Zato which can
then be given to an IDE.