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.0.tar.gz (13.5 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.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bytewax_webflow-0.3.0.tar.gz
Algorithm Hash digest
SHA256 83a9db0ea775ce32f45c700dbe1ad00cfc4589f415db57d02aeaca9f31a47d0c
MD5 a49c743aa01d3c7604202252a0a94fe5
BLAKE2b-256 e411d4bb351ec7cb76c6a3e9fad8cc7a8b3f5503a0b1e7a97b51553a7b848e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bytewax_webflow-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e691c5020dd2bfc3e43e9f731e78af0dc4995eb46a1bf1a70a84e19fad98c41
MD5 60b9af1646a2862a9177de773b8a481f
BLAKE2b-256 3dff1b3f12dc097da8c4f171ff0827edac94bd2ca7e87c7035124536eb4ccf5f

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