PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.31k stars 1.5k forks source link

adding move warning to moved_in_v3 for get_client #14299

Closed WillRaphaelson closed 4 days ago

WillRaphaelson commented 4 days ago

Ads a movement warning to for when users attempt to from prefect.client import get_client

Example

(rc) ➜  move_test python move_test.py
/Users/will/repos/scratch/move_test/move_test.py:1: DeprecationWarning: 'prefect.client:get_client' has been moved to 'prefect.client.orchestration:get_client'. Importing from 'prefect.client.orchestration:get_client' instead. This warning will raise an error in a future release.
  from prefect.client import get_client

Checklist