Skip to main content

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.

Metadata

Release files for prefect_streamline 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prefect_streamline 3.0.0
File Size Uploaded
prefect_streamline-3.0.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prefect_streamline 3.0.0
File Interpreter ABI Platform
prefect_streamline-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / prefect_streamline-3.0.0.tar.gz

Download URL prefect_streamline-3.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e1a45612dead0607fbc27a389dc571868685cf13331fd0090fe0172bb8f2e877
BLAKE2b-256 checksum
How to use checksums
7a424121b2175fafd47315a2806017660f00c73adecd09431b8be13647ff5ea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.10.20 Linux/6.17.0-1010-azure

Release files / prefect_streamline-3.0.0-py3-none-any.whl

Download URL prefect_streamline-3.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2c2229be8fdca764fea03cb9c36fe8005da16cc63da2e5492e38132ff825ea0
BLAKE2b-256 checksum
How to use checksums
de7f51e5742c15f3880c04f36fa3c54ea53f29b84bd1422caed838f251a8bc60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.10.20 Linux/6.17.0-1010-azure

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page