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.
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.3.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bytewax_webflow-0.3.3.tar.gz.
File metadata
- Download URL: bytewax_webflow-0.3.3.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db5b21eb9884166668d1f34ca5745cdc53ffbf76cb748fa144f8fa22f2436cd4
|
|
| MD5 |
84e0831b6375af70547943d95e09d6db
|
|
| BLAKE2b-256 |
2217f8368533163e7f98b063df5afa867181bc066cc79c6ee48cae78fb1c1575
|
File details
Details for the file bytewax_webflow-0.3.3-py3-none-any.whl.
File metadata
- Download URL: bytewax_webflow-0.3.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
916590aeae099d248c1f6900bceeea2b2ca0da9c77ae497fb65d537aaf9a0ecf
|
|
| MD5 |
e3dd7c055ad5c271a704484fd96489d0
|
|
| BLAKE2b-256 |
0bc9dd318d79913aa9654798d8ce77d368fea0ec6cdade3290b56b6ff858e0bd
|