Reading through docs trying to figure this out: Do...
# kolide
s
Reading through docs trying to figure this out: Does fleetctl have language bindings? Or would I need to shell out if I wanted to use fleetctl from a python script? Or would it just be easier to hit the Fleet API directly?
s
Iā€™m not aware of any bindings. The tool itself is of course open source though, which should make it easy to port to another language if needed
šŸ‘ 1
z
If you are using Go, you can use the same client library that
fleetctl
does (https://github.com/kolide/fleet/blob/master/server/service/client.go). You can certainly hit the API directly from any language. IMO it would definitely be worth considering whether shelling out to
fleetctl
is your easiest option if you are using Python.
āž• 1
šŸ‘ 1
s
@stefanmaerz If you're thinking of Python I have some code that might give you a quick start.
šŸ‘ 1
s
@Sk Yes!! That would be awesome! Right now a dev on my team is working to reverse the API
@zwass Thanks Zach!! Appreciate the advice! Very helpful. My working on this very much dislikes Go, so I'm not sure he'll bite at that.
s
@stefanmaerz I have it in a Jupyter Notebook, will that be OK?
s
Yep!
s
DM
d
@SK Would you mind sharing it with me as well? šŸ™‚
s
Hey @defensivedepth, sure, no problem!