Skip to main content

entirius-django-leads

A Django module for leads and the B2B sales pipeline of Entirius, the open-source modular ecommerce platform. It keeps companies and contacts, moves them through stages, runs outreach rules and handles retention and GDPR.

PyPI Python License: MPL-2.0

What it does

  • Imports companies and contacts from CSV and contact forms, with deduplication by domain and email.
  • Moves companies through configurable pipeline stages with a full activity timeline.
  • Runs stage rules: AI-assisted site analysis, recipient selection and outreach drafts behind a consent gate.
  • Anonymises idle contacts on a retention schedule and serves GDPR export and erase requests.
  • Exposes an admin API (JWT, Pydantic schemas, OpenAPI) for the CMS.

Installation

uv add entirius-django-leads
pip install entirius-django-leads

Optional extras: entirius-django-leads[contact-forms] (form submissions become contacts), entirius-django-leads[notifications] (failure notifications to sales admins).

INSTALLED_APPS = [
    # ...
    "django_utils",
    "django_regional",
    "django_agreements",
    "django_siteintel",
    "django_communicator",
    "django_leads",
]

Settings, queue and bootstrap order: docs/install.md — https://github.com/entirius/entirius-django-leads/blob/develop/docs/install.md

Quick start

# main/urls.py
from django.urls import include, path

urlpatterns.append(path("", include("django_leads.urls")))

The admin API is then mounted under api/leads/v2/admin/; the endpoints are described in https://github.com/entirius/entirius-django-leads/blob/develop/docs/api.md

Requirements

  • Python 3.11 or newer, Django 4.2 or newer.
  • PostgreSQL in production (tests fall back to sqlite).
  • A Celery worker consuming the leads_default queue.
  • Entirius packages pulled in: entirius-django-utils, entirius-django-regional, entirius-django-agreements, entirius-django-communicator, entirius-django-siteintel.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos) and drafts its outreach through the communicator.

Development

make install     # sync dependencies (uv, incl. extras)
make check       # lint + format check (ruff)
make test        # test suite (pytest; PostgreSQL with DATABASE_URL, else sqlite)

Development and agent instructions: https://github.com/entirius/entirius-django-leads/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-leads/blob/develop/LICENSE.

Metadata

Release files for entirius-django-leads 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entirius-django-leads 0.4.0
File Size Uploaded
entirius_django_leads-0.4.0.tar.gz 226.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-leads 0.4.0
File Interpreter ABI Platform
entirius_django_leads-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 355.2 kB

Release files / entirius_django_leads-0.4.0.tar.gz

Download URL entirius_django_leads-0.4.0.tar.gz
Size 226.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ddac22a9378064e0eb982260dcf2323614299f01a4f343e0b6a371e50a632b94
BLAKE2b-256 checksum
How to use checksums
fbd0d4aca0c2406b2cb9a6163fb1a4529463947e73238ce54e7c0953ab57dcf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_django_leads-0.4.0-py3-none-any.whl

Download URL entirius_django_leads-0.4.0-py3-none-any.whl
Size 128.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8666e988c1452810ae265a7f2df371ac6d486f1eced0d8bfcadb315c58c2173a
BLAKE2b-256 checksum
How to use checksums
b51bab104c0eced190f887205bc816a1d1388601bc878d5217ca573513646dc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page