Registry / testing / behavex-images

behavex-images

JSON →
library3.3.1pypypi✓ verified 80d ago

BehaveX extension library to attach images (screenshots) to BehaveX test execution reports. Current version 3.3.1, requires Python >=3.8. Released on PyPI with moderate cadence.

pip install behavex-images
INSTALL
IMPORT
SIG · BEHAVEX-IMAGES
B
behavex-images
testingpythonv3.3.1
Install
4.8s avg
Import
Disk
67MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.3.1 · 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
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 68.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.8s · import 0.000s · 69MB
67MB installed
● package 67MB
Code
Verified usage

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

extend_environment
from behavex_images import extend_environment
from behavex_images import BehavexImages
image_attachments
from behavex_images import image_attachments
utils
from behavex_images import utils

Basic usage: import BehavexImages and use context.embed to attach screenshots in Behave steps.

from behave import * from behavex_images import BehavexImages @given('I take a screenshot') def step_take_screenshot(context): driver = context.driver # assume WebDriver context.embed(driver.get_screenshot_as_png(), 'image/png')
Debug
Known issues
gotchaBehavexImages does not need to be instantiated; it's automatically loaded via behave entrypoint.
fix
Do not initialize BehavexImages manually; simply import and use context.embed.
affects: all
deprecatedThe old import path 'from behavex.images' has been removed.
fix
Use 'from behavex_images import BehavexImages'.
affects: >=3.0.0
gotchacontext.embed expects bytes, not file path. Passing a string will raise AttributeError.
fix
Use open('screenshot.png', 'rb').read() to get bytes.
affects: all
Upgrade
Version history
3.3.1latest on PyPI · released Aug 15, 2025
Audit
Dependencies
behavexrequiredCore testing framework; behavex-images is an extension.
Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources