bytewax-webflow


Namebytewax-webflow JSON
Version 0.3.3 PyPI version JSON
download
home_pageNone
SummaryWebflow connectors for Bytewax
upload_time2024-12-07 19:52:01
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseMIT License Copyright (c) 2024 James Ward Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords bytewax webflow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI](https://img.shields.io/pypi/v/bytewax-webflow.svg?style=flat-square)](https://pypi.org/project/bytewax-webflow/)


# Bytewax Webflow

[Webflow](https://webflow.com/) connectors for [Bytewax](https://bytewax.io).

This connector offers 1 sink:

* `WebflowCollectionItemSink` - inserts or updates a specified Webflow Collection.

## Installation

This package is available via [PyPi](https://pypi.org/project/bytewax-webflow) as
`bytewax-webflow` and can be installed via your package manager of choice.

## Usage

```python
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](./LICENSE).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "bytewax-webflow",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "bytewax, webflow",
    "author": null,
    "author_email": "James Ward <james@notjam.es>",
    "download_url": "https://files.pythonhosted.org/packages/22/17/f8368533163e7f98b063df5afa867181bc066cc79c6ee48cae78fb1c1575/bytewax_webflow-0.3.3.tar.gz",
    "platform": null,
    "description": "[![PyPI](https://img.shields.io/pypi/v/bytewax-webflow.svg?style=flat-square)](https://pypi.org/project/bytewax-webflow/)\n\n\n# Bytewax Webflow\n\n[Webflow](https://webflow.com/) connectors for [Bytewax](https://bytewax.io).\n\nThis connector offers 1 sink:\n\n* `WebflowCollectionItemSink` - inserts or updates a specified Webflow Collection.\n\n## Installation\n\nThis package is available via [PyPi](https://pypi.org/project/bytewax-webflow) as\n`bytewax-webflow` and can be installed via your package manager of choice.\n\n## Usage\n\n```python\nimport os\n\nimport bytewax.operators as op\nfrom bytewax.testing import TestingSource\nfrom bytewax.dataflow import Dataflow\n\nfrom bytewax_webflow import CollectionItemSink, CollectionItem\n\nWEBFLOW_ACCESS_TOKEN = os.environ[\"WEBFLOW_ACCESS_TOKEN\"]\nWEBFLOW_COLLECTION_ID = os.environ[\"WEBFLOW_COLLECTION_ID\"]\n\nflow = Dataflow(\"webflow_example\")\n\nflow_input = op.input(\"input\", flow, TestingSource([\"Earth\", \"Mars\"]))\n\n\ndef create_webflow_item(value: str) -> CollectionItem:\n    return CollectionItem(\n        name=f\"Hello {value}\",\n        slug=value,\n        fields={\n            \"planet\": value,\n        }\n    )\n\ntransform = op.map(\"transform\", flow_input, create_webflow_item)\n\nop.output(\"output\", transform, CollectionItemSink(WEBFLOW_ACCESS_TOKEN, WEBFLOW_COLLECTION_ID))\n```\n\n## License\n\nLicensed under the [MIT License](./LICENSE).\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 James Ward  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Webflow connectors for Bytewax",
    "version": "0.3.3",
    "project_urls": {
        "Issues": "https://github.com/imnotjames/bytewax-webflow/issues",
        "Repository": "https://github.com/imnotjames/bytewax-webflow.git"
    },
    "split_keywords": [
        "bytewax",
        " webflow"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0bc9dd318d79913aa9654798d8ce77d368fea0ec6cdade3290b56b6ff858e0bd",
                "md5": "e3dd7c055ad5c271a704484fd96489d0",
                "sha256": "916590aeae099d248c1f6900bceeea2b2ca0da9c77ae497fb65d537aaf9a0ecf"
            },
            "downloads": -1,
            "filename": "bytewax_webflow-0.3.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e3dd7c055ad5c271a704484fd96489d0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 7310,
            "upload_time": "2024-12-07T19:51:59",
            "upload_time_iso_8601": "2024-12-07T19:51:59.924254Z",
            "url": "https://files.pythonhosted.org/packages/0b/c9/dd318d79913aa9654798d8ce77d368fea0ec6cdade3290b56b6ff858e0bd/bytewax_webflow-0.3.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2217f8368533163e7f98b063df5afa867181bc066cc79c6ee48cae78fb1c1575",
                "md5": "84e0831b6375af70547943d95e09d6db",
                "sha256": "db5b21eb9884166668d1f34ca5745cdc53ffbf76cb748fa144f8fa22f2436cd4"
            },
            "downloads": -1,
            "filename": "bytewax_webflow-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "84e0831b6375af70547943d95e09d6db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 14224,
            "upload_time": "2024-12-07T19:52:01",
            "upload_time_iso_8601": "2024-12-07T19:52:01.464052Z",
            "url": "https://files.pythonhosted.org/packages/22/17/f8368533163e7f98b063df5afa867181bc066cc79c6ee48cae78fb1c1575/bytewax_webflow-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-07 19:52:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "imnotjames",
    "github_project": "bytewax-webflow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "bytewax-webflow"
}
        
Elapsed time: 0.87336s