varlink / python

Python implementation of the Varlink protocol
https://varlink.org/python/
Apache License 2.0
43 stars 8 forks source link

How do I list exposed methods? `python -m varlink.cli help` doesn't work #4

Closed TomasTomecek closed 6 years ago

TomasTomecek commented 6 years ago

Unfortunately, there is no cli module as described in the readme:

$ python3 -m varlink.cli help unix:/run/io.projectatomic.podman
/bin/python3: No module named varlink.cli

$ rpm -q python3-varlink
python3-varlink-22-1.fc29.noarch

$ ll /run/io.projectatomic.podman
srw-rw-rw-. 1 root root 0 May 10 10:11 /run/io.projectatomic.podman
haraldh commented 6 years ago

have to update fedora.. sorry, that is new... use pip for now

haraldh commented 6 years ago

or use /usr/bin/varlink from libvarlink-util

haraldh commented 6 years ago

see also: https://github.com/varlink/python/commit/4059fc0d3239d6fb9ddcc04206a80b631778bfe1#diff-04c6e90faac2675aa89e2176d2eec7d8R39

or the old README version... for version 22

https://github.com/varlink/python/blob/04075a4df9516963f88775ab416b6d903f98fd05/README.md

TomasTomecek commented 6 years ago

will do, thank you!

TomasTomecek commented 6 years ago

Also @baude pointed me to that package. It's really useful, helped me to resolve an issue I had with podman's varlink interface.

haraldh commented 6 years ago

python update with the cli: https://bodhi.fedoraproject.org/updates/python-varlink-25-1.fc28 please test and leave karma