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.1rc1.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.1rc1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prefect_streamline-3.0.1rc1.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.1rc1.tar.gz
Algorithm Hash digest
SHA256 8950de0133bac7d7e04c4bfafbb9d1de782c075fcfeaed922321819657126771
MD5 87c38a65b1b41b281c2fb643e555a6ae
BLAKE2b-256 262d98476d1f51b9645350c5da0fa3527c75ad213137a8199dac4ec6836e7157

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prefect_streamline-3.0.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e8db1e3ba4fce356f09f90d66a46642f7257c5caa3b113b344e775d710006a
MD5 4adfa88e6dcab116166955a69eb74a23
BLAKE2b-256 bad2e768c9b9eca63a8e020e1da9f017fbfe4c85b14cf136c23ad13a1cece148

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