Skip to main content

Webflow connectors for Bytewax

Project description

PyPI

Byteflow Webflow

Webflow connectors for Bytewax.

This connector offers 1 sink:

  • WebflowCollectionSink - 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 WebflowCollectionItemSink, WebflowCollectionItem

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) -> WebflowCollectionItem:
    return WebflowCollectionItem(
        name=f"Hello {value}",
        slug=value,
        fields={
            "planet": value,
        }
    )

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

op.output("output", transform, WebflowCollectionItemSink(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.2.0.tar.gz (13.3 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.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bytewax_webflow-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8d09d94c544b8baef4d397504c98a5dd135fc4b6060344dc9143e7142b012bc2
MD5 47b02b1747510baf51a8b831643f9b6a
BLAKE2b-256 ea04f4bd5924b256dbc63d26f9ccc4f3e4692bd7fe5d38654f2a64b9ae3e9baa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bytewax_webflow-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 264b73ce1f5f2f3f35baf859fd724a2b6e55f4d1efe12aa6d3362cb286e7bbec
MD5 e9a86c12feab4746ba5be6fb95a3bc36
BLAKE2b-256 44f126d148935d07486f7619ece042000387287280ec5fd3db4bd4c09115251b

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