Skip to main content

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.

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.

Scalar stream compatibility

See Scalar stream contract and unreleased repair before using the historical generic transducer. It records the public signal contract, temporal measurements and release boundary.

See pre-release review for neural safety repairs, compatibility changes, validation and remaining limits.

Release files for shunollo 0.3.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shunollo 0.3.12
File Size Uploaded
shunollo-0.3.12.tar.gz 275.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shunollo 0.3.12
File Interpreter ABI Platform
shunollo-0.3.12-py3-none-any.whl Python 3 none any Details

Total release size: 549.8 kB

Release files / shunollo-0.3.12.tar.gz

Download URL shunollo-0.3.12.tar.gz
Size 275.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7d084175a642b26d6529a8326881361a6276985795b7e25ceb628e179020c4ee
BLAKE2b-256 checksum
How to use checksums
8f2ac48198de1ecb7873d39ba866eee43f27f2e6e81e0c4f38106f5b567db14a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / shunollo-0.3.12-py3-none-any.whl

Download URL shunollo-0.3.12-py3-none-any.whl
Size 274.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dbfc12ded7946999e223598fd78184a9bb1a34df44cd4ff5e0b3586843e539f
BLAKE2b-256 checksum
How to use checksums
6c20bb0baba553d5ae949674a4ae2e9696d2410b5dc7402e798768c2008f43ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.13

2 release files

This release

0.3.12 This release

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.7

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page