behave-django
Behave BDD integration for Django
Decision gist · record as of 2026-08-14
Yes, if you're running Django 5.2 or 6.0 on Python 3.10+ and want to adopt BDD testing with Gherkin scenarios. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It's well-suited for teams that value readable acceptance criteria and Django's test infrastructure together.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and a Django project (5.2 or 6.0) already set up.
- Low friction installation with a wheel distribution.
- Actively maintained as of 71 days ago with recent commits and a stable codebase.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute behave-django freely provided you include the license notice.
last release 2026-06-04 (71 days) · last repo commit 2026-07-07 · 216 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 264,114 downloads/mo, #8,343 on PyPI
Alternatives
Verify before relying
pip install behave-django
from behave_django import *
# In features/steps/steps.py:
from behave import given, when, then
@given('a Django test environment')
def step_impl(context):
pass- Whether page object patterns are built-in or require manual implementation.
- Specific browser automation libraries supported beyond beautifulsoup4.
- Whether fixture loading covers Django fixtures or custom formats.
- Performance characteristics when running large scenario suites.
What it is and what it does
behave-django bridges Behave, a Gherkin-based behavior-driven development framework, into Django projects. It lets you write acceptance tests in plain-language feature files and execute them against a Django application with full access to the test client, Django's assertion library, and database transaction isolation per scenario.
The package handles the plumbing: it configures Behave to run within Django's test environment, manages database state between scenarios, and provides hooks for fixture loading and page object patterns. It's designed for teams that want to write acceptance criteria in Gherkin (readable by non-developers) while leveraging Django's testing infrastructure and optionally automating browser interactions via beautifulsoup4.
Use it for
- Write acceptance tests in Gherkin that non-technical stakeholders can read and understand alongside developers.
- Test Django views and workflows end-to-end with clean database state between each scenario.
- Automate web UI testing using Django's test client or browser automation without leaving the Behave framework.
- Validate complex user journeys across multiple Django views in a single feature file.
- Integrate BDD testing into CI/CD pipelines using Behave's command-line interface and configuration files.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you're running Django 5.2 or 6.0 on Python 3.10+ and want to adopt BDD testing with Gherkin scenarios.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It's well-suited for teams that value readable acceptance criteria and Django's test infrastructure together.
Install
behave-django on PyPI
Before you install
Low friction installation with a wheel distribution. Actively maintained as of 71 days ago with recent commits and a stable codebase. Requires Python 3.10 or later and is tested against Django 5.2 and 6.0.
Requires Python 3.10 or later and a Django project (5.2 or 6.0) already set up.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute behave-django freely provided you include the license notice.
Quickstart
pip install behave-django
from behave_django import *
# In features/steps/steps.py:
from behave import given, when, then
@given('a Django test environment')
def step_impl(context):
pass
Verify before relying
- Whether page object patterns are built-in or require manual implementation.
- Specific browser automation libraries supported beyond beautifulsoup4.
- Whether fixture loading covers Django fixtures or custom formats.
- Performance characteristics when running large scenario suites.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesbehavedjangobeautifulsoup4 |
| Maintenance | Actively maintained 71 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 264,114 / month, #8,343 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: PluginsEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Testing |
Evidence: behave_django-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “behave django bdd testing”
- behave-djangoIntegrates Behave BDD testing into Django projects, enabling…
- behavexBehaveX extends Behave with parallel test execution, enterprise…
- behavebehave is a behavior-driven development (BDD) framework that lets you…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also behave · radish-bdd · behavex · pytest-bdd · behave-html-formatter · vedro · allure-behave · cucumber-tag-expressions · cucumber-expressions · behave-reportportal