Skip to main content

A universal bridge to connect, map, and automate data transfer between any two REST APIs

Project description

ApiLinker

PyPI version License: MIT Binder Documentation

A universal bridge to connect, map, and automate data transfer between any two REST APIs.


📚 Documentation

Full documentation is available at https://kkartas.github.io/APILinker/.

🚀 Quick Install

pip install apilinker

⭐ Message Queue Connectors

Message-queue connectors are optional.

pip install apilinker[mq]

Minimal example (worker loop):

from apilinker.core.error_handling import DeadLetterQueue
from apilinker.core.message_queue import MessagePipeline, MessageWorker
from apilinker.core.message_queue_connectors import RabbitMQConnectorPlugin

consumer = RabbitMQConnectorPlugin()
producer = RabbitMQConnectorPlugin()

consumer_conn = consumer.connect(host="localhost")
producer_conn = producer.connect(host="localhost")

pipeline = MessagePipeline(
    consumer=consumer,
    producer=producer,
    dlq=DeadLetterQueue("./dlq"),
)

worker = MessageWorker(
    pipeline,
    consumer_connection=consumer_conn,
    producer_connection=producer_conn,
    source="input_queue",
    default_destination="output_queue",
)

worker.run()

🌟 Features

  • 🔄 Universal Connectivity - Connect any two REST APIs.
  • 🗺️ Powerful Mapping - Transform data with ease.
  • 🔗 Multi-Source Aggregation (v0.7.1) - Join data from multiple APIs (inner/left/right/outer joins) via the Python API.
  • 📥 Large Download Streaming (v0.7.1) - Stream HTTP responses to disk with resume and progress callbacks.
  • Event-Driven Pipelines - Optional message queue connectors (RabbitMQ, Redis Pub/Sub, AWS SQS, Kafka).
  • SSE Streaming - Built-in SSE connector with reconnection, chunked processing, and backpressure controls.
  • 🔒 Secure - Enterprise secret management (Vault, AWS, Azure, GCP).
  • 🧬 Scientific Connectors - Built-in support for NCBI, arXiv, and more.

Multi-source aggregation (v0.7.1)

from apilinker import ApiLinker

linker = ApiLinker()
linker.register_source("crm", crm_connector)
linker.register_source("billing", billing_connector)

rows = linker.aggregate_sources(
    source_requests={
        "crm": {"connector": "crm", "endpoint": "list_users"},
        "billing": {"connector": "billing", "endpoint": "list_plans"},
    },
    aggregation_config={
        "join_type": "inner",
        "merge_strategy": "flat",
        "sources": [
            {"name": "crm", "join_key": "id", "fields": [...]},
            {"name": "billing", "join_key": "customer_id", "fields": [...]},
        ],
    },
)

See Multi-Source Aggregation and examples/multi_source_aggregation.py.

🤝 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.

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

apilinker-0.7.1.tar.gz (185.5 kB view details)

Uploaded Source

Built Distribution

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

apilinker-0.7.1-py3-none-any.whl (141.8 kB view details)

Uploaded Python 3

File details

Details for the file apilinker-0.7.1.tar.gz.

File metadata

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

File hashes

Hashes for apilinker-0.7.1.tar.gz
Algorithm Hash digest
SHA256 ca9a42c6dfee3d468e7810d466073cc9f1e32bc47ac44e834e1bbe55ed4e7281
MD5 fcb7efb407e7be931bb1960135bf8484
BLAKE2b-256 450055c074047cb1b597d596c3acb68957a49ca6d9a4f3cf6cbadfe7e396b617

See more details on using hashes here.

Provenance

The following attestation bundles were made for apilinker-0.7.1.tar.gz:

Publisher: release.yml on kkartas/APILinker

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

File details

Details for the file apilinker-0.7.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for apilinker-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f55d13df96e44e3f3b76bbb29db9f8e2c71590b745969e225ae30e544a1090
MD5 98db120c3e20a42a660ee0c2493bde98
BLAKE2b-256 6a672b0d2ebacb53342935102756146c8e550bd9b45b86ef3938be17f3afd327

See more details on using hashes here.

Provenance

The following attestation bundles were made for apilinker-0.7.1-py3-none-any.whl:

Publisher: release.yml on kkartas/APILinker

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