Registry / http-networking / assemblyline-service-client

assemblyline-service-client

JSON →
library4.7.4.3pypypi✓ verified 83d ago

The official Python client for building services that integrate with Assemblyline 4, a scalable file triage and malware analysis platform. Current version 4.7.3.1, maintained by the Canadian Centre for Cyber Security. Releases are tagged with major.minor.patch and stable suffixes.

pip install assemblyline-service-client
INSTALL
IMPORT
SIG · ASSEMBLYLINE-SERVI
A
assemblyline-service-client
http-networkingpythonv4.7.4.3
Install
27.3s avg
Import
Disk
350MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.7.4.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 32.6s
py 3.11
✕ build_error
✓ 25.2s
py 3.12
✕ build_error
✓ 26.7s
py 3.13
✕ build_error
✓ 24.7s
py 3.9
✕ build_error
✕ build_error
350MB installed
● package 350MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ServiceClient
import assemblyline_service_client
from assemblyline_service_client import ServiceClient

Minimal example of creating a ServiceClient, building a ServiceRequest, and processing a task.

from assemblyline_service_client import ServiceClient, ServiceRequest, ServiceResponse # Initialize client - in production use proper auth client = ServiceClient("http://localhost:5001", apikey=("user", "key")) # Process a submission request = ServiceRequest({"sha256": "...", "metadata": {}}) response = client.do_task(request) print(response.results)
Debug
Known issues
breakingVersion 4.0 changed the import paths; legacy code using 'from assemblyline import ...' will break.
fix
Change imports to 'from assemblyline_service_client import ...'
affects: <4.0.0
breakingThe 'do_task' method signature changed in v4.1.0; previously accepted positional args, now requires a ServiceRequest object.
fix
Pass a ServiceRequest object to do_task().
affects: >=4.1.0
gotchaAPI key authentication requires a tuple (username, key) not a string.
fix
Use apikey=('myuser', 'mykey') in constructor.
affects: all
Upgrade
Version history
4.7.4.3latest on PyPI · released May 26, 2026
Audit
Dependencies
assemblyline-commonrequiredRequired for core data structures
assemblyline-remote-datastorerequiredRequired for datastore access
Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources