Skip to main content

Universal anything-to-anything connector framework

Project description

aisquare.pipe

CI PyPI Python License: Apache 2.0 Code style: Ruff PRs welcome

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

Contributing & Community

Contributions are welcome! See CONTRIBUTING.md for the full guide — pipe new-connector <service> scaffolds a connector plugin in seconds.

License

Apache License 2.0 © AISquare Studio

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.1.tar.gz (192.6 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.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aisquare_pipe-0.1.1.tar.gz
  • Upload date:
  • Size: 192.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aisquare_pipe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 73f691adf027fa036415222a8428de24a2d5f9594b28dd9dedf1c3f774167cc4
MD5 6b917f627bf2df2a09fb0ba7c4681e03
BLAKE2b-256 6e7039356c2e3c2fab9a75b38550d1c5b4d1a5a6c1dc4147c3008df1a4fc2de6

See more details on using hashes here.

Provenance

The following attestation bundles were made for aisquare_pipe-0.1.1.tar.gz:

Publisher: publish.yml on AISquare-Studio/pipe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: aisquare_pipe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aisquare_pipe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1538abfccc5c507ec953e5a070e85013f8e633a5d47238e36d884373a500f75
MD5 9f058d6a8d67eb3dff52d1fa6917f85f
BLAKE2b-256 41574f878777654b94cf1c2b80f3791f0727b3371b9c5d4a446ca58038a61613

See more details on using hashes here.

Provenance

The following attestation bundles were made for aisquare_pipe-0.1.1-py3-none-any.whl:

Publisher: publish.yml on AISquare-Studio/pipe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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