Skip to main content

Minimalistic component composition interface

Project description

arxglue

Minimalistic Component Composition Interface

Apache License 2.0 Python Versions ![GitHub]

pip install arxglue

Why arxglue?
Minimal Core: Only essential primitives (Component, Connection)

Zero Dependencies: Pure Python, no external packages

Framework Agnostic: Works with any Python code

Extremely Flexible: From simple scripts to complex systems

Apache 2.0 Licensed: Permissive for commercial use

Core Concepts
python
from arxglue import connect, execute_linear

# Any callable is a component
def uppercase(text: str) -> str:
    return text.upper()

# Create connections
connection = connect(uppercase, print)

# Execute sequentially
execute_linear([uppercase, print], "hello")
Advanced Patterns
python
# Group connections
def sensor1(): return 10
def sensor2(): return 20
def processor(data): return sum(data)

connect(
    source=(sensor1, sensor2),
    target=processor,
    transformer=lambda x, y: [x, y]
)

# Stateful processing
class ProcessingContext:
    def __init__(self, data):
        self.input = data
        self.output = None
        self.state = {}
        
    def __call__(self):
        self.output = process(self.input)
        self.state["processed"] = True



License
Apache License 2.0 - See LICENSE for details.

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

arxglue-1.0.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

arxglue-1.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file arxglue-1.0.1.tar.gz.

File metadata

  • Download URL: arxglue-1.0.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for arxglue-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1a1926a85ee54a27eb0bfd9c743dd567a50202760069c834f3ac08918bbd7223
MD5 d2469ba9ce28676eaeb00fd3b4806e2a
BLAKE2b-256 aabfeea58b2855c0dee196dc50b9c5a641a51a02e6816cb41b7793881f25c44b

See more details on using hashes here.

File details

Details for the file arxglue-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: arxglue-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for arxglue-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4eafc5b9f2e3a12810a73438d4cbada0ed3f50f49de50ede7be62f96cd0bc3b
MD5 fbe51307b5f2e89ef00c7fdaeb5a2005
BLAKE2b-256 6b1919831ca158982f67717513d03132306e6d45a090897a238e349dec6ab8e9

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