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.0.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.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for prefect_streamline-3.0.0.tar.gz
Algorithm Hash digest
SHA256 e1a45612dead0607fbc27a389dc571868685cf13331fd0090fe0172bb8f2e877
MD5 0dced65f8e56c0e83629744a6404ffb2
BLAKE2b-256 7a424121b2175fafd47315a2806017660f00c73adecd09431b8be13647ff5ea5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prefect_streamline-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.10.20 Linux/6.17.0-1010-azure

File hashes

Hashes for prefect_streamline-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2c2229be8fdca764fea03cb9c36fe8005da16cc63da2e5492e38132ff825ea0
MD5 3828c4e5ce62de1c8cd3a6fd63a32049
BLAKE2b-256 de7f51e5742c15f3880c04f36fa3c54ea53f29b84bd1422caed838f251a8bc60

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