Version 0.1.1
Caracara v0.1.1
This update resolves a results batching issue when the result set exceeded the DATA_BATCH_SIZE.
The Client object can now accept environment variable representations for the following arguments:
client_id
client_secret
cloud_name
user_agent
member_cid
Format: ${VARIABLE_NAME}
Two new examples are added, and the list_windows_devices.py
example was updated.
Testing for releases via Poetry is also implemented.
- Enhancement
- Bug fixes
- Documentation
Bandit analysis
[main] INFO running on Python 3.9.9
Run started:2022-06-08 03:57:19.208325
Test results:
No issues identified.
Code scanned:
Total lines of code: 3606
Total lines skipped (#nosec): 1
Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
Added features and functionality
- Updated: Added total results returned to list Windows devices example.
examples/list_windows_devices.py
- Added: New example, list all devices.
examples/list_all_devices.py
- Added: New example, find devices.
examples/find_devices.py
- Added: Environment variables are now allowed for initialization arguments to the Client constructor.
client.py
#!/usr/bin/env python3 from caracara import Client client = Client(client_id="${FALCON_CLIENT_ID_TALON1}", client_secret="${FALCON_CLIENT_SECRET_TALON1}") for device_id, device_data in client.hosts.describe_devices().items(): print(f"{device_id} {device_data['hostname']}")
Issues resolved
- Bug fix: Fix within batch handler causing results to be dropped in large result sets. Closes #26.
common/batching.py
Other
- Testing for new packaging deployment
Full Changelog: v0.1.0...v0.1.1