Skip to main content

Pipedream Adapter for eons

This library allows you to call "fittings" from your Pipdream (or compatible) workflow.

Usage

Using Pipe Adapter is pretty easy:

from pipeadapter import connect
input = {}
input["key"] = "value"
return connect('fitting', input)

You need to know:

  1. What Fitting you want to use
  2. The inputs to pass to that Fitting
  3. What values to provide to those inputs.

Fittings

The modules used by Pipeadapter are functors based on the eons library.

Among other features, Fittings support:

#All necessary args that *this cannot function without.
this.requiredKWArgs = []

#For optional args, supply the arg name as well as a default value.
this.optionalKWArgs = {}

Each of these "KWArgs" will become a member in the Fitting. For example this.requiredKWArgs.append("my_arg") sets this.my_arg to the value of this.Fetch("my_arg"). This system allows users to provide inputs in multiple ways while allowing developers to code in a standard format.

Developers also have access to all the eons.UserFunctor utilities.

Example Fitting

import os
import logging
from datetime import datetime
from pipeadapter import Fitting

class timestamp_to_date(Fitting):
    def __init__(this, name="Timestamp to Date"):
        super().__init__(name)

        this.requiredKWArgs.append("timestamp")

        this.optionalKWArgs["output_format"] = '%m/%d/%Y'

    # Required Fitting method. See that class for details.
    def Run(this):
        dt = datetime.fromtimestamp(this.timestamp)
        this.output["date"] = dt.strftime(this.output_format)

Metadata

Release files for pipeadapter 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipeadapter 0.0.2
File Size Uploaded Provenance Actions
pipeadapter-0.0.2.tar.gz 3.3 kB Without provenance Details for pipeadapter-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pipeadapter 0.0.2
File Interpreter ABI Platform Actions
pipeadapter-0.0.2-py3-none-any.whl Python 3 none any Details for pipeadapter-0.0.2-py3-none-any.whl

Total release size: 6.9 kB

Release files / pipeadapter-0.0.2.tar.gz

Download URL pipeadapter-0.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0d46ea97549da479d30078dd202cfa19a78714e1212bf84241a78b0df5ee6810
BLAKE2b-256 checksum
How to use checksums
208dfc3176134783a90d2f2e52225657751dd0180cd4d802deffdb7fdee4428c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / pipeadapter-0.0.2-py3-none-any.whl

Download URL pipeadapter-0.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1316a150245ad215ad2d1543dee8dd6b8c651cb9477107ce09230bbdc8f4cbf
BLAKE2b-256 checksum
How to use checksums
12d42c5fbfc1e13adc5224b0eac942cb26636405922985e510bbcc5cb7f3e1ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for pipeadapter 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page