Title
#kolide
stefanmaerz

stefanmaerz

04/08/2020, 2:32 PM
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?
sundsta

sundsta

04/08/2020, 3:23 PM
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
zwass

zwass

04/08/2020, 3:39 PM
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.
SK

SK

04/08/2020, 6:43 PM
@stefanmaerz If you're thinking of Python I have some code that might give you a quick start.
stefanmaerz

stefanmaerz

04/08/2020, 6:50 PM
@Sk Yes!! That would be awesome! Right now a dev on my team is working to reverse the API
6:52 PM
@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.
SK

SK

04/08/2020, 6:53 PM
@stefanmaerz I have it in a Jupyter Notebook, will that be OK?
stefanmaerz

stefanmaerz

04/08/2020, 6:57 PM
Yep!
SK

SK

04/08/2020, 7:23 PM
DM
defensivedepth

defensivedepth

04/09/2020, 11:36 PM
@SK Would you mind sharing it with me as well? šŸ™‚
SK

SK

04/10/2020, 7:29 AM
Hey @defensivedepth, sure, no problem!