Sign inSign up

droqai/dfx-math-executor-node

By droqai

•Updated 10 months ago

A Droq AI node providing a unified interface for mathematical operations

Image
Machine learning & AI
0

504

droqai/dfx-math-executor-node repository overview

⁠Droq Math Executor Node

A Droq AI⁠ node provides a unified interface for mathematical operations.

⁠🚀 Installation

# Install UV
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and setup
git clone https://github.com/droq-ai/dfx-math-executor-node.git
cd dfx-math-executor-node
uv sync

# Verify installation
uv run droq-math-executor-node --help
⁠Using Docker
docker build -t droq-math-executor-node:latest .
docker run --rm -p 8003:8003 droq-math-executor-node:latest

⁠🧩 Usage

⁠Running the Node
# Run locally (defaults to port 8003)
./start-local.sh

# or specify a port
./start-local.sh 8003

# or use uv directly
uv run droq-math-executor-node --port 8003
⁠API Endpoints

The server exposes:

  • GET /health – readiness probe
  • POST /api/v1/execute – execute math components

⁠⚙️ Configuration

Environment variables:

VariableDefaultDescription
HOST0.0.0.0Bind address
PORT8003HTTP port
LOG_LEVELINFOPython logging level
NATS_URLnats://localhost:4222NATS server connection URL
NODE_IDdroq-math-executor-nodeNode identifier

⁠🔧 Development

# Install development dependencies
uv sync --group dev

# Run tests
uv run pytest

# Format code
uv run black src/ tests/
uv run ruff check src/ tests/
uv run ruff format src/ tests/

# Type checking
uv run mypy src/

⁠📄 License

This project is licensed under the MIT License - see the LICENSE⁠ file for details.

Tag summary

Content type

Image

Digest

sha256:4efe17b86…

Size

39.3 MB

Last updated

10 months ago

docker pull droqai/dfx-math-executor-node