Skip to main content

A package to create a BehaviorCloud compatible data analyzer.

Project description

BehaviorCloud Analyzer

Python Helper

N|Solid

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:

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bc-analyzer-0.2.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bc_analyzer-0.2.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file bc-analyzer-0.2.3.tar.gz.

File metadata

  • Download URL: bc-analyzer-0.2.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.8.9 Darwin/20.5.0

File hashes

Hashes for bc-analyzer-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fef1e437eff4dac3c8d3c8c5e0cad52278f16e1a5b45c10e67dde3d670c62ebe
MD5 becba158d8963f269248e2cdacbef896
BLAKE2b-256 df3cceb3fd569643e087f2eb054d10a85a36830416407f92ef90ea77ca1d7431

See more details on using hashes here.

File details

Details for the file bc_analyzer-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: bc_analyzer-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.8.9 Darwin/20.5.0

File hashes

Hashes for bc_analyzer-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7e62cfdb1fa3bf4334b6a985133785227ae877e9736c95d8fde1f5895c039b77
MD5 9f1d8982960f3cd16495a0dcc586709a
BLAKE2b-256 3824455fd5e8b8206e4c0242e6b79a1170de4fa0b631f17dc9d8141de12f7b62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page