Skip to main content

Foundation library for the geepers ecosystem: LLM providers, config management, data fetching, and utilities

Project description

geepers-kernel

License: MIT Python 3.8+ PyPI

<<<<<<< HEAD Core library for the geepers ecosystem. Unified interface to 10+ LLM providers, multi-agent orchestration patterns, 15+ structured data API clients, and MCP server infrastructure.

Core library for Dreamwalker MCP. Unified interface to 10+ LLM providers, multi-agent orchestration patterns, 15+ structured data API clients, and MCP server infrastructure.

6ffd655 (session checkpoint: 2026-03-26 01:55)

Documentation: dr.eamer.dev/geepers
Author: Luke Steuber


Install

pip install geepers-kernel

# With all provider dependencies
pip install geepers-kernel[all]

# Specific providers
pip install geepers-kernel[anthropic,xai,openai]

Or from source:

git clone https://github.com/lukeslp/geepers-kernel.git
cd geepers-kernel
pip install -e .[all]

Quick start

LLM providers

from llm_providers import ProviderFactory

provider = ProviderFactory.create_provider('xai', model='grok-3')
response = provider.complete(messages=[
    {'role': 'user', 'content': 'Explain quantum computing'}
])
print(response)

Multi-agent research (Dream Cascade)

from orchestration import DreamCascadeOrchestrator

orchestrator = DreamCascadeOrchestrator(
    provider_name='anthropic',
    model='claude-sonnet-4'
)

result = await orchestrator.execute(
    task="LLM safety research 2023-2025",
    enable_drummer=True,  # mid-level synthesis
    enable_camina=True    # executive summary
)

print(result.final_report)

Data fetching

from data_fetching import ClientFactory

arxiv = ClientFactory.create_client('arxiv')
papers = arxiv.search(query='quantum computing', max_results=10)

census = ClientFactory.create_client('census_acs')
data = census.get_demographics(geography='state:06')

LLM providers

Provider Chat Vision Image Gen
Anthropic (Claude) ,
OpenAI (GPT-4)
xAI (Grok)
Mistral ,
Cohere , ,
Google (Gemini) ,
Perplexity ,
Groq (Llama) , ,
HuggingFace
DeepSeek , ,

Complexity router selects models automatically based on task requirements.


Orchestration patterns

Pattern What it does
dream-cascade Hierarchical: 8 parallel workers → Drummer synthesis → Camina executive summary
dream-swarm Parallel: 5+ domain-specific agents (Academic, News, Technical, Financial)
sequential Staged execution with per-step handlers
conditional Runtime branch selection
iterative Refinement loops with success predicates

Data sources (15+)

  • Academic: arXiv, Semantic Scholar, Open Library, Wikipedia
  • News: NewsAPI, YouTube
  • Code: GitHub repos, commits, users
  • Government: US Census ACS, SAIPE poverty estimates
  • Science: NASA (APOD, Mars photos, satellite imagery)
  • Weather: current conditions, forecasts, air quality
  • Finance: stock quotes, company fundamentals

MCP servers

Four MCP servers expose the library's capabilities via stdio/HTTP:

  • geepers-unified , orchestration (Dream Cascade, Dream Swarm)
  • geepers-providers , direct LLM provider access
  • geepers-data , data fetching tools
  • geepers-websearch , web search (Brave, SerpAPI)

See MCP Guide for configuration.


Package structure

geepers-kernel/
├── llm_providers/          # provider implementations + ProviderFactory
├── orchestration/          # Dream Cascade, Dream Swarm, Sequential, Conditional, Iterative
├── mcp/                    # MCP server implementations
├── data_fetching/          # structured API clients (dream_of_*)
├── document_generation/    # PDF, DOCX, Markdown output
├── config.py               # multi-source configuration
└── naming.py               # naming registry

Naming convention

Pattern Prefix Examples
Orchestration workflows dream-* dream-cascade, dream-swarm
Data tools dream_of_* dream_of_arxiv, dream_of_census_acs
Management tools geepers_* geepers_status, geepers_cancel

Configuration

# Core providers (at least one required)
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
XAI_API_KEY=xai-...

# Optional providers
MISTRAL_API_KEY=...
COHERE_API_KEY=...
GEMINI_API_KEY=...
PERPLEXITY_API_KEY=...
GROQ_API_KEY=...

# Data sources
YOUTUBE_API_KEY=...
GITHUB_TOKEN=ghp_...
NASA_API_KEY=...
NEWS_API_KEY=...

# Infrastructure
REDIS_HOST=localhost
REDIS_PORT=6379

Configuration precedence: defaults → .env → environment variables → CLI args


Testing

pytest
pytest --cov=. --cov-report=html
pytest tests/test_providers.py

License

MIT © Luke Steuber

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

geepers_kernel-1.4.0.tar.gz (306.7 kB view details)

Uploaded Source

Built Distribution

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

geepers_kernel-1.4.0-py3-none-any.whl (355.7 kB view details)

Uploaded Python 3

File details

Details for the file geepers_kernel-1.4.0.tar.gz.

File metadata

  • Download URL: geepers_kernel-1.4.0.tar.gz
  • Upload date:
  • Size: 306.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for geepers_kernel-1.4.0.tar.gz
Algorithm Hash digest
SHA256 74ff9804242bbfcf57a9429117f5980d7345b0822d673b61299387666593fd5d
MD5 005fc2a5f732aef4db6ea0adce6f05a0
BLAKE2b-256 5446190d755fc9c6f56f4dc6651b3fcdf5e91c9d43f26b062a2753b97fc55fbb

See more details on using hashes here.

File details

Details for the file geepers_kernel-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: geepers_kernel-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 355.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for geepers_kernel-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eeb6424a327ea76b80c53f2096f548caa77381c7742d925c861a1c1788b55318
MD5 fb9b8eefa9b263dffa252b66d14c195e
BLAKE2b-256 a24bc95cff63351936069447cb75eee63ae98421cc7e02475593cfcd40819462

See more details on using hashes here.

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