Skip to main content

Biomimetic Physics Engine for Cognitive Architectures

Project description

Shunollo - The Biomimetic Physics Engine

PyPI version License CI Python 3.9+

A Universal Physics Engine for Cognitive Architectures

Shunollo provides a pure, agnostic physics layer for translating any data stream into sensory qualia - enabling AI systems to "feel" their environment through entropy, roughness, viscosity, and other universal metrics.

[!IMPORTANT] Status: Production Ready (v0.3.9)

  • Physics: Modular (Thermodynamics, Quantum, Optics, Mechanics)
  • Integrity: 228 Tests (Unit, Integration, Functional, Performance)
  • Performance: Sub-millisecond latency (<0.1ms)
  • Safety: Verified (Refractory Period, Thermal Limits)

100% Open Source

Shunollo is fully open source under the Apache 2.0 license. There is no "Enterprise Edition" or paid tier of the library itself. You get everything.

Build whatever you want. That's why we made this.

Key Features

Physics Engine (Multivariate Sensory Qualia)

Transform any data stream into a normalized physics fingerprint:

  • Mechanics: Energy, Entropy, Roughness, Viscosity
  • Thermodynamics: Temperature, Landauer Cost, Arrhenius Rates
  • Quantum: Radical Pair coherence, Tunneling
  • Time Series: Volatility, Lyapunov Exponents, Poisson Detection
  • High-Order: Dissonance, Hamiltonian, Lagrangian Action

Physics-RAG (Integrated v0.3.9) 🆕

Retrieval-Augmented Generation for Sensation - your AI remembers what it has "felt" before:

from shunollo_core.memory.hippocampus import Hippocampus
from shunollo_core.models import ShunolloSignal

# Store an experience
hippo = Hippocampus()
signal = ShunolloSignal(energy=5.0, roughness=0.8, entropy=6.5)
hippo.remember(signal)

# Later: Déjà Vu - "Have I felt this before?"
query_vector = new_signal.to_vector(normalize=True)
similar_episodes = hippo.recall_similar(query_vector, k=3)

if similar_episodes:
    past_signal, distance = similar_episodes[0]
    print(f"Déjà Vu! This feels like {past_signal.timestamp} (distance: {distance})")

Why it matters: Enables One-Shot Learning. Detect an anomaly once, store the sensory signature, recognize it instantly on reoccurrence.

Architecture

shunollo/
├── shunollo_core/       # Pure Physics (Math only)
│   ├── physics/         # Mechanics, Thermo, Quantum, etc.
│   ├── brain/           # Autoencoder (Imagination)
│   ├── cognition/       # Active Inference + DDM
│   └── memory/          # Holographic + Hippocampus
└── shunollo_runtime/    # Nervous System (Event Bus)
graph LR
    subgraph Shunollo Core
    A[Physics Engine] --> B[18-dim Vector]
    B --> M[Hippocampus]
    M -->|Déjà Vu| B
    end
    
    subgraph Shunollo Runtime
    B --> C((Thalamus Bus))
    C --> D[Neural Cortex]
    C --> E[Reflex Agent]
    end
    
    D & E --> F[Decision]

Installation

pip install shunollo

Quick Start

# Pure physics calculation
from shunollo_core.physics.mechanics import calculate_entropy, calculate_roughness
entropy = calculate_entropy(data)
roughness = calculate_roughness(entropy, jitter=0.1)

# Create a sensory signal
signal = ShunolloSignal(
    energy=1.5,
    entropy=entropy,
    roughness=roughness,
)

# Get 13-dimensional sensory vector
vector = vectorize_sensation(signal.to_dict())

# Store in episodic memory
hippo = Hippocampus()
hippo.remember(signal)

# Check novelty: "How new is this sensation?"
novelty = hippo.get_novelty_score(signal.to_vector())
if novelty > 1.0:
    print("Novel pattern detected!")

License

Apache 2.0 - See LICENSE

Documentation

Community

Contributing

We welcome research contributions. Please see CONTRIBUTING.md for architectural rules and setup instructions.

Note: By contributing, you agree to our Contributor License Agreement.

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

shunollo-0.3.9.tar.gz (268.8 kB view details)

Uploaded Source

Built Distribution

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

shunollo-0.3.9-py3-none-any.whl (270.9 kB view details)

Uploaded Python 3

File details

Details for the file shunollo-0.3.9.tar.gz.

File metadata

  • Download URL: shunollo-0.3.9.tar.gz
  • Upload date:
  • Size: 268.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shunollo-0.3.9.tar.gz
Algorithm Hash digest
SHA256 7b25c9069b328832bc2d8493d0a283392a64793d467e7e5abaec02b4776ac6cb
MD5 ed6bfe3182f8b908e62e0a27c8493d2c
BLAKE2b-256 63a989b858a0b5a71d66fb04e7168a909f016898f22fb09bdea9d121c7367619

See more details on using hashes here.

Provenance

The following attestation bundles were made for shunollo-0.3.9.tar.gz:

Publisher: publish.yml on TheLazyEyedJedi/Shunollo

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

File details

Details for the file shunollo-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: shunollo-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 270.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shunollo-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae01c75314a7332ad6cbadeef03287bc7ee3b8d28e8ac5386b6daac678e7c53
MD5 00dc52e1545a79b4cd130c3cdf24b081
BLAKE2b-256 26f35f2c3797bc59144f27d1137798afdf833a3e8103381d8f7d15e06b51063d

See more details on using hashes here.

Provenance

The following attestation bundles were made for shunollo-0.3.9-py3-none-any.whl:

Publisher: publish.yml on TheLazyEyedJedi/Shunollo

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