falco-0.4.0


توضیحات

Python client and SDK for Falco.
ویژگی مقدار
سیستم عامل -
نام فایل falco-0.4.0
نام falco
نسخه کتابخانه 0.4.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده The Falco Authors
ایمیل نویسنده cncf-falco-dev@lists.cncf.io
آدرس صفحه اصلی https://github.com/falcosecurity/client-py
آدرس اینترنتی https://pypi.org/project/falco/
مجوز Apache 2.0
# client-py > Python client and SDK for Falco ## Usage ### Output subscribe ```python 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.sub()): print(event) ``` or try it directly (make sure you have the client certificates in `/tmp` or use the unix socket address), for example: ``` python -m examples.tls_sub_events -o json python -m examples.unixsocket_get_events -o json python -m examples.unixsocket_get_version ``` ### Output format Currently there are two output formats available: JSON and Python classes. To change output format, pass the `output_format` parameter to the Client object. ## Development ### Dependencies To install development dependencies, run `pip install -r requirements-dev.txt`. ### Update protos Perform the following edits to the Makefile: 1. Update the PROTOS array with the destination path of the .proto file. 2. Update the PROTO_URLS array with the URL from which to download it. 3. Update thr PROTO_SHAS array with the SHA256 sum of the file to download. 4. Execute the following commands: ```console make clean make protos ``` ### Tests To run the tests, run `make test`. ### Misc To format the code, run `make lint`.


نیازمندی

مقدار نام
==1.26.0 grpcio
==2.8.1 python-dateutil
==3.12.2 protobuf


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl falco-0.4.0:

    pip install falco-0.4.0.whl


نصب پکیج tar.gz falco-0.4.0:

    pip install falco-0.4.0.tar.gz