Skip to main content

Webflow connectors for Bytewax

Project description

PyPI

Bytewax Webflow

Webflow connectors for Bytewax.

This connector offers 1 sink:

  • WebflowCollectionItemSink - inserts or updates a specified Webflow Collection.

Installation

This package is available via PyPi as bytewax-webflow and can be installed via your package manager of choice.

Usage

import os

import bytewax.operators as op
from bytewax.testing import TestingSource
from bytewax.dataflow import Dataflow

from bytewax_webflow import CollectionItemSink, CollectionItem

WEBFLOW_ACCESS_TOKEN = os.environ["WEBFLOW_ACCESS_TOKEN"]
WEBFLOW_COLLECTION_ID = os.environ["WEBFLOW_COLLECTION_ID"]

flow = Dataflow("webflow_example")

flow_input = op.input("input", flow, TestingSource(["Earth", "Mars"]))


def create_webflow_item(value: str) -> CollectionItem:
    return CollectionItem(
        name=f"Hello {value}",
        slug=value,
        fields={
            "planet": value,
        }
    )

transform = op.map("transform", flow_input, create_webflow_item)

op.output("output", transform, CollectionItemSink(WEBFLOW_ACCESS_TOKEN, WEBFLOW_COLLECTION_ID))

License

Licensed under the MIT License.

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

bytewax_webflow-0.3.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

bytewax_webflow-0.3.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file bytewax_webflow-0.3.1.tar.gz.

File metadata

  • Download URL: bytewax_webflow-0.3.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.5

File hashes

Hashes for bytewax_webflow-0.3.1.tar.gz
Algorithm Hash digest
SHA256 10f1c6477a2b46197235c83b4f852f932e2b69af933369d49bc869578f0ffde3
MD5 a43708e72eed4b31dc6f4d06216f7e89
BLAKE2b-256 7046b10998d7a60cb39ccff740a7020eaf29ed26aa528192efd90e8e81e59571

See more details on using hashes here.

File details

Details for the file bytewax_webflow-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bytewax_webflow-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d9982144392e4d18cdac25e580e78804af84572a51f7b365e71c3a9011f3a08
MD5 1120b47dddbd2c609d7486aa671c4314
BLAKE2b-256 2f1ee0755371978805f96a1eeca2f442b2625e9bd0661ffa3427c49741af4ec9

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