[PR #87] [MERGED] feat: autodiscover types and enrichers #409

Closed
opened 2026-04-16 02:14:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/reconurge/flowsint/pull/87
Author: @dextmorgn
Created: 11/30/2025
Status: Merged
Merged: 11/30/2025
Merged by: @dextmorgn

Base: mainHead: feat/autodiscover-types-and-enrichers


📝 Commits (5)

  • 57ea2a0 feat(types): auto_discovery of types
  • 1af9d28 feat(core): update dependencies + orchestrator
  • e41ca3b feat(api): update flowsint_enrichers registry
  • 97ec7be feat(enrichers): add decorator to all enrichers
  • 868a063 feat(enrichers): remove dummy test enrichers

📊 Changes

86 files changed (+721 additions, -5193 deletions)

View changed files

📝 flowsint-api/app/api/routes/enrichers.py (+7 -4)
📝 flowsint-api/app/api/routes/flows.py (+6 -3)
📝 flowsint-api/app/api/routes/types.py (+64 -82)
📝 flowsint-core/src/flowsint_core/core/orchestrator.py (+3 -3)
flowsint-core/src/flowsint_core/core/registry.py (+0 -207)
📝 flowsint-core/src/flowsint_core/tasks/enricher.py (+6 -3)
📝 flowsint-core/tests/import/test_entity_detection.py (+0 -1)
📝 flowsint-enrichers/src/flowsint_enrichers/__init__.py (+8 -1)
📝 flowsint-enrichers/src/flowsint_enrichers/asn/to_cidrs.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/cidr/to_ips.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/crypto/to_nfts.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/crypto/to_transactions.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_asn.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_history.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_ip.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_root_domain.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_subdomains.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_website.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/domain/to_whois.py (+2 -0)
📝 flowsint-enrichers/src/flowsint_enrichers/email/to_domains.py (+2 -0)

...and 66 more files

📄 Description

Types and enrichers are now auto discovered using their respective decorators.

For types:

from .flowsint_base import FlowsintType
from .registry import flowsint_type


@flowsint_type
class Domain(FlowsintType):
    """Represents a domain name and its properties."""
    ...

For enrichers:

from flowsint_enrichers.registry import flowsint_enricher
from flowsint_core.core.enricher_base import Enricher

@flowsint_enricher
class MyEnricher(Enricher):
...

---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/reconurge/flowsint/pull/87 **Author:** [@dextmorgn](https://github.com/dextmorgn) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 11/30/2025 **Merged by:** [@dextmorgn](https://github.com/dextmorgn) **Base:** `main` ← **Head:** `feat/autodiscover-types-and-enrichers` --- ### 📝 Commits (5) - [`57ea2a0`](https://github.com/reconurge/flowsint/commit/57ea2a001eb1c58b0eb59077ce92a37cd5eb0c82) feat(types): auto_discovery of types - [`1af9d28`](https://github.com/reconurge/flowsint/commit/1af9d286546d8e2b14bcbc4b3f0ac11690c61de4) feat(core): update dependencies + orchestrator - [`e41ca3b`](https://github.com/reconurge/flowsint/commit/e41ca3b4dc7095bbfdc3e7a5e0cf87a97857f446) feat(api): update flowsint_enrichers registry - [`97ec7be`](https://github.com/reconurge/flowsint/commit/97ec7bec5775227340f3ccb2fb8f704e35a046c4) feat(enrichers): add decorator to all enrichers - [`868a063`](https://github.com/reconurge/flowsint/commit/868a0630f0fcbbb49404eabeb9198bfb525e43eb) feat(enrichers): remove dummy test enrichers ### 📊 Changes **86 files changed** (+721 additions, -5193 deletions) <details> <summary>View changed files</summary> 📝 `flowsint-api/app/api/routes/enrichers.py` (+7 -4) 📝 `flowsint-api/app/api/routes/flows.py` (+6 -3) 📝 `flowsint-api/app/api/routes/types.py` (+64 -82) 📝 `flowsint-core/src/flowsint_core/core/orchestrator.py` (+3 -3) ➖ `flowsint-core/src/flowsint_core/core/registry.py` (+0 -207) 📝 `flowsint-core/src/flowsint_core/tasks/enricher.py` (+6 -3) 📝 `flowsint-core/tests/import/test_entity_detection.py` (+0 -1) 📝 `flowsint-enrichers/src/flowsint_enrichers/__init__.py` (+8 -1) 📝 `flowsint-enrichers/src/flowsint_enrichers/asn/to_cidrs.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/cidr/to_ips.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/crypto/to_nfts.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/crypto/to_transactions.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_asn.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_history.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_ip.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_root_domain.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_subdomains.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_website.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/domain/to_whois.py` (+2 -0) 📝 `flowsint-enrichers/src/flowsint_enrichers/email/to_domains.py` (+2 -0) _...and 66 more files_ </details> ### 📄 Description Types and enrichers are now auto discovered using their respective decorators. For types: ```python from .flowsint_base import FlowsintType from .registry import flowsint_type @flowsint_type class Domain(FlowsintType): """Represents a domain name and its properties.""" ... ``` For enrichers: ```python from flowsint_enrichers.registry import flowsint_enricher from flowsint_core.core.enricher_base import Enricher @flowsint_enricher class MyEnricher(Enricher): ... --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 02:14:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/flowsint#409