Metadata-Version: 2.4
Name: coreason_signal
Version: 0.1.0
Summary: coreason-signal
License: # The Prosperity Public License 3.0.0
         
         Contributor: CoReason, Inc.
         
         Source Code: https://github.com/CoReason-AI/coreason_signal
         
         ## Purpose
         
         This license allows you to use and share this software for noncommercial purposes for free and to try this software for commercial purposes for thirty days.
         
         ## Agreement
         
         In order to receive this license, you have to agree to its rules.  Those rules are both obligations under that agreement and conditions to your license.  Don't do anything with this software that triggers a rule you can't or won't follow.
         
         ## Notices
         
         Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
         
         ## Commercial Trial
         
         Limit your use of this software for commercial purposes to a thirty-day trial period.  If you use this software for work, your company gets one trial period for all personnel, not one trial per person.
         
         ## Contributions Back
         
         Developing feedback, changes, or additions that you contribute back to the contributor on the terms of a standardized public software license such as [the Blue Oak Model License 1.0.0](https://blueoakcouncil.org/license/1.0.0), [the Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html), [the MIT license](https://spdx.org/licenses/MIT.html), or [the two-clause BSD license](https://spdx.org/licenses/BSD-2-Clause.html) doesn't count as use for a commercial purpose.
         
         ## Personal Uses
         
         Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, doesn't count as use for a commercial purpose.
         
         ## Noncommercial Organizations
         
         Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution doesn't count as use for a commercial purpose regardless of the source of funding or obligations resulting from the funding.
         
         ## Defense
         
         Don't make any legal claim against anyone accusing this software, with or without changes, alone or with other technology, of infringing any patent.
         
         ## Copyright
         
         The contributor licenses you to do everything with this software that would otherwise infringe their copyright in it.
         
         ## Patent
         
         The contributor licenses you to do everything with this software that would otherwise infringe any patents they can license or become able to license.
         
         ## Reliability
         
         The contributor can't revoke this license.
         
         ## Excuse
         
         You're excused for unknowingly breaking [Notices](#notices) if you take all practical steps to comply within thirty days of learning you broke the rule.
         
         ## No Liability
         
         ***As far as the law allows, this software comes as is, without any warranty or condition, and the contributor won't be liable to anyone for any damages related to this software or this license, under any kind of legal claim.***
License-File: LICENSE
License-File: NOTICE
Author: Gowtham A Rao
Author-email: gowtham.rao@coreason.ai
Requires-Python: >=3.11
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Dist: aiofiles (>=23.2.1,<24.0.0)
Requires-Dist: anyio (>=4.3.0,<5.0.0)
Requires-Dist: fastembed (>=0.7.4,<0.8.0)
Requires-Dist: httpx (>=0.27.0,<0.28.0)
Requires-Dist: lancedb (>=0.26.1,<0.27.0)
Requires-Dist: loguru (>=0.7.2,<0.8.0)
Requires-Dist: onnxruntime (>=1.23.2,<2.0.0)
Requires-Dist: pyarrow (>=22.0.0,<23.0.0)
Requires-Dist: pydantic (>=2.12.5,<3.0.0)
Requires-Dist: pydantic-settings (>=2.12.0,<3.0.0)
Requires-Dist: sila2 (>=0.14.0,<0.15.0)
Project-URL: Documentation, https://github.com/CoReason-AI/coreason_signal
Project-URL: Homepage, https://github.com/CoReason-AI/coreason_signal
Project-URL: Repository, https://github.com/CoReason-AI/coreason_signal
Description-Content-Type: text/markdown

# coreason-signal

**The Edge Intelligence Gateway for the CoReason Ecosystem.**

[![License: Prosperity 3.0](https://img.shields.io/badge/license-Prosperity%203.0-blue)](https://prosperitylicense.com/versions/3.0.0)
[![CI Status](https://github.com/CoReason-AI/coreason_signal/actions/workflows/ci.yml/badge.svg)](https://github.com/CoReason-AI/coreason_signal/actions)
[![Code Style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Documentation](https://img.shields.io/badge/docs-product_requirements-blue)](docs/product_requirements.md)

**coreason-signal** transforms laboratory instruments from passive data loggers into active participants. It acts as the "nervous system" of the Self-Driving Lab, bridging the gap between cloud-based reasoning and physical hardware.

## Features

- **Edge Agentic AI (Micro-Cortex):** Deploys Micro-LLMs locally to parse error logs, query local SOPs via RAG, and trigger autonomous recovery actions (e.g., retrying failed aspirations).
- **Soft Sensing (Virtual Metrology):** Uses Physics-Informed Neural Networks (PINNs) to infer invisible biological states (like cell viability) from real-time physical sensor data.
- **Protocol Polyglot:** Natively supports **SiLA 2** (Standard in Lab Automation) while wrapping legacy serial and analog instruments (via Computer Vision) into clean microservices.
- **Live Digital Twin:** Syncs physical state to the CoReason Knowledge Graph with sub-second latency using delta updates.
- **High-Throughput Streaming:** Leverages **Apache Arrow Flight** for efficient transmission of high-frequency waveform data.

For detailed requirements and architecture, see [Product Requirements](docs/product_requirements.md).

## Installation

```bash
pip install coreason-signal
```

## Usage

To start the Edge Intelligence Gateway:

```python
from coreason_signal.main import Application
import signal

# Initialize the application
app = Application()

# Register signal handlers for graceful shutdown
signal.signal(signal.SIGINT, app.shutdown)
signal.signal(signal.SIGTERM, app.shutdown)

# Setup and run
try:
    app.setup()
    app.run()
except Exception as e:
    print(f"Fatal error: {e}")
    app.shutdown()
```

Or via the command line interface (CLI):

```bash
poetry run start
```

## License

This project is licensed under the **Prosperity Public License 3.0**.
See [LICENSE](LICENSE) for details.

