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.2.tar.gz (13.9 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.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bytewax_webflow-0.3.2.tar.gz
Algorithm Hash digest
SHA256 972c52f37317a27b7fdc6d6737eb21884a8ecd191ce4da79cb7b3808f79fafc9
MD5 e2d7041ec70b728f6160455d44bb3a02
BLAKE2b-256 1b113b49cd5c51ae77144d2bd3cc01acb0b02439dd755c420f42096433104385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bytewax_webflow-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 619b33d811a932e5ebcc4b7ca32ce24462508f634e6eeb4bb91f44670c484219
MD5 5ec3b9508d98d2f1bffe47d83d86b498
BLAKE2b-256 48f5bd1da16f93ba4c7379fc6bd73aae2b3079ceb291f55034bdbae154353368

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