Publish python deps for modules as optional depencency groups

Open
#3,581 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@liquidsec is already working on this.

Since Oct 27, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement

Description
It would be nice to be able to uv tool install bbot --extra allor pipx install bbot[all] rather than uv tool install bbot && bbot --install-all-deps. That would allow the dependency resolution to be handled all at once, letting the resolver (uv/pip/pipx/whatever) reuse the work, rather than reevaluating the full chains for each module that defines a deps_pip. It would also make it a bit easier to identify any version conflicts between modules, and simplify installation in immutable environments where using pip at runtime isn't viable / allowed.

The simplest way would be to have any module that has a python dep add a dependency to pyproject.toml, but that's a lot of duplication. A better option might be to use a hatchling hook to dynamically set it by importing each module and reading it's deps_pip attr.

I think there would also be value in having an extras option for each module, so if it's known ahead of time what modules will be used, those can be individually installed. That could let the install be something like pipx install bbot[baddns,mysql], though that's not going to be as universally useful.

Dominant language
Python
Stars
10.9k
Forks
959
Avg merge
2d 7h
Merged PRs (30d)
84

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blacklanternsecurity/bbot

All issues in blacklanternsecurity/bbot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.