Skip to main content

Prefect_Streamline is an opinionated extension that provides helpers to deploy Prefect flows quickly and easily.

Project description

prefect streamline

prefect_streamline is an opinionated extension that provides helpers to deploy Prefect v3 flows quickly and easily.

Getting started

pip install prefect_streamline

Usage

Deploy flows using decorator

prefect_streamline allows you to configure the deployment of flows with a decorator. Vous pouvez définir plusieurs déploiements pour un même flow.

myapp/flow.py

from prefect import flow
from prefect_streamline import deploybook

@deploybook.register(interval=90, name="hello2")
@deploybook.register(cron="*/3 * * * *")
@deploybook.register(name="manual")
@flow(name="main.myflow")
def myflow() -> int:
    return 43

the prefect-streamline cli browses all the subfolders of your application.

# deploy all the flows register into myapp/flow.py
prefect-streamline deploy myapp/flow.py

# search all flow records in all myapp modules.
prefect-streamline deploy --discover src/myapp

Latest version

You can find the latest version to ...

git clone https://github.com/FabienArcellier/prefect_streamline.git

Developper guideline

poetry shell

Install development environment

Use make to instanciate a python virtual environment in ./venv and install the python dependencies.

poetry install

update the locked dependencies

poetry update

Run the continuous integration process

Before commit or send a pull request, you have to execute the continuous integration process.

poetry run alfred ci

Contributors

  • Fabien Arcellier

License

MIT License

Copyright (c) 2018-2026 Fabien Arcellier

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.

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

prefect_streamline-3.0.0rc1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prefect_streamline-3.0.0rc1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file prefect_streamline-3.0.0rc1.tar.gz.

File metadata

  • Download URL: prefect_streamline-3.0.0rc1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1010-azure

File hashes

Hashes for prefect_streamline-3.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 236c2bd0bdb9fb9f95a5ffc885e224cff7274fda36c033b0926f5767fc539047
MD5 0a649a1b48df299dc44671d659943384
BLAKE2b-256 3f0e8b99cb0c898c0112a1bcb2ef496b261aaf24c273f6b2c5c9f1ee00dee946

See more details on using hashes here.

File details

Details for the file prefect_streamline-3.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_streamline-3.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 593947d79f4848c8bd96bf322f9c2eed8937439937949a7ca839b48089ff1484
MD5 563de7499098987e5c4267c924fd949e
BLAKE2b-256 dc0f098fbc7927be3ab93336d4cae9d3fd98857d3801dadfe1deb221fabebd67

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