bc-analyzer-0.2.3
توضیحات
A package to create a BehaviorCloud compatible data analyzer.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bc-analyzer-0.2.3 |
| نام | bc-analyzer |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Christian Lent |
| ایمیل نویسنده | christian@behaviorcloud.com |
| آدرس صفحه اصلی | https://github.com/behaviorcloud/bc-analyzer-py |
| آدرس اینترنتی | https://pypi.org/project/bc-analyzer/ |
| مجوز | MIT |
# BehaviorCloud Analyzer
#### Python Helper
[](https://behaviorcloud.com/images/section/logo-4ffacbfa.png)
This is a thin package to help you quickly create a BehaviorCloud analyzer. It will handle calls to the BehaviorCloud API server so you don't have to worry about it. This package supports the following features:
- Fully managed analyzer creation - you just make the conversion function!
- One off analysis (pass an "--id" command-line parameter)
- Daemon analysis (use the "--daemon" flag)
- Exception handling and automatic upload to Sentry.io
Example Usage:
```python
import json
from behaviorcloud.analyzer.data import convert_stream_to_json
from behaviorcloud.analyzer.coordinator import Coordinator
def convert(source_request, source_settings, settings, source, targets):
target = targets[0]
source_data = convert_stream_to_json(source_request)
analyzed_data = [{processed: True, original: entry} for entry in source_data]
return [{
"data": json.dumps(analyzed_data),
"extension": "json",
"id": target["id"],
}]
coordinator = Coordinator(convert)
coordinator.run()
```
نیازمندی
| مقدار | نام |
|---|---|
| ==2.23.0 | requests |
| >=2.8.1,<3.0.0 | python-dateutil |
| >=0.14.4,<0.15.0 | sentry-sdk |
| >=4.3.2,<5.0.0 | deepdiff |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl bc-analyzer-0.2.3:
pip install bc-analyzer-0.2.3.whl
نصب پکیج tar.gz bc-analyzer-0.2.3:
pip install bc-analyzer-0.2.3.tar.gz