Python client and SDK for Falco
import falco
client = falco.Client(endpoint="localhost:5060", client_crt="/tmp/client.crt", client_key="/tmp/client.key", ca_root="/tmp/ca.crt")
for event in client.subscribe(falco.Request(keepalive=True)):
print(event)
or try it directly (make sure you have the client certificates in /tmp
):
python -m examples.get_events -o json
Currently there are two output formats available: JSON and Python classes.
To change output format, pass the output_format
to the Client object.
TBD
Perform the following edits to the Makefile:
- Update the PROTOS array with the destination path of the .proto file.
- Update the PROTO_URLS array with the URL from which to download it.
- Update thr PROTO_SHAS array with the SHA256 sum of the file to download.
- Execute the following commands:
make clean
make protos
To run the tests, run make test
.
To format the code, run make lint
.