Skip to main content

Universal anything-to-anything connector framework

Project description

aisquare.pipe

License: Apache 2.0

Universal anything-to-anything connector framework. Instead of building N² bespoke integrations between services, each service implements a single Source (pulls data) and/or Sink (pushes data) connector against a universal DataEnvelope spec. The framework handles type matching, pipeline orchestration, and plugin discovery.

Install

pip install aisquare-pipe                       # framework only
pip install "aisquare-pipe[popular]"            # framework + the canonical core connectors
pip install "aisquare-pipe[full]"               # framework + all connectors maintained in this repo
pip install aisquare-pipe-<service>             # framework + a single connector (e.g. aisquare-pipe-dropbox)

For development:

git clone git@github.com:AISquare-Studio/pipe.git && cd pipe
pip install -e ".[dev]"

Note: Plugin discovery via entry_points requires the package to be installed (pip install -e .).

Connectors

Each connector is its own independently published pip package under connectors/<name>/. The user-facing tier is encoded in the extras bundles — folder location does not determine tier.

Connector Package In [popular] In [full]
Local filesystem aisquare-pipe-local
Dropbox aisquare-pipe-dropbox
OneDrive aisquare-pipe-onedrive
Salesforce aisquare-pipe-salesforce
DocuSign aisquare-pipe-docusign

Third-party connectors published as aisquare-pipe-<name> (or any package declaring the aisquare_pipe.connectors entry-point group) are auto-discovered after install.

Quick Start

from aisquare.pipe import Pipeline
from aisquare.pipe.testing.mock_connectors import MockSource, MockSink

source = MockSource(count=5)
sink = MockSink()

result = Pipeline(source=source, sink=sink).run({})

print(f"Transferred {result.success_count} envelopes")
print(f"Sink received: {[e.data for e in sink.received]}")

Architecture

┌─────────────┐    ┌──────────────┐    ┌─────────────┐
│   Source     │───>│ DataEnvelope │───>│    Sink     │
│  Connector   │    │              │    │  Connector   │
│              │    │ content_type │    │              │
│  pull() ─────┼──> │ data         │ ──>│──── push()  │
│              │    │ metadata     │    │              │
└─────────────┘    └──────────────┘    └─────────────┘
       │                  │                    │
       │          ┌───────┴────────┐           │
       │          │  TypeMatcher   │           │
       │          │  ┌──────────┐  │           │
       │          │  │Converter │  │           │
       │          │  └──────────┘  │           │
       │          └────────────────┘           │
       │                                       │
       └──────── Pipeline.run() ───────────────┘

CLI

pipe list                            # list installed connectors
pipe describe mock-source            # show connector details
pipe check mock-source mock-sink     # check type compatibility
pipe run --source mock-source --sink mock-sink --config config.json
pipe new-connector my-service        # scaffold a new connector plugin

Building a Connector

See CONTRIBUTING.md for the full guide. In short:

  1. pipe new-connector my-service — scaffolds a plugin project
  2. Implement SourceConnector.pull() and/or SinkConnector.push()
  3. Register via entry_points in your pyproject.toml
  4. Run connector_compliance_suite(MyConnector) to validate

License

Apache License 2.0

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

aisquare_pipe-0.1.0.tar.gz (84.9 kB view details)

Uploaded Source

Built Distribution

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

aisquare_pipe-0.1.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file aisquare_pipe-0.1.0.tar.gz.

File metadata

  • Download URL: aisquare_pipe-0.1.0.tar.gz
  • Upload date:
  • Size: 84.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for aisquare_pipe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f77f80e4bd876f4adf351112394ee31bc37b8cabf72614988a050e2c5847988c
MD5 ffb1aa88562d8f6d35e2ea303fd009cc
BLAKE2b-256 bd6850ad92ffaef14985597d94b1fa52deb561ee5adb75e3d9c2660c078ad982

See more details on using hashes here.

File details

Details for the file aisquare_pipe-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aisquare_pipe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for aisquare_pipe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a91ce0b5211926a0709a373ebc2128eb9ffda6960ad7bc2660361c7c71e0c77
MD5 6507f33d842d36406bff8790bab39f3b
BLAKE2b-256 2fbf3c9a495f72bd5d36790c5ebd72ba7d3b4e6c9ba330c668825c99552fb039

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