Skip to main content

Declarative framework for enterprise workflows with MCP integration - Client SDK

Project description

Memra SDK

A declarative orchestration framework for AI-powered business workflows. Think of it as "Kubernetes for business logic" where agents are the pods and departments are the deployments.

🚀 Team Setup

New team member? See the complete setup guide: TEAM_SETUP.md

This includes:

  • Database setup (PostgreSQL + Docker)
  • Local development environment
  • Testing instructions
  • Troubleshooting guide

Quick Start

from memra.sdk.models import Agent, Department, Tool

# Define your agents
data_extractor = Agent(
    role="Data Extraction Specialist",
    job="Extract and validate data",
    tools=[Tool(name="DataExtractor", hosted_by="memra")],
    input_keys=["input_data"],
    output_key="extracted_data"
)

# Create a department
dept = Department(
    name="Data Processing",
    mission="Process and validate data",
    agents=[data_extractor]
)

# Run the workflow
result = dept.run({"input_data": {...}})

Installation

pip install memra

API Access

Memra requires an API key to execute workflows on the hosted infrastructure.

Get Your API Key

Contact info@memra.co for API access.

Set Your API Key

# Set environment variable
export MEMRA_API_KEY="your-api-key-here"

# Or add to your shell profile for persistence
echo 'export MEMRA_API_KEY="your-api-key-here"' >> ~/.zshrc

Test Your Setup

python examples/accounts_payable_client.py

Documentation

Documentation is coming soon. For now, see the examples below and in the examples/ directory.

Example: Propane Delivery Workflow

See the examples/propane_delivery.py file for a complete example of how to use Memra to orchestrate a propane delivery workflow.

Contributing

We welcome contributions! Please see our contributing guide for details.

License

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

Examples

├── examples/
│   ├── accounts_payable_client.py  # API-based example
│   ├── accounts_payable.py         # Local example
│   ├── invoice_processing.py       # Simple workflow
│   └── propane_delivery.py         # Domain example
├── memra/                  # Core SDK
├── logic/                  # Tool implementations  
├── local/dependencies/     # Database setup & schemas
└── docker-compose.yml      # Database setup

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

memra-0.2.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

memra-0.2.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file memra-0.2.1.tar.gz.

File metadata

  • Download URL: memra-0.2.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for memra-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0ede1ddec3da46421278cb10b0ad36645804e83b051bb3ca0d114602f3b9a6dc
MD5 ae59ad2b5f6ef69af9b281efdab9111e
BLAKE2b-256 deb47ad8099831cf278319b7e17b7a400322f1732770bacb411ad0acda8f001b

See more details on using hashes here.

File details

Details for the file memra-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: memra-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for memra-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5dea834aa4af9888de8c199ea347462ce2f1356f792140e44093f5bb0df96f78
MD5 1861e36089f1a17dca9bc773cd268c75
BLAKE2b-256 8e1d16614f9fb2e887b37d0048ff182cf9be2b5616e6dc4dd0c74564478012eb

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