Skip to main content

The Omoika plugins framework for graph-based information analysis and offline local-first investigative workflows.

Project description

Introducing Omoika: Reloaded

Logo

I have no data yet. It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.


The Omoika Plugins Framework

PyPI version Python 3.12+ License: MIT

The plugin framework for Omoika, a graph-based OSINT platform for recon, OSINT investigations, link analysis, and more. Offline. Local-first workflows. No cloud dependency.

Overview

Omoika's plugin system enables you to define entities (nodes in the graph) and transforms (operations that create new entities from existing ones). The framework provides:

  • Entity definitions with rich metadata, icons, colors, and form elements
  • Transform decorators with dependency management and version targeting
  • Result types for subgraphs, custom edges, and file attachments
  • Field types for semantic type-based transform matching
  • Settings framework for persistent configuration
  • CLI tools for development and integration

Installation

pip install omoika[all]

For development:

git clone https://github.com/omoika/plugins.git
cd plugins/
pip install -e ".[dev]"

Quick Start

Define an Entity

from omoika import Plugin
from omoika.elements import TextInput, CopyText
from omoika.types import FieldType

class EmailEntity(Plugin):
    version = "1.0.0"
    label = "Email"
    icon = "mail"
    color = "#3B82F6"
    category = "Identity"

    elements = [
        TextInput(label="Email", icon="mail", field_type=FieldType.EMAIL),
        CopyText(label="Domain"),
    ]

Create a Transform

from omoika import transform, Entity, Edge

@transform(
    target="email@>=1.0.0",
    label="Extract Domain",
    icon="world",
)
async def extract_domain(entity):
    email = entity.email
    domain = email.split("@")[1] if "@" in email else None

    if domain:
        return Entity(
            data=DomainEntity.blueprint(domain=domain),
            edge=Edge(label="has domain"),
        )

Run a Transform

ob run -T '{"label": "email", "version": "1.0.0", "transform": "extract_domain", "data": {"email": "user@example.com"}}'

Documentation

Guide Description
Getting Started Installation, project setup, and first plugin
Plugins & Entities Defining entities with the Plugin class
Transforms Creating transforms with the @transform decorator
Elements Input and display elements for entity forms
Field Types Semantic types for fields and type-based matching
Settings Transform configuration and persistence
CLI Reference Command-line interface documentation
API Reference Complete API documentation

Key Concepts

Plugins & Entities

Every node type in the graph is defined as a Plugin subclass. Plugins are automatically registered when defined:

class IPAddress(Plugin):
    version = "1.0.0"
    label = "IP Address"
    elements = [TextInput(label="IP", field_type=FieldType.IP_ADDRESS)]

Transforms

Transforms operate on entities to produce new entities. They target specific entity versions:

@transform(target="ip_address@>=1.0.0", label="GeoIP Lookup", deps=["geoip2"])
async def geoip_lookup(entity):
    # Transform logic
    return Entity(data=Location.blueprint(city="..."))

Result Types

Transforms return Entity, Edge, File, or Subgraph objects:

return Entity(
    data=TargetEntity.blueprint(field="value"),
    edge=Edge(label="discovered", color="#22C55E"),
    files=[File(path="/tmp/report.pdf")],
)

Project Structure

For plugin development and registry submissions, organize your code as:

my-plugins-repo/
├── entities/
│   ├── email.py
│   ├── domain.py
│   └── ip_address.py
└── transforms/
    ├── email_transforms.py
    ├── domain_transforms.py
    ├── network_traceroute_transform.py
    └── network_transforms.py

Load plugins via:

from omoika import load_plugins_fs
load_plugins_fs("/path/to/my-plugins", "my_plugins")

CLI Commands

# List entities and transforms
ob ls entities
ob ls transforms -L email

# Run a transform
ob transform '{"label": "email", "version": "1.0.0", "transform": "to_domain", "data": {...}}'

# Get entity blueprints
ob blueprints -L email

# Initialize a new plugins project
ob init

# Sync manifest and README metadata after repo changes
ob sync

# Compile JSON entity to Python
ob compile entity.json -O entity.py

Requirements

  • Python 3.13+

License

MIT License, see LICENSE for details.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omoika-2.1.0.tar.gz (62.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omoika-2.1.0-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

Details for the file omoika-2.1.0.tar.gz.

File metadata

  • Download URL: omoika-2.1.0.tar.gz
  • Upload date:
  • Size: 62.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for omoika-2.1.0.tar.gz
Algorithm Hash digest
SHA256 80bd0f67e3c2e935e33b92038a75fddd80c4421b2d8077c8fa3e92791c420365
MD5 3a3266ad4256cdef0654ec52d0aac97d
BLAKE2b-256 7c70ed4e6cd0610b6f3338272b7958d61f88dba8315f8b9549de1c9d144b1393

See more details on using hashes here.

Provenance

The following attestation bundles were made for omoika-2.1.0.tar.gz:

Publisher: publish.yml on omoika-institute/framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omoika-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: omoika-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for omoika-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9086bdb3a874921877270607ac98140fa48f2c17a3caacdcecfb97029717d0af
MD5 de7fe43fb8bd0139177c8dad3ee71d49
BLAKE2b-256 857282af0d0340311a4c9b55022a2c5fec2c4862897d7c2096b753d4b0839a80

See more details on using hashes here.

Provenance

The following attestation bundles were made for omoika-2.1.0-py3-none-any.whl:

Publisher: publish.yml on omoika-institute/framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page